pycatia.assembly_interfaces.assembly_constraint_setting_att¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.assembly_interfaces.assembly_constraint_setting_att.AssemblyConstraintSettingAtt(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSystem.SettingControllerAsmConstraintSettingAttRepresents the Assembly Constraints setting controller object.Role: the Assembly Constraints setting controller object deals with the settingparameters displayed in the Assembly Constraints property page. To access thisproperty page:Click the Options command in the Tools menuClick + left of Mechanical Design to unfold the workbenchlistClick Assembly Design: Constraints tab- property constraint_creation_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ConstraintCreationMode() AsCatAsmConstraintCreationModeReturns or sets the constraint creation setting parameter.Role: The constraint creation setting parameter manages the determinationof the kind of elements to constraint.Legal values:catUseAnyGeometry The constraint can be created on any kind ofgeometrycatUsePublishedGeometryChildLevel The constraint can only be created ongeometry published on the direct child levelcatUsePublishedGeometryAnyLevel The constraint can only be created ongeometry published on any assembly levelExample:The following example retrieves the constraint creation settingparameter of AsmConstraintSettingAtt1 in CreationMode and sets the mode tocatUsePublishedGeometryAnyLevel.Set CreationMode = AsmConstraintSettingAtt1.ConstraintCreationModeAsmConstraintSettingAtt1.ConstraintCreationMode = catUsePublishedGeometryAnyLevel
- Returns:
enum cat_asm_constraint_creation_mode
- Return type:
int
- get_constraint_creation_mode_info(io_admin_level: str, io_locked: str) bool ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetConstraintCreationModeInfo(CATBSTR ioAdminLevel,CATBSTR ioLocked) As booleanRetrieves informations about the constraint creation settingparameter.Refer to SettingController for a detailed description.
- Parameters:
io_admin_level (str) –
io_locked (str) –
- Return type:
bool
- get_paste_component_mode_info(io_admin_level: str, io_locked: str) bool ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetPasteComponentModeInfo(CATBSTR ioAdminLevel,CATBSTR ioLocked) As booleanRetrieves informations about the component paste settingparameter.Refer to SettingController for a detailed description.
- Parameters:
io_admin_level (str) –
io_locked (str) –
- Return type:
bool
- get_quick_constraint_mode_info(io_admin_level: str, io_locked: str) bool ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetQuickConstraintModeInfo(CATBSTR ioAdminLevel,CATBSTR ioLocked) As booleanRetrieves informations about the quick constraint settingparameter.Refer to SettingController for a detailed description.
- Parameters:
io_admin_level (str) –
io_locked (str) –
- Return type:
bool
- get_quick_constraint_ordered_list() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetQuickConstraintOrderedList() As CATSafeArrayVariantReturns the quick constraint ordered list settingparameter.Role: The quick constraint ordered list setting parameter manages thedetermination of the kind of elements to constraint.Parameters:ioListThe ordered list of constraints type The constraints types must beprecise stringsExample:The following example retrieves the quick constraint ordered list ofAsmConstraintSettingAtt1 in QuickListDim QuickListQuickList = AsmConstraintSettingAtt1.GetQuickConstraintOrderedList()
- Return type:
tuple
- property paste_component_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property PasteComponentMode() As CatAsmPasteComponentModeReturns or sets the component paste setting parameter.Role: The component paste setting parameter manages the keeping of thecontraints of a component after a Copy/Paste or aCut/Paste.Legal values:catPasteWithoutCsts The component’s constraints will not berecreatedcatPasteWithCstOnCopy The component’s constraints will only be recreatedafter a CopycatPasteWithCstOnCut The component’s constraints will only be recreatedafter a CutcatPasteWithCstOnCopyAndCut The component’s constraints will be recreatedafter a Copy or a CutExample:The following example retrieves the component paste setting parameterof AsmConstraintSettingAtt1 in PasteMode and sets the mode to With CutOnly.Set PasteMode = AsmConstraintSettingAtt1.PasteComponentModeAsmConstraintSettingAtt1.PasteComponentMode = catPasteWithCstOnCut
- Returns:
enum cat_asm_paste_component_mode
- Return type:
int
- property quick_constraint_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property QuickConstraintMode() As CatAsmQuickConstraintModeReturns or sets the quick constraint setting parameter.Role: The quick constraint setting parameter manages the type of contraintthat will be created by tue Quick Constraint command.Legal values:catSpecifiedOrder Use the specified ordercatVerifiedConstraintFirst Create verified constraintfirstExample:The following example retrieves the quick constraint setting parameterof AsmConstraintSettingAtt1 in QuickMode and sets the mode tocatSpecifiedOrder.Set QuickMode = AsmConstraintSettingAtt1.QuickConstraintModeAsmConstraintSettingAtt1.QuickConstraintMode = catSpecifiedOrder
- Returns:
enum cat_asm_quick_constraint_mode
- Return type:
int
- property redundancy_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property RedundancyMode(CatAsmRedundancyModeiRedundancyMode)Sets redundancy check option for constraint creation.Role: The Redundancy of the constraint is decided to be checked or not tobe checked, for constraint creation.Legal values:catUnChecked Redundancy of constraint will be checked while constraintcreation.catChecked Redundancy of constraint will not be checked while constraintcreation.
- Returns:
enum cat_asm_redundancy_mode
- Return type:
int
- set_constraint_creation_mode_lock(i_locked: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetConstraintCreationModeLock(boolean iLocked)Locks or unlocks the constraint creation settingparameter.Refer to SettingController for a detailed description.
- Parameters:
i_locked (bool) –
- Return type:
None
- set_paste_component_mode_lock(i_locked: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetPasteComponentModeLock(boolean iLocked)Locks or unlocks the component paste setting parameter.Refer to SettingController for a detailed description.
- Parameters:
i_locked (bool) –
- Return type:
None
- set_quick_constraint_mode_lock(i_locked: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetQuickConstraintModeLock(boolean iLocked)Locks or unlocks the quick constraint setting parameter.Refer to SettingController for a detailed description.
- Parameters:
i_locked (bool) –
- Return type:
None
- set_quick_constraint_ordered_list(i_list: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetQuickConstraintOrderedList(CATSafeArrayVariantiList)Sets the quick constraint ordered list setting parameter.Role: The quick constraint ordered list setting parameter manages thedetermination of the kind of elements to constraint.Parameters:iListThe ordered list of constraints type The constraints types must beprecise stringsExample:The following example sets the quick constraint ordered list ofAsmConstraintSettingAtt1Dim QuickList(5)QuickList(0) = “CATAsmCoincidenceType”QuickList(1) = “CATAsmSurfContactType”QuickList(2) = “CATAsmAngleType”QuickList(3) = “CATAsmDistanceType”QuickList(4) = “CATAsmPerpendType”QuickList(5) = “CATAsmParallelType”AsmConstraintSettingAtt1.SetQuickConstraintOrderedListQuickList
- Parameters:
i_list (tuple) –
- Return type:
None