AsmConstraintSettingAtt (Object)

Represents the Assembly Constraints setting controller object.
Role: the Assembly Constraints setting controller object deals with the setting parameters displayed in the Assembly Constraints property page. To access this property page:

Properties


Property ConstraintCreationMode() As
Returns or sets the constraint creation setting parameter.
Role: The constraint creation setting parameter manages the determination of the kind of elements to constraint.
Legal values:
catUseAnyGeometry The constraint can be created on any kind of geometry
catUsePublishedGeometryChildLevel The constraint can only be created on geometry published on the direct child level
catUsePublishedGeometryAnyLevel The constraint can only be created on geometry published on any assembly level
Example:
The following example retrieves the constraint creation setting parameter of AsmConstraintSettingAtt1 in CreationMode and sets the mode to catUsePublishedGeometryAnyLevel.
 Set CreationMode = AsmConstraintSettingAtt1.ConstraintCreationMode
 AsmConstraintSettingAtt1.ConstraintCreationMode = catUsePublishedGeometryAnyLevel
 
Property PasteComponentMode() As
Returns or sets the component paste setting parameter.
Role: The component paste setting parameter manages the keeping of the contraints of a component after a Copy/Paste or a Cut/Paste.
Legal values:
catPasteWithoutCsts The component's constraints will not be recreated
catPasteWithCstOnCopy The component's constraints will only be recreated after a Copy
catPasteWithCstOnCut The component's constraints will only be recreated after a Cut
catPasteWithCstOnCopyAndCut The component's constraints will be recreated after a Copy or a Cut
Example:
The following example retrieves the component paste setting parameter of AsmConstraintSettingAtt1 in PasteMode and sets the mode to With Cut Only.
 Set PasteMode = AsmConstraintSettingAtt1.PasteComponentMode
 AsmConstraintSettingAtt1.PasteComponentMode = catPasteWithCstOnCut
 
Property QuickConstraintMode() As
Returns or sets the quick constraint setting parameter.
Role: The quick constraint setting parameter manages the type of contraint that will be created by tue Quick Constraint command.
Legal values:
catSpecifiedOrder Use the specified order
catVerifiedConstraintFirst Create verified constraint first
Example:
The following example retrieves the quick constraint setting parameter of AsmConstraintSettingAtt1 in QuickMode and sets the mode to catSpecifiedOrder.
 Set QuickMode = AsmConstraintSettingAtt1.QuickConstraintMode
 AsmConstraintSettingAtt1.QuickConstraintMode = catSpecifiedOrder
 
Property RedundancyMode( iRedundancyMode)
Sets redundancy check option for constraint creation.
Role: The Redundancy of the constraint is decided to be checked or not to be checked, for constraint creation.
Legal values:
catUnChecked Redundancy of constraint will be checked while constraint creation.
catChecked Redundancy of constraint will not be checked while constraint creation.

Methods


Func GetConstraintCreationModeInfo( ioAdminLevel, ioLocked) As
Retrieves informations about the constraint creation setting parameter.
Refer to for a detailed description.
Func GetPasteComponentModeInfo( ioAdminLevel, ioLocked) As
Retrieves informations about the component paste setting parameter.
Refer to for a detailed description.
Func GetQuickConstraintModeInfo( ioAdminLevel, ioLocked) As
Retrieves informations about the quick constraint setting parameter.
Refer to for a detailed description.
Func GetQuickConstraintOrderedList() As
Returns the quick constraint ordered list setting parameter.
Role: The quick constraint ordered list setting parameter manages the determination of the kind of elements to constraint.
Parameters:
ioList
The ordered list of constraints type The constraints types must be precise strings
Example:
The following example retrieves the quick constraint ordered list of AsmConstraintSettingAtt1 in QuickList
 Dim QuickList
 QuickList = AsmConstraintSettingAtt1.GetQuickConstraintOrderedList()
 
Sub SetConstraintCreationModeLock( iLocked)
Locks or unlocks the constraint creation setting parameter.
Refer to for a detailed description.
Sub SetPasteComponentModeLock( iLocked)
Locks or unlocks the component paste setting parameter.
Refer to for a detailed description.
Sub SetQuickConstraintModeLock( iLocked)
Locks or unlocks the quick constraint setting parameter.
Refer to for a detailed description.
Sub SetQuickConstraintOrderedList( iList)
Sets the quick constraint ordered list setting parameter.
Role: The quick constraint ordered list setting parameter manages the determination of the kind of elements to constraint.
Parameters:
iList
The ordered list of constraints type The constraints types must be precise strings
Example:
The following example sets the quick constraint ordered list of AsmConstraintSettingAtt1
 Dim QuickList(5)
 QuickList(0) = "CATAsmCoincidenceType"
 QuickList(1) = "CATAsmSurfContactType"
 QuickList(2) = "CATAsmAngleType"
 QuickList(3) = "CATAsmDistanceType"
 QuickList(4) = "CATAsmPerpendType"
 QuickList(5) = "CATAsmParallelType"
 AsmConstraintSettingAtt1.SetQuickConstraintOrderedListQuickList