pycatia.dnb_igp_setup_interfaces.generic_action_factory¶
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_igp_setup_interfaces.generic_action_factory.GenericActionFactory(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectGenericActionFactoryInterface representing GenericAction factory.Role: This allows the creation of a GenericAction under anOperationThe following code snippet can be used to obtain a GenericActionFactory from aselected OperationDim oSelectAct As Activityset oSelectAct = CATIA.ActiveDocument.Selection.FindObject(“CATIAActivity”)Dim objGenActFact As GenericActionFactoryset objGenActFact = oSelectAct.GetTechnologicalObject(“GenericActionFactory”)- create_generic_action(i_action_type: str, i_before: bool, i_reference_activity: Activity) GenericAction ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateGenericAction(CATBSTR iActionType,boolean iBefore,Activity iReferenceActivity) As GenericActionCreates an Action based on the specified typeParameters:iActionTypeType of Action to be created.iBeforeCreated Action can be Predecessor/Successor.iReferenceActivitiyThe Reference Activity Before/After which the Action needs to becreated.oGenericActionCreated Action.Returns:An HRESULT.Legal values:S_OKAction is successfully created and the interface pointer issuccessfully returnedE_FAILAction was successfully created, but the interface queryfailedE_NOINTERFACEAction was successfully created, but the it doesn’t implement therequested interfaceE_OUTOFMEMORYThe component allocation failedExample:Dim objGenActFact As GenericActionFactory……Dim refAct As ActivityDim objGenAct as GenericAction CATIASelection……Before = TRUEset refAct = CATIA.ActiveDocument.Selection.FindObject(“CATIAActivity”)set objGenAct = objGenActFact.CreateGenericAction(“DNBIgpSpotWeld”, False, refAct)..
- Parameters:
i_action_type (str) –
i_before (bool) –
i_reference_activity (Activity) –
- Return type: