Showing results for 
Search instead for 
Do you mean 
Reply

I want output the post by program head name.How can i do it?

How can i loading program head name ?

 

 

2016-10-26_18-17-24.jpg

2 REPLIES

Re: I want output the post by program head name.How can i do it?

You can write code to close the current output file, change the name to mom_group_name, then open the a new output file.

 

Something like:

# Add appropriate "global" definitions here
# note mom_sys_output_file_suffix is the extension (e.g. PTP) if you need it.
if { [info exists mom_group_name] } {
set save_name $mom_output_file_full_name MOM_close_output_file $mom_output_file_full_name # do logic here to change mom_output_file_full_name as needed, using mom_group_name MOM_open_output_file $mom_output_file_full_name
# You might want to add MOM_output_to_listing_device "Renamed output from $save_name to $$mom_output_file_full_name" }

 

Put a call to that at the very beginning of "start of program"

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


Re: I want output the post by program head name.How can i do it?

Take a look at LIBRARY_CAM_OUTPUT in the documentation. If this is in your configuration, a folder heirarchy is created for output. For example, in PART_A_CAM.prt you generate a ptp file for PROGRAM2 using the MILL_3_AXIS postprocessor. In the output area, the file is stored in part_a_cam\mill_3_axis\ program2.ptp. This gives you a way to organize your output files in a native environment.

 
Mark Rief
Retired Siemens

Learn online





Solution Information