Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Help needed with tcl programming

dmiller327

New member
I am automating setup notes to appear when you generate shop docs.


I have learned enought tcl to do a crude implementation that works. To accomplish this I have add code in the shopdoc_programview_text.tcl file.


I'd like to polish the code to make it more robust and easiler to maintain but I am having trouble with what I would expect to be a very simple programming task.


I would like to read a txt file containing the setup notes to be added to the shop doc output file. I have tried using , "gets", "read" and "scan" to read the txt file and then "puts" to write it to the shop doc file. However it does not show up in the shop doc output file. I suspect that my "puts" command is not set up correctly.


I have also tried UG's MOM_output_literal also without success. If anyone has suggestion and/or would like more detail please let me know.


I am using NX 6.0with XP-pro





DaveM
 
hello, i know that this post is started back in 2009 but
just in case you're still having issues - message me.
thanks
 

Sponsor

Articles From 3DCAD World

Back
Top