pycatia.dmaps_interfaces.resources¶
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.dmaps_interfaces.resources.Resources(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionResourcesThe collection of resources related to the current activity.- add(i_resource: Resource) Resource ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Add(Resource iResource) As ResourceThis method add the specified item in the current listParameters:iItemThe item to addReturns:oitem The item
- add_by_assignment_type(i_resource: Resource, i_assignment_type: str) Resource ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddByAssignmentType(Resource iResource,DNBResourceAssignmentType iAssignmentType) As ResourceThis method Assigns/Adds the specified resource with the specifiedassignment typeParameters:iResourceThe resource to be assignediAssignmentTypeType of the Assignment (Resource to the Process). Only thefollowing four types are supported at the moment: Process_Uses_Resource,Process_Runs_On_Resource, Process_Attaches_Resource, Process_Detaches_ResourceReturns:oResource The resource when Add succeeds, unchanged otherwise
- item(i_index: cat_variant) Resource ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As ResourceThis method returns the idl object Resource for the specified resourceidentifier.Parameters:iIndexThe resource identifierReturns:oResource The idl resource
- Parameters:
i_index (cat_variant) –
- Return type:
- remove_by_assignment_type(i_resource: Resource, i_assignment_type: str) Resource ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func RemoveByAssignmentType(Resource iResource,DNBResourceAssignmentType iAssignmentType) As ResourceThis method Unassigns/Removes the specified resource if the assignementexists and is of the given typeParameters:iResourceThe resource to be UnassignediAssignmentTypeType of the Assignment (Resource to the Process) to be removedReturns:oResource The resource when Remove succeeds, unchanged otherwise