Direction Patterns
 
A direction pattern adds pattern members in one or two selected directions.
If the pattern type in the element tree is PRO_GENPAT_DIR_DRIVEN, the element tree must contain the information about the two directions and the pattern members.
The following figure shows the elements of a direction pattern:
Figure 54. Element Tree for a Direction Pattern
For a direction patter, use the elements PRO_E_DIR_PAT_DIR1_OPT and PRO_E_DIR_PAT_DIR2_OPT to specify the pattern orientation in the first and second direction, respectively. The orientation options are translation, rotation, and coordinate system.
Depending on the selected orientation, choose references for the two directions using the element PRO_E_DIRECTION_REFERENCE. To flip the selected directions, use the elements PRO_E_DIR_PAT_DIR1_FLIP and PRO_E_DIR_PAT_DIR2_FLIP. The values of the references and the choice to flip the direction are stored in the elements PRO_E_GENPAT_DIR1 and PRO_E_GENPAT_DIR2.
The elements PRO_E_GENPAT_DIR1_INC and PRO_E_GENPAT_DIR2_INC specify the spacing between the pattern members in the first and second directions, respectively.
The elements with identifiers PRO_E_GENPAT_DIM_FIRST_DIR and PRO_E_GENPAT_DIM_SECOND_DIR contain dimension information for the pattern members in the first and second direction, respectively. These elements are array elements that contain as many PRO_E_GENPAT_DIM_DIR_COMPOUND elements as required to complete the pattern. For more information on the elements PRO_E_GENPAT_DIR_DIM_COMPOUND, PRO_E_GENPAT_FIRST_DIR_NUM_INST, and PRO_E_GENPAT_SECOND_DIR_NUM_INST, refer to the section on Dimension Patterns.
The following table lists the contents of each PRO_E_GENPAT_DIR element.
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
这对您有帮助吗?