Geometry Pattern Recognition
You can read the Pattern Recognition feature parameters using the element PRO_E_PAT_GPRF described in this section. You cannot create the Pattern Recognition feature in Creo TOOLKIT using these elements.
The following figure shows the element tree for Geometry Pattern Recognition application:
Pattern Element Tree for Geometry Pattern Recognition
The pattern recognition compound element PRO_E_PAT_GPRF contains the following elements:
• 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_GENPAT_TRANSLATIONAL—Specifies –1 for translational pattern.
◦ PRO_GENPAT_DIR1_ROTATIONAL—Specifies 58 for first direction for rotational pattern.
• 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_GENPAT_TRANSLATIONAL—Specifies –1 for translational pattern.
◦ PRO_GENPAT_DIR2_ROTATIONAL—Specifies 60 for second direction for rotational pattern.
• 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.
The following table lists the contents of each PRO_E_PAT_GPRF element.
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 |
For more information on the geometry pattern recognition, refer to the Creo+ help.