pycatia.behavior_interfaces.behaviors¶
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.behavior_interfaces.behaviors.Behaviors(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionBehaviorsRepresents the Behaviors collection currently managed by theapplication.These behaviors belong to one objet and can be reached by the GetItem method ofCATIABase. For Instance onto a Part usingPart.GetItem(“CATGetBehaviorExtension”) .Example:Set RootPart = CATIA.ActiveDocument.PartSet MyExtension = RootPart.GetItem(“CATGetBehaviorExtensions”)Set listBehaviors = MyExtension.Behaviors- item(i_index: cat_variant) Behavior ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As BehaviorReturns a Behavior using its index or its name from the Behaviorscollection.Parameters:iIndexThe index or the name of the Behavior to retrieve from thecollection of Behaviors. As a numerics, this index is the rank of the Behaviorin the collection. The index of the first Behavior in the collection is 1, andthe index of the last Behavior is Count. As a string, it is the name youassigned to the Behavior using theAnyObject.Name property.Returns:The retrieved BehaviorExample:This example retrieves in ThisBeh the fifth Behavior in the collectionand in ThatBeh the Behavior named MyBeh.Dim ThisBeh As BehaviorSet ThisBeh = listBehaviors.Item(5)Dim ThatBeh As BehaviorSet ThatBeh = listBehaviors.Item(“MyBeh”)
- Parameters:
i_index (cat_variant) –
- Return type: