srl,
I have done something similar using a custom command placed in the operation start sequence. This custom command will automatically set your length and diameter offsets if you have left them at 0 while inside NX. Let me know if you need a hand or if I've made a mistake.
the code I used was:
global mom_tool_number
global mom_cutcom_adjust_register
global mom_tool_adjust_register
global mom_cutcom_status
global nr_tool_adjust_register
global nr_cutcom_adjust_register
global nr_tool_number
set nr_tool_adjust_register $mom_tool_number
if { $mom_tool_adjust_register != 0 } {
set nr_tool_adjust_register $mom_tool_adjust_register
}
# sets your H number automatically
if { $mom_cutcom_status == "UNDEFINED" } { return }
if { $mom_cutcom_status == "OFF" } { return }
set nr_cutcom_adjust_register $mom_tool_number
if { [info exists mom_cutcom_adjust_register ] } {
if { $mom_cutcom_adjust_register != 0 } {
set nr_cutcom_adjust_register $mom_cutcom_adjust_register
}
}
# sets your D number automatically
set nr_tool_number [ expr (10000 * $mom_tool_number ) + ( 100 * nr_tool_adjust_register ) + ( nr_cutcom_adjust_register ) ]
#RENAME YOUR TOOL BLOCK AS $nr_tool_number
#PLACE COMMAND IN OPERATION START SEQUENCE


LinkBack URL
About LinkBacks




