|
|
|
|
|
|
|
|
|
|
|
|
Model Types
|
Description
|
---|---|
PRO_PART
|
Part
|
PRO_ASSEMBLY
|
Assembly
|
PRO_DRAWING
|
Drawing
|
PRO_REPORT
|
Report
|
PRO_DIAGRAM
|
Diagram
|
PRO_DWGFORM
|
Format
|
PRO_UDF
|
User-defined feature
|
PRO_FEATURE
|
Feature
|
PRO_SURFACE
|
Surface
|
PRO_EDGE
|
Edge
|
PRO_WELD_PARAMS
|
Weld parameters
|
PRO_BND_TABLE
|
Bend table
|
PRO_EXTOBJ
|
External objects
|
PRO_PATREL_FIRST_DIR
|
Pattern direction 1
|
PRO_PATREL_SECOND_DIR
|
Pattern direction 2
|
PRO_RELOBJ_QUILT
|
Quilt
|
PRO_RELOBJ_CRV
|
Curve
|
PRO_RELOBJ_COMP_CRV
|
Compound curve
|
PRO_RELOBJ_ANNOT_ELEM
|
Annotation Element
|
PRO_RELOBJ_NC_STEP_OBJECT
|
NC Step Table Entry
|
PRO_RELOBJ_NC_STEP_MODEL
|
NC Step Table Model
|
|
|
|
|
• | An array of expected arguments. The arguments are described by their type (double, integer, etc) and attributes indicating if the argument can be skipped when the user calls the relations function. These optional arguments must fall at the end of the argument list. |
• | A Boolean indicating whether or not to check argument types internally. If the Boolean is set not to check the argument types internally, Creo Parametric does not need to know the contents of the arguments array. The custom function you create must handle all the user errors in this situation. |
• | An arguments check function, which can be used to verify the input arguments. |
• | A read function, which provides the value of the function when used in the right-hand side of a relation. For exampled12 = ptk_user_function (0.5, 5, true, inch) |
• | A write function, which receives the value when the function is used in the left-hand side of the relation. For example:ptk_user_function (assigned_value) = 14.0; |
• | All the callback functions are optional and may be NULL. Note
Creo TOOLKIT registered relations are valid only when the function has been registered by the application. If the application is not running
or not present, models that contain user-defined relations cannot evaluate these relations. In this situation, the relations
are marked as errors, however, they can be commented until needed at a later time when the relation functions are reactivated.
|