• | ProPattern—A structure that contains the type and owner of the pattern, and an opaque pattern handle |
• | ProPatternClass—An enumerated type that contains the pattern class, which specifies either a feature pattern (PRO_FEAT_PATTERN) or a group pattern (PRO_GROUP_PATTERN) |
1. | Allocate tree elements using the function ProElementAlloc(). |
2. | Set values of the elements using the function ProElementValueSet(). |
3. | Add elements to the tree using ProElemtreeElementAdd(). |
• | PRO_GENPAT_REF_DRIVEN—Reference pattern |
• | PRO_GENPAT_DIM_DRIVEN—Dimension pattern |
• | PRO_GENPAT_TABLE_DRIVEN—Table pattern |
• | PRO_GENPAT_FILL_DRIVEN—Fill pattern |
• | PRO_GENPAT_DIR_DRIVEN—Direction pattern |
• | PRO_GENPAT_AXIS_DRIVEN—Axis pattern |
• | PRO_GENPAT_POINT_DRIVEN—Point pattern |
• | PRO_GENPAT_CRV_DRIVEN—Curve pattern |
• | PRO_PAT_GENERAL—General pattern. This is the most complex type of pattern. |
• | PRO_PAT_VARYING—Varying pattern. |
• | PRO_PAT_IDENTICAL—Identical pattern. This is the least complex type of pattern. |
• | a point pattern that uses an element of type PRO_GENPAT_REF_SKETCH |
• | a fill pattern |
• | a curve pattern |
• | PRO_PAT_FEATURE—Use feature pattern references. |
• | PRO_PAT_GROUP—Use group pattern references. |
• | PRO_PAT_BOTH—Use feature and group pattern references. |
Element ID Values
|
Element Name
|
Data Type
|
Valid Values
|
---|---|---|---|
PRO_E_GENPAT_DIR_DIMENSION
|
Dimension
|
PRO_VALUE_TYPE_SELECTION
|
|
PRO_E_GENPAT_DIR_VAR_TYPE
|
Variation type
|
PRO_VALUE_TYPE_INT
|
PRO_PAT_RELATION_DRIVEN,
PRO_PAT_VALUE
_DRIVEN |
PRO_E_GENPAT_DIR_VAR_VALUE
|
Variation value (increment)
|
PRO_VALUE_TYPE_
DOUBLE |
|
PRO_E_GENPAT_RELATION_EDIT
|
Relation
|
Application (PRO_VALUE_TYPE
_POINTER) |
Element ID Values
|
Element Name
|
Data Type
|
---|---|---|
PRO_E_GENPAT_TABLE_NAME
|
Table name
|
PRO_VALUE_TYPE_WSTRING
|
PRO_E_GENPAT_TABLE_INSTANCES
|
Table instances
|
Array
|
PRO_E_GENPAT_TABLE_INSTANCE
|
Table instance
|
Compound
|
PRO_E_GENPAT_TABLE_INSTANCE_INDEX
|
Instance index
|
PRO_VALUE_TYPE_INT
|
PRO_E_GENPAT_TABLE_INSTANCE_DIMS
|
Dimension variations
|
Compound
|
PRO_E_GENPAT_TABLE_INSTANCE_DIM_VALUE
|
Dimension value
|
PRO_VALUE_TYPE_DOUBLE
|
Element ID Values
|
Element Name
|
Data Type
|
Valid Values
|
---|---|---|---|
PRO_E_GENPAT_FILL_TEMPLATE_TYPE
|
Fill template
|
PRO_VALUE_TYPE_INT
|
PRO_GENPAT_SQUARE_FILL, PRO_GENPAT_DIAMOND_FILL, PRO_GENPAT_TRIANGLE_FILL, PRO_GENPAT_CIRCLE_FILL, PRO_GENPAT_CURVE_FILL, PRO_GENPAT_SPIRAL_FILL
|
PRO_E_GENPAT_FILL_SPACING
|
Fill spacing
|
PRO_VALUE_TYPE
_DOUBLE |
|
PRO_E_GENPAT_FILL_BORDERING
|
Fill bordering
|
PRO_VALUE_TYPE
_DOUBLE |
|
PRO_E_GENPAT_FILL_ROT_ANG
|
Fill angle
|
PRO_VALUE_TYPE
_DOUBLE |
|
PRO_E_GENPAT_FILL_RADIUS_INC
|
Fill radius increment
|
PRO_VALUE_TYPE
_DOUBLE |
Element ID Values
|
Element Name
|
Data Type
|
Valid Values
|
---|---|---|---|
PRO_E_DIR_PAT
_DIR1_OPT |
Direction 1st option
|
PRO_VALUE_TYPE_INT
|
PRO_GENPAT_TRANSLATIONAL, PRO_GENPAT_DIR1_ROTATIONAL
|
PRO_E_DIR_PAT
_DIR2_OPT |
Direction 2nd option
|
PRO_VALUE_TYPE_INT
|
PRO_GENPAT_TRANSLATIONAL, PRO_GENPAT_DIR2_ROTATIONAL
|
PRO_E_GENPAT_DIR1 and PRO_E_GENPAT_DIR2
|
1st direction and 2nd direction
|
Compound
|
|
PRO_E_DIRECTION_COMPOUND
|
PRO_E_DIRECTION_COMPOUND
|
Compound
|
|
PRO_E_DIRECTION_REFERENCE
|
Direction reference
|
PRO_VALUE_TYPE_SELECTION
|
|
PRO_E_DIRECTION_FLIP
|
Direction flip
|
PRO_VALUE_TYPE_INT
|
Value ignored
|
PRO_E_DIR_PAT
_DIR1_FLIP and PRO_E_DIR_PAT _DIR2_FLIP |
1st direction flip and 2nd direction flip
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
PRO_E_GENPAT_DIR1_INC and PRO_E_GENPAT_DIR2_INC
|
1st direction increment and 2nd direction increment
|
PRO_VALUE_TYPE
_DOUBLE |
|
PRO_E_GENPAT_DIM_FIRST_DIR
and PRO_E_GENPAT_DIM_SECOND_DIR |
1st direction dimensions
|
Array
|
Element ID Values
|
Element Name
|
Data Type
|
Valid Values
|
---|---|---|---|
PRO_E_GENPAT_CRV_PNT_REF
|
Curve reference
|
PRO_VALUE_TYPE_SELECTION
|
|
PRO_E_GENPAT_CRV_PLC_TYPE
|
Curve type
|
PRO_VALUE_TYPE_INT
|
|
PRO_E_GENPAT_CRV_SPACING
|
Curve spacing
|
PRO_VALUE_TYPE
_DOUBLE |
0.0000 to 1000000.0000
|
PRO_E_GENPAT_CRV_NUMBER
|
Curve number
|
PRO_VALUE_TYPE_INT
|
|
PRO_E_GENPAT_CRV_FLIP
|
Curve flip
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
• | Internal or External sketch |
• | Datum point feature |
Element ID Values
|
Element Name
|
Data Type
|
Valid Values
|
---|---|---|---|
PRO_E_GENPAT_POINT_REF_TYPE
|
Point type
|
PRO_VALUE_TYPE_INT
|
PRO_GENPAT_REF_SKETCH, PRO_GENPAT_REF_POINT
|
PRO_E_GENPAT_POINT_REF
|
Point reference
|
PRO_VALUE_TYPE_SELECTION
|
• | PRO_E_STD_SURF_COLLECTION_APPL—Specifies the collection of surfaces that define the leader of the geometry pattern. |
• | PRO_E_PAT_CRV_DTM_REFS—Specifies the collection of curves and datums that define the leader of the geometry pattern. |
Element ID Values
|
Element Name
|
Data Type
|
---|---|---|
PRO_E_STD_SURF_COLLECTION_APPL
|
Reference Surfaces
|
PRO_VALUE_TYPE_SELECTION
|
PRO_E_PAT_CRV_DTM_REFS
|
Reference Curves and Datums
|
PRO_VALUE_TYPE_SELECTION
|
• | PRO_E_FLEX_TRF_SEL_ATT_GEOM—Specifies if the selected rounds and chamfers that attach the patterned geometry to the model must be patterned. 1 specifies that the rounds and chamfers are patterned. When you specify 0, the selected attaching rounds and chamfers are removed. |
• | PRO_E_FLEX_ATTACH_GEOM—Specifies if the geometry of the pattern members must be reattached to the model after patterning. 1 specifies that the pattern geometry is attached to the model. |
• | PRO_E_FLEX_CR_RND_GEOM—Specifies if the round or chamfer geometry of the pattern members must be recreated after patterning. 1 specifies that the pattern geometry is recreated with rounds or chamfers. |
Element ID Values
|
Element Name
|
Data Type
|
Valid Values
|
---|---|---|---|
PRO_E_FLEX_TRF_
SEL_ATT_GEOM |
Transform selected attachment geometry
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
PRO_E_FLEX_ATTACH_GEOM
|
Attachment option
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
PRO_E_FLEX_
CR_RND_GEOM |
Round option
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
• | PRO_E_PAT_MFG_ORD_LEADER—Specifies the number of the pattern member that you want to use as the manufacturing leader. The default value of this element is zero, which indicates that the pattern leader itself is the manufacturing leader. |
• | PRO_E_PAT_MFG_ORDER_OPT—Specifies the criteria for selecting the manufacturing order. The valid values are:
Note
The functionality to select the manufacturing order for each pattern member is currently not supported through Creo TOOLKIT.
|
• | PRO_E_PAT_MFG_ORD_SHARED—Specify 1 to sequentially set the orders for the 4-axis or 5-axis tool paths with a common Z-axis orientation. |
• | PRO_E_PAT_MFG_FIX_OFFSET—Specifies the parameters for the fixture offset. Specify 1 to set the following fixture options:
|
• | PRO_E_PAT_MFG_SUB_OUTPUT—Specifies if subroutine pattern must be created. Subroutines enable you to create NC sequences, place them as macros at the beginning of the CL file, and then call them from the main body of the CL file as many times as needed. |
• | PRO_E_PAT_MFG_SUB_OUT_MODE—Specifies the output mode for the CL data for the subroutine. Pass the value 1 for absolute mode and 2 for incremental mode. |
• | PRO_E_PAT_MFG_SUB_OUT_MULTAX—Specifies if the Multax mode must be selected. Multax is related to cutter location output format where it puts the post-processor
in the multi-axis output mode to process the i, j, k vector. When in multi-axis output mode, Creo NC outputs the i, j, k vector even when the tool is in 0, 0, 1 orientation. In Multax mode, the system will output transformed CL data rather than outputting rotate table commands.
|
• | PRO_E_PAT_MFG_SUB_OUT_COPYCL—Specifies if the subroutine pattern definitions in CL output must be temporarily suppressed. The system will output CL data
without the subroutine definitions and calls. Refer to Creo NC online Help for more information on subroutines.
|
Element ID Values
|
Element Name
|
Data Type
|
Valid Values
|
---|---|---|---|
PRO_E_PAT_MFG_
ORD_LEADER |
Number of the leader
|
PRO_VALUE_TYPE_INT
|
0 <= value < number of instances
|
PRO_E_PAT_MFG_ORDER_OPT
|
Order options
|
PRO_VALUE_TYPE_INT
|
1, 2, 3 ( if you specify 3, order may be selected only through Creo Parametric UI)
|
PRO_E_PAT_MFG_
ORD_REVERSE |
Reverse option
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
PRO_E_PAT_MFG
_ORD_ALT_ROWS |
Alternate rows
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
PRO_E_PAT_MFG
_ORD_ALT_DIR |
Alternate direction
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
PRO_E_PAT_MFG
_ORD_SHARED |
Shared orientation
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
PRO_E_PAT_MFG
_FIX_OFFSET |
Fixture offsets
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
PRO_E_PAT_MFG
_FIX_OFF_INIT |
Initial fixture offsets
|
PRO_VALUE_TYPE_INT
|
1 <= value
|
PRO_E_PAT_MFG
_FIX_OFF_INCR |
Fixture offsets increment
|
PRO_VALUE_TYPE_INT
|
1 <= value
|
PRO_E_PAT_MFG_SUB_OUTPUT
|
Subroutine option
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
PRO_E_PAT_MFG_SUB_OUT_MODE
|
Subroutine mode
|
PRO_VALUE_TYPE_INT
|
1 or 2
|
PRO_E_PAT_MFG_SUB_OUT_MULTAX
|
Subroutine multax
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
• | PRO_E_PAT_GPRF_TYPE—Specifies the type of geometry pattern to be recognized: Identical or Similar. It takes the integer values: 0 for Identical and 1 for Similar. |
• | PRO_E_PAT_GPRF_TRF_TYPE—Specifies the recognized geometry patterns. It takes the integer value: 0 for Direction, 1 for Axis and 2 for Spatial. |
• | PRO_E_PAT_GPRF_DIR1_TRF—Specifies the first direction of transformation. It takes the following integer values from the enumerated type ProGenPatternDirectionType:
|
• | PRO_E_PAT_GPRF_DIR1_NUM_INST—Specifies the number of members in the first direction or in the angular direction. |
• | PRO_E_PAT_GPRF_DIR1_SPACING—Specifies the spacing between members in the first direction or the angle between members in the angular direction. |
• | PRO_E_PAT_GPRF_DIR2_TRF—Specifies the second direction of transformation. It takes the following integer values from the enumerated type ProGenPatternDirectionType:
|
• | PRO_E_PAT_GPRF_DIR2_NUM_INST—Specifies the number of members in the second direction or in the angular direction. |
• | PRO_E_PAT_GPRF_DIR2_SPACING—Specifies the spacing between members in the second direction or the angle between members in the angular direction. |
• | PRO_E_DIR_GPRF_MOVE_OPT—Specifies if a pattern of copy-move features must be created by the geometry pattern recognition feature. Specify 1 if you want the number of pattern members and spacing to be modified. |
• | PRO_E_PAT_GPRF_USE_SRF—Specifies 1 if the members in the geometry pattern recoginition feature have been limited with surfaces. This element restricts the pattern recognition to a limited region on the model. |
• | PRO_E_STD_SURF_COLLECTION_APPL—Specifies the collection of surfaces that define the leader of the geometry pattern to be recognized. |
• | PRO_E_PAT_GPRF_USE_SEC—Specifies 1 if a sketch has been used to limit the members in the geometry pattern recognition feature. |
Element ID Values
|
Element Name
|
Data Type
|
Valid Values
|
---|---|---|---|
PRO_E_PAT_GPRF_
TYPE |
Type of recognized pattern
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
PRO_E_PAT_GPRF_
TRF_TYPE |
Type of transformation
|
PRO_VALUE_TYPE_INT
|
0, 1 or 2
|
PRO_E_PAT_GPRF
_DIR1_TRF |
First transformation direction
|
PRO_VALUE_TYPE_INT
|
—1, 58 or 60
|
PRO_E_PAT_GPRF_
DIR1_NUM_INST |
Number of instances in the first direction
|
PRO_VALUE_TYPE_INT
|
|
PRO_E_PAT_GPRF_
DIR1_SPACING |
Spacing in the first direction
|
PRO_VALUE_TYPE
_DOUBLE |
|
PRO_E_PAT_
GPRF_DIR2_TRF |
Second transformation direction
|
PRO_VALUE_TYPE_INT
|
—1, 58 or 60
|
PRO_E_PAT_GPRF_
DIR2_NUM_INST |
Number of instances in the second direction
|
PRO_VALUE_TYPE_INT
|
|
PRO_E_PAT_GPRF_
DIR2_SPACING |
Spacing in the second direction
|
PRO_VALUE_TYPE
_DOUBLE |
|
PRO_E_DIR
_GPRF_MOVE_OPT |
Create pattern of move features
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
PRO_E_PAT_
GPRF_USE_SRF |
Use surface for region definition
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
PRO_E_STD_SURF_
COLLECTION_APPL |
Reference surfaces
|
PRO_VALUE_TYPE_SELECTION
|
|
PRO_E_PAT_
GPRF_USE_SEC |
Sketch for region definition
|
PRO_VALUE_TYPE_INT
|
0 or 1
|
• | p_component_path—The component path specified using the structure ProAsmcomppath. |
• | pattern_feature—Feature defined by the ProFeature object. |
• | pat_class—Pattern class defined by the enumerated data type ProPatternClass. |
• | elem_tree—The root element of the pattern element tree. |