Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script of custom command for attaching attribute to the tool

Status
Not open for further replies.

nxexplorer

Mechanical
Joined
Jun 23, 2010
Messages
84
Location
ID
Hi NX CAM EXPERTS,

I have inquiry on how to attaching attribute to the tool in PB. I have tried this custom command (below) but failed.
#==================================================================================
global mom_tool_name


if {![info exists mom_tool_name]} {
return
}

global attrInfoArray
global mom_tool_tapered_shank_diameter

set attrInfoArray(VALUE) $mom_tool_tapered_shank_diameter
set attrInfoArray(TYPE) "String"

MOM_set_attribute $mom_tool_name "SHANK_DIAMETER" attrInfoArray

if {![info exists mom_tool_name]} {
return
}



#==================================================================================
if there any experience successfully doing this tool attribute in PB, please share.
Thank you,
Best Regards,
Maryadi



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top