Table Patterns
If the pattern type is PRO_GENPAT_TABLE_DRIVEN, your element tree must contain the table-driven dimensions and table information (variation in dimensions for each instance). The following figure shows the elements of the Table pattern:
Figure 52. Element Tree for a Table Pattern
The PRO_E_GENPAT_TABLE_DIMS element is an array that contains one table dimension (PRO_E_GENPAT_TABLE_DIM) element for each dimension to be varied in the tables. The value of each PRO_E_GENPAT_TABLE_DIM element is a ProSelection object for the corresponding dimension.
The PRO_E_GENPAT_TABLE_LIST element is an array element that contains all the tables that control the pattern. This element should contain one PRO_E_GENPAT_TABLE_ENTRY element for each table.
Each PRO_E_GENPAT_TABLE_ENTRY element contains the name of the table (PRO_E_GENPAT_TABLE_NAME) and table instances (PRO_E_GENPAT_TABLE_INSTANCES).
Each PRO_E_GENPAT_TABLE_INSTANCE element contains an index number (PRO_E_GENPAT_TABLE_INSTANCE_INDEX) element and a dimensions (PRO_E_GENPAT_TABLE_INSTANCE_DIMS) element. The PRO_E_GENPAT_TABLE_INSTANCE_DIMS element is an array element that must contain one dimension value (PRO_E_GENPAT_TABLE_INSTANCE_DIM_VALUE) element for each of the selected dimensions in the PRO_E_PAT_MULT_TABLE_DIMS element. Note that the dimension value specifies the value of the selected dimension, not the dimension increment.
The following table lists the contents of each PRO_E_GENPAT_TABLE_ENTRY element.
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 |
The element PRO_E_GENPAT_TABLE_SET_ACTIVE sets the active table for the pattern. Valid values are 0 (for the first table) through (num_tables – 1), where num_tables is the number of tables in the element tree.
Parent topic