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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
Resources

The 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 Resource

This method add the specified item in the current list

Parameters:

iItem
The item to add

Returns:
oitem The item
Parameters:

i_resource (Resource) –

Return type:

Resource

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 Resource

This method Assigns/Adds the specified resource with the specified
assignment type

Parameters:

iResource
The resource to be assigned
iAssignmentType
Type of the Assignment (Resource to the Process). Only the
following four types are supported at the moment: Process_Uses_Resource,
Process_Runs_On_Resource, Process_Attaches_Resource, Process_Detaches_Resource


Returns:
oResource The resource when Add succeeds, unchanged otherwise
Parameters:
  • i_resource (Resource) –

  • i_assignment_type (str) –

Return type:

Resource

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 Resource

This method returns the idl object Resource for the specified resource
identifier.

Parameters:

iIndex
The resource identifier

Returns:
oResource The idl resource
Parameters:

i_index (cat_variant) –

Return type:

Resource

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 Resource

This method Unassigns/Removes the specified resource if the assignement
exists and is of the given type

Parameters:

iResource
The resource to be Unassigned
iAssignmentType
Type of the Assignment (Resource to the Process) to be removed


Returns:
oResource The resource when Remove succeeds, unchanged otherwise
Parameters:
  • i_resource (Resource) –

  • i_assignment_type (str) –

Return type:

Resource