pycatia.dnb_robot_interfaces.parameter_profiles¶
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_robot_interfaces.parameter_profiles.ParameterProfiles(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectParameterProfilesInterface to manage an user-defined applicative parameterprofile.Role: This interface allows the end-user to handle Applicative parameterprofiles attributes. To create them, please refer toParameterProfilesFactory.Applicative profiles are defined using a Feature Dictionary Editor application.The name of the attributes don’t change after the CATFct file has been defined.End-user must know what the name of the attributes are.To get a handle on the robot, the product must be the assembly noderepresenting the robot (the one with a robot icon).The following code can be used to retrieve a handle on aprofile‘current document is a product‘the root product is a robot‘retrieving the root productDim MyProduct As ProductSet MyProduct = CATIA.ActiveDocument.Product‘retrieving the handleDim MyProfileFactory As ParameterProfilesFactorySet MyProfileFactory = MyProduct.GetTechnologicalObject(“ParameterProfilesFactory”)…‘retrieving the list of profiles as an arrayDim MyListOfProfiles() As ParameterProfilesMyProfileFactory.GetAllProfileInstances(MyListOfProfiles)‘loop for each profile to get the nameDim MyCurrentProfile as ParameterProfilesDim MyCurrentProfileNameFor Each MyCurrentProfile In MyListOfProfilesMyCurrentProfileName.GetName(MyCurrentProfileName)NextParameterProfilesFactory- get_attribute_value(i_attribute_name: str, o_encapsulated_attribute_value: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetAttributeValue(CATBSTR iAttributeName,CATBSTR oEncapsulatedAttributeValue)Gets the attribute value for the attribute mentionedParameters:iAttributeNameName of the attribute for which the value has to be set (input)oEncapsulatedAttributeValueValue of the attribute encapsulated as a CATBSTR string (output)Example:‘ declaration of handle for the profileDim MyProfile As ParameterProfiles‘ valuationSet MyProfile= …‘ declaration of variable for nameDim AttributeNameDim AttributeValue‘ valuation based on user inputsAttributeName = “MyAttributeName” ‘example‘ getting the attribute valueMyProfile.GetAttributeValue(AttributeName,AttributeValue)
- Parameters:
i_attribute_name (str) –
o_encapsulated_attribute_value (str) –
- Return type:
None
- get_name(o_instance_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetName(CATBSTR oInstanceName)Gets the new name for the Profile instanceParameters:oInstanceNameName of the Profile instance (output)Example:‘ declaration of handle for the profileDim MyProfile As ParameterProfiles‘ valuationSet MyProfile= …‘ declaration of variable for nameDim InstanceName‘ setting the nameMyProfile.GetName(InstanceName)
- Parameters:
o_instance_name (str) –
- Return type:
None
- set_attribute_value(i_attribute_name: str, i_encapsulated_attribute_value: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetAttributeValue(CATBSTR iAttributeName,CATBSTR iEncapsulatedAttributeValue)Sets a new attribute value for the attribute mentionedParameters:iAttributeNameName of the attribute for which the value has to be set (input)iEncapsulatedAttributeValueValue of the attribute encapsulated as a CATBSTR string (input)Example:‘ declaration of handle for the profileDim MyProfile As ParameterProfiles‘ valuationSet MyProfile= …‘ declaration of variable for nameDim AttributeNameDim AttributeValue‘ valuation based on user inputsAttributeName = “MyAttributeName” ‘exampleAttributeValue= “MyAttributeValue” ‘example‘ setting the attribute valueMyProfile.SetAttributeValue(AttributeName,AttributeValue)
- Parameters:
i_attribute_name (str) –
i_encapsulated_attribute_value (str) –
- Return type:
None
- set_name(i_new_instance_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetName(CATBSTR iNewInstanceName)Sets a new name for the Profile instanceParameters:iNewInstanceNameNew name of the Profile instance (input)Example:‘ declaration of handle for the profileDim MyProfile As ParameterProfiles‘ valuationSet MyProfile= …‘ declaration of variable for nameDim InstanceName‘ valuationInstanceName = “MyInstanceName.2” ‘example‘ setting the nameMyProfile.SetName(InstanceName)
- Parameters:
i_new_instance_name (str) –
- Return type:
None