Cancel
Showing results for 
Search instead for 
Did you mean: 

Output the programs for the different head to the different files

Valued Contributor
Valued Contributor

Hello.

 

 

 How to output the program start sequence to the two files?

Also the program end sequence. 

(use 2 linked posts) 

 

files.JPG

 

Thank you for your help)

 

2 REPLIES

Re: Output the programs for the different head to the different files

Phenom
Phenom
The problem is that start_of_program event runs only once. The linked post start_of_program code will not be run without some deeper configuring. Also - the status of variables may not be appropriate either (as they were when the Cam generator started posting.) The linked post architecture writes over a bunch of procs - some are retained - some not. The master post has some extra ones (ex - the MOM_head one.) I think the easiest approach would be to copy the file at the point that start_of_program is done writing to the file path used for the linked post. This could be done by closing it, copying it then reopening it with TCL code as a last custom command in start_of_program. Use MOM_open_output_file and MOM_close_output_file (you probably already are) to redirect output and tcl command "file copy ...." to put the start_of_program code in the linked post file. I am not current with the linked post setup (code written to the tcl to manage it.) I started doing different kinematics from the same post. You may find that to be less trouble. Linked posts had some points of convenience for sure - but there was pain too.
NX10.03
Windows 7 Pro

Re: Output the programs for the different head to the different files

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

What I was told...From long ago...

The "master" post's "Start of program" and "end of program" will ALWAYS be the ones used.

If you've played with the proc MOM_head (or some others) you may have broken this.

Note that the master post must be set up with the linked posts (at least some of them) defined, to put the appropriate hooks in the appropriate places...

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Learn online





Solution Information