Visiting Manufacturing Tools
 
Functions Introduced:
Tools are not stored as features of the manufacturing solid, nor as components in the assembly; they are special objects within the top-level manufacturing model, so they need their own visit function. This function is ProMfgToolVisit(), which has the same form as other visit functions in Creo TOOLKIT, except it does not offer the option of a user-defined filter function. You call the action function with an input argument of type ProTool to identify the tool.
The other functions analyze the tool being visited.
The function ProToolTypeGet() returns the tool type. Examples of the types are as follows:
PRO_TOOL_DRILL
PRO_TOOL_TURN
PRO_TOOL_SAW
PRO_TOOL_MILL
The ProToolModelMdlnameGet() function outputs the model name and type of a tool, given its ProTool handle.
The function ProToolParamGet() retrieves the value of a specified tool parameter. This yields a value in terms of the type ProParamvalue (see the Core: Parameters section for more information).
The function ProToolAttributesGet() provides the current setting of several Boolean attributes of the tool in the form of an integer bitmap. Currently, the attributes define whether a solid tool is to be by reference or by copy. See the section Creating NC Sequences for more information on creating tools.
The function ProToolVerify() returns a Boolean showing whether a specified tool handle corresponds to an existing tool.
Was this helpful?