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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
CATBehaviorInterfaces.Behavior
BehaviorExtension

Manages 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 an
object using the method GetItem of CATIABase with in argument the keyword
“CATGetBehaviorExtension”.

Example:

Set RootPart = CATIA.ActiveDocument.Part
Set MyExtension = RootPart.GetItem(“CATGetBehaviorExtensions”)
Set listBehavior = MyExtension.Behaviors
MyExtension.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 behavior
extension.
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 Behavior

Selects and executes a behavior of the technological object. The wanted
behavior is specified by its name.

Parameters:

BehaviorName
the name of the behavior.
Parameters:

behavior_name (str) –

Return type:

Behavior