pycatia.behavior_interfaces.behavior_extension¶
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.behavior_extension.BehaviorExtension(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectCATBehaviorInterfaces.BehaviorBehaviorExtensionManages the behaviors of a technological object.Role: This interface allows to select and perform the behaviors (tasks)associated to a technological object. A behavior extension is obtained from anobject using the method GetItem of CATIABase with in argument the keyword“CATGetBehaviorExtension”.Example:Set RootPart = CATIA.ActiveDocument.PartSet MyExtension = RootPart.GetItem(“CATGetBehaviorExtensions”)Set listBehavior = MyExtension.BehaviorsMyExtension.SelectBehavior(“MyBehavior”)- property extension_class: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ExtensionClass() As CATBSTR (Read Only)Returns the type of the technological object associated to this behaviorextension.
- Return type:
str
- select_behavior(behavior_name: str) Behavior ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func SelectBehavior(CATBSTR BehaviorName) As BehaviorSelects and executes a behavior of the technological object. The wantedbehavior is specified by its name.Parameters:BehaviorNamethe name of the behavior.
- Parameters:
behavior_name (str) –
- Return type: