Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: How to insert existing gcode into a UDE or have the Post insert text from an external file?

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Guessing... you need to check each element of the array exists

global mom_operation_notes mom_sys_control_in mom_sys_control_out

set ci mom_sys_control_in
set co mom_sys_control_out

MOM_set_seq_off
if {[info exists mom_operation_notes]} {
    for {set i 0} {[info exists mom_operation_notes($i)]} {incr i 1} {
        MOM_output_literal "$co $mom_operation_notes($i) $ci"
    }
}
MOM_set_seq_off
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


Re: How to insert existing gcode into a UDE or have the Post insert text from an external file?

Creator
Creator

So I see the elements I am referencing in my .Tcl file.  Is there somewhere else I should be looking? 

Learn online





Solution Information