pycatia.cat_ipd_adapter_interfaces.mhi_relation_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.cat_ipd_adapter_interfaces.mhi_relation_management.MhiRelationManagement(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMHIRelationManagementInterface to access all supported relation types and a relation object’satrribute provider to access it’s attributes Role:This interface, given a V5 process, product(or resource) object and therelation type will get the handle to the relation object’s attributeprovider.This interface expect caller to use relation types defined in PPR Server whichcan be obtained by the GetSupportedRelations method- get_relation_object(i_relation_name: str, i_assigned_object: AnyObject) AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetRelationObject(CATBSTR iRelationName,CATBaseDispatch iAssignedObject) As CATBaseDispatchThis method provides handle to the E5 provider on the relation object thatexists between selected activity and an item/resourceParameters:iRelationNameName of the relation existing between the selected activity and theitem/resource The possible values for relation name can be obtained through acall to “DNBIAMHIRelationManagement#GetSupportedRelations” methodiAssignedObjectThe item/resource that is related to the selected activityoRelationObjAttrProviderE5 provider on the relation object that exists between selectedactivity and an item/resourceReturns:S_OK or E_FAIL
- get_supported_relations() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetSupportedRelations() As CATSafeArrayVariantThis method lists all the possible values that can passed as the relationname for “DNBIAMHIRelationManagement#GetRelationObject”method.Parameters:oListSupportedRelationsThe possible relation names can that are supported by the methodGetRelationObjectReturns:S_OK or E_FAIL
- Return type:
tuple