pycatia.dnb_igp_setup_interfaces.operation_profile

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.operation_profile.OperationProfile(com_object)

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
DMAPSInterfaces.Activity
OperationProfile

Represents an Operation.

Role: The interface is used to manage the attributes of an
Operation.
get_user_profiles_list(i_profile_type: str, o_profiles: tuple) ParameterProfiles

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub GetUserProfilesList(CATBSTR iProfileType,
CATSafeArrayVariant oProfiles)

Retreives the list of User Profiles for the Operation.

Parameters:

iProfileType
if iType specified, only a list of that type inside the User
Profiles List will be returned if iType is an empty string, all the User
Profiles are returned
oProfiles
The List of User Profiles.

Returns:
An HRESULT.
Legal values:

S_OK
List of User Profiles is successfully returned
E_FAIL
List of User Profiles could not be obtained

Example:

Dim objOperProfile As OperationProfile
Dim ProfileType as String
ProfileType=””
……
Dim MyListOfProfiles() As ParameterProfiles
objOperProfile.GetUserProfilesList ProfileType,
MyListOfProfiles
..
Parameters:
  • i_profile_type (str) –

  • o_profiles (tuple) –

Return type:

ParameterProfiles

set_user_profiles_list(i_user_profiles: tuple) ParameterProfiles

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub SetUserProfilesList(CATSafeArrayVariant iUserProfiles)

Sets User Profiles List for the Operation.

Parameters:

iUserProfiles
The List of User Profiles to be set.

Returns:
An HRESULT.
Legal values:

S_OK
The List of User Profiles was successfully set.
E_FAIL
The List of User Profiles could not be set.

Example:
The following example sets the user profiles list for an
Operation.

Dim objOperProfile as OperationProfile
Dim MyListOfProfiles() As ParameterProfiles
objOperProfile.SetUserProfilesList
MyListOfProfiles
Parameters:

i_user_profiles (tuple) –

Return type:

ParameterProfiles