Placement Constraints
The element PRO_E_COMPONENT_CONSTRAINTS is an array of elements of type PRO_E_COMPONENT_CONSTRAINT, each representing a single component placement constraint.
Figure 91. PRO_E_COMPONENT_CONSTRAINT
Each constraint element contains the following elements:
PRO_E_COMPONENT_CONSTR_TYPE—See discussion regarding Assembling a Component Parametrically.
PRO_E_COMPONENT_COMP_CONSTR_REF—Identifies the geometry item in the component referenced by the constraint. This element is of type Selection.
PRO_E_COMPONENT_ASSEM_CONSTR_REF—Identifies the constraint reference in the assembly.
Note:
 
this reference must include a component path referencing the top level assembly, even if the reference belongs directly to the top level assembly.
PRO_E_COMPONENT_CONSTR_REF_OFFSET—Gives the offset value, if the constraint type is an offset.
PRO_E_COMPONENT_USER_DATA—Specifies user data.
PRO_E_COMPONENT_CONSTR_ATTR—See discussion under Assembling a Component Parametrically.
The elements PRO_E_COMPONENT_COMP_ORIENT and PRO_E_COMPONENT_ASSM_ORIENT indicate which side of a referenced surface to be used. These values have different meanings for user-defined constraint sets and mechanism connections. See discussion under ProAsmcompconstraintAsmreferenceGet() and ProAsmcompconstraintCompreferenceGet().
PRO_E_COMPONENT_CONSTR_SET_ID—Specifies the index of the member of the array of PRO_E_COMPONENT_SET elements that owns the constraint.
PRO_E_COMPONENT_SLOT_EXTRA_CRV_REF—Specifies the extra curve references used by a Slot connection only. This is a multivalued element.
도움이 되셨나요?