pycatia.dnb_state_interfaces.dnb_3d_state_management¶
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.dnb_state_interfaces.dnb_3d_state_management.DNB3DStateManagement(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDNB3DStateManagementInterface representing the 3D State Management in theCATDocument.Role: Provides access the C++ interfaces DNBIState, DNBIStateMgt to create andmanage the 3D States.- create_3d_state(i_state_name: str, i_object: AnyObject, i_list_defn: tuple) DNB3DState ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Create3DState(CATBSTR iStateName,CATBaseDispatch iObject,CATSafeArrayVariant iListDefn) As DNB3DStateCreates a 3D State objectParameters:iStateNameThe name of the 3D State to be created.iObjectThe object(Resource/MA/Product..)on which the state is to becreatediListDefnThe definition list(an existing 3D State/3D Position) on which thenew state is to be createdReturns:oState The 3D State object created.Example:For example, Creating a 3D State with the name “My NewState” on thealready existing 3D State “My State”.Dim MySelectedProductDim MySelectedState as DNB3DStateDim MyNewState1 as DNB3DStatedefnArray[0] = MySelectedStateSet MyNewState1 = stateManagement.Create3DState(“My NewState”,MySelectedProduct,defnArray)
- Parameters:
i_state_name (str) –
i_object (AnyObject) –
i_list_defn (tuple) –
- Return type:
- delete_3d_state(i_state: DNB3DState) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Delete3DState(DNB3DState iState)Deletes the specified state objectParameters:iStateThe 3D State object to be deleted.Example:Dim MySelectedProductDim MySelectedState as DNB3DStatestateManagement.Delete3DState(MySelectedState)
- Parameters:
i_state (DNB3DState) –
- Return type:
None
- get_3d_state(i_object: AnyObject, i_state_name: str) DNB3DState ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Get3DState(CATBaseDispatch iObject,CATBSTR iStateName) As DNB3DStateReturns the 3D State object given its name and theobject(Resource/MA/Product..) on which the state iscreated.Parameters:iObjectThe object(Resource/MA/Product..), on which the state is created.iStateNameThe name of the 3D State.Returns:oState The 3D States object.Example:Dim MySelectedProductDim state as DNB3DStateSet state = stateManagement.GetState(MySelectedProduct, “My State1”)
- Parameters:
i_object (AnyObject) –
i_state_name (str) –
- Return type:
- get_number_of_3d_states() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetNumberOf3DStates() As longReturns the number of 3D State objects in the processdocumentReturns:numberOfStates The number of 3D States in the currentdocument.Example:stateCount = stateManagement.GetNumberOf3DStates
- Return type:
int
- get_number_of_3d_states_in_activity(i_process: Activity, i_condition_type: str) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetNumberof3DStatesInActivity(Activity iProcess,CATBSTR iConditionType) As longReturns the number of 3D states assigned to the given activity, based onthe condition on which the activity has been assigned to the 3Dstate.Parameters:iProcessThe activity whose states are to be listed.iConditionTypeThe type of assignment that has been made i.e., the condition onwhich the state(s) have been assigned to the given activity. iConditionTypecould be one of “Begin Condition”, “End Condition”, “3D Context” or “All”Returns:oNumStates The number of 3D States that have been assigned to the givenactivity.Example:Dim MySelectedActivityNumStates = stateManagement.GetNumberof3DStatesInActivity(MySelectedActivity, “Begin Condition”)
- Parameters:
i_process (Activity) –
i_condition_type (str) –
- Return type:
int
- get_number_of_3d_states_on_object(i_obj: AnyObject) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetNumberOf3DStatesOnObject(CATBaseDispatch iObj) AslongReturns the number of 3D State objects on a givenobject(Resource/MA/Product..)Parameters:iObjectThe object(Resource/MA/Product..), whose states are to be listed.Returns:numberOfStates The number of 3D States created oniObjec.Example:stateCount = stateManagement.GetNumberOf3DStatesOnObject(MySelectedProduct)
- Parameters:
i_obj (AnyObject) –
- Return type:
int
- list_3d_states_in_activity(i_process: Activity, i_condition_type: str, o_states: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub List3DStatesInActivity(Activity iProcess,CATBSTR iConditionType,CATSafeArrayVariant oStates)Returns the list of 3D states assigned to the given activity, based on thecondition on which the activity has been assigned to the 3Dstate.Parameters:iProcessThe activity whose states are to be listed.iConditionTypeThe type of assignment that has been made i.e., the condition onwhich the state(s) have been assigned to the given activity. iConditionTypecould be one of “Begin Condition”, “End Condition”, “3D Context” or “All”Returns:oStates The list of 3D States that have been assigned to the givenactivity.Example:Dim activitiesArray() as AnyObjectDim numActsnumActs = stateManagement.GetNumberof3DStatesInActivity(MySelectedActivity)ReDim activitiesArray(numActs)stateManagement.List3DStatesInActivity MySelectedActivity, “BeginCondition”,activitiesArray
- Parameters:
i_process (Activity) –
i_condition_type (str) –
o_states (tuple) –
- Return type:
None
- list_all3_d_states() DNB3DStates ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func ListAll3DStates() As DNB3DStatesReturns the list of all 3D State objects in the processdocumentReturns:oListStates The list of all 3D States in the currentdocument.Example:Dim My3DStates as DNB3DStatesset My3DStates = stateManagement.ListAll3DStatesstatesCount = My3DStates.Count
- Return type:
- list_all_3d_states_on_object(i_obj: AnyObject, o_list_states: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ListAll3DStatesOnObject(CATBaseDispatch iObj,CATSafeArrayVariant oListStates)Returns the list of all 3D State objects on a givenobject(Resource/MA/Product..)Parameters:iObjectThe object(Resource/MA/Product..), whose states are to be listed.Returns:oListStates The list of all 3D States created oniObject.Example:Dim statesArray() as AnyObjectDim statesCountstatesCount = stateManagement.GetNumberOf3DStatesOnObject(MySelectedProduct)Redim statesArray(statesCount)stateManagement.ListAll3DStatesOnObject(MySelectedProduct,statesArray)
- Parameters:
i_obj (AnyObject) –
o_list_states (tuple) –
- Return type:
None