pycatia.behavior_interfaces.behavior_vb_script¶
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_vb_script.BehaviorVBScript(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectCATBehaviorInterfaces.BehaviorBehaviorVBScriptRepresents the VBScript behavior.Role: The VB script behavior is designed to run a VBScript (or catvbs files) orto reference a VBA project. This interface derives from Behavior and enablesthe manipulation of the internal variables of the VBScriptbehavior.- cancel() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Cancel()Inform Client VB has Failed & Has Not operated.Example:Deprecated:V5R15 (Not needed)
- Return type:
None
- done() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Done()Inform Client VB has Successfully Finished.Example:Deprecated:V5R15 (Not needed)
- Return type:
None
- get_internal(p_name: str) AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetInternal(CATBSTR pName) As AnyObjectReturns one available io of the behavior. The behavior has to be inexecuting mode, otherwise it failsExample:This example retrieves in BehParameter the internal parameterCATIAReference XXX currently managed by a BehaviorBeh.Dim BehParameter as ParameterSet BehParameter = Beh.GetInternal(“XXX”)
- Parameters:
p_name (str) –
- Return type:
- put_internal(p_name: str, o_value: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub PutInternal(CATBSTR pName,AnyObject oValue)provide output of one available io of the behavior. The behavior has to bein executing mode, otherwise it failsExample:This example assign the BehParameter containing a CATIAReference to theinternal parameter XXX currently managed by a BehaviorBeh.Dim BehPower as ParameterBeh.PutInternal “XXX”, BehParameter
- Parameters:
p_name (str) –
o_value (AnyObject) –
- Return type:
None
- start() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Start()Inform Client VB has Started.Example:Deprecated:V5R15 (Not needed)
- Return type:
None
- suspend() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Suspend()Inform Client VB has not completly finished the task and has to be calledlater onExample:Deprecated:V5R15 (Not needed)
- Return type:
None
- test_internal(p_name: str) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func TestInternal(CATBSTR pName) As longTest for one available output of the behavior. The behavior has to be inexecuting mode, otherwise it failsExample:This example test for the value existance of an internal parameter XXXthat may contain or not a CATIAReference currently managed by a BehaviorBeh.if (Beh.TestInternal(“XXX”))
- Parameters:
p_name (str) –
- Return type:
int