pycatia.dnb_robot_interfaces.parameter_profiles_factory¶
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_factory.ParameterProfilesFactory(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectParameterProfilesFactoryInterface to manage an user-defined applicative parameter profile(s) defined ona robot controller.Role: This interface allows the end-user to handle Applicative parameterprofiles on a robot controller. It works on both:robots created using V5 mechanismsrobots imported from DENEB D5Applicative profiles are defined using a Feature Dictionary Editor application.The application will save CATFct files that must be referenced with a fileProfile.xml, referenced through the environment variable CATDisciplinePath. Formore information, please refer to the Device Building product documentation inthe Advanced Tasks section on the setup.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 snippet shows how to retrieve the handle on thefactory.‘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 profileDim MyCurrentProfile as ParameterProfilesFor Each MyCurrentProfile In MyListOfProfiles…NextParameterProfiles CATSafeArrayVariant- create_profile_instance(i_profile_type: str, i_instance_name: str, o_app_parameter_profile: ParameterProfiles) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateProfileInstance(CATBSTR iProfileType,CATBSTR iInstanceName,ParameterProfiles oAppParameterProfile)Instantiates a particular profile type. The profile type is user-defined:it is the name the user has set when defining the profile in the CATFctfile.Parameters:iProfileTypeProfile type name for which the instance has to be created (input)iInstanceNameDesired instance name for the instance to be created( input)oAppParameterProfileHandle to the profile instance thus created (output)Example:‘ declaration of 2 variable handlesDim MyNewProfile As ParameterProfilesDim MyProfileFactory As ParameterProfilesFactory‘ valuationSet MyProfileFactory= …‘ declaration of variables for namesDim InstanceNameDim DefaultNameDefaultName = “MyChoice.” ‘example‘Create 10 instances of the profile typeMyProfileTypeFor i=1 to 10‘concatenation of default name and indexInstanceName = DefaultName & iParmProfileFact.CreateProfileInstance(“MyProfileType”,InstanceName,MyNewProfile)Next
- Parameters:
i_profile_type (str) –
i_instance_name (str) –
o_app_parameter_profile (ParameterProfiles) –
- Return type:
None
- delete_profile_instance(io_parameter_profile: ParameterProfiles) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub DeleteProfileInstance(ParameterProfilesioParameterProfile)Deletes a particular profile instanceParameters:ioParameterProfileHandle to the profile instance which should be deleted( input)Example:‘ declaration of 2 variable handlesDim MyProfileToDelete As ParameterProfilesDim MyProfileFactory As ParameterProfilesFactory‘ valuationSet MyProfileToDelete= …Set MyProfileFactory= …‘deletion of the objectMyProfileFactory.DeleteProfileInstance(MyProfileToDelete);
- Parameters:
io_parameter_profile (ParameterProfiles) –
- Return type:
None
- get_all_profile_instances(o_all_instances_on_product: tuple) ParameterProfiles ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetAllProfileInstances(CATSafeArrayVariantoAllInstancesOnProduct)Gets the array of all the handles of the profile instances (belonging toall profile types)Parameters:oAllInstancesOnProductThe array of all the handles to all the profile instances of allthe profile types(output)Example:‘retrieving the handle on the profile factoryDim MyProfileFactory As ParameterProfilesFactoryset MyProfileFactory = ……‘retrieving the list of profiles as an arrayDim MyListOfProfiles() As ParameterProfilesMyProfileFactory.GetAllProfileInstances(MyListOfProfiles)‘loop for each profileDim MyCurrentProfile as ParameterProfilesFor Each MyCurrentProfile In MyListOfProfiles…Next
- Parameters:
o_all_instances_on_product (tuple) –
- Return type:
- get_profile_instance(i_instance_name: str, o_profile_instance: ParameterProfiles) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetProfileInstance(CATBSTR iInstanceName,ParameterProfiles oProfileInstance)Gets the handle to the profile instance against the instancenameParameters:iInstanceNameThe name of the profile instance(input)oProfileInstanceHandle to the profile instance which has the above name( output)Example:‘retrieving the handle on the profile factoryDim MyProfileFactory As ParameterProfilesFactoryset MyProfileFactory = ……‘defining the typeDim MyProfileNameset MyProfileName= “MyProfile.1” ‘example‘retrieving the profileDim MyCurrentProfile as ParameterProfilesMyProfileFactory.GetProfileInstances(MyProfileName,MyListOfProfiles)
- Parameters:
i_instance_name (str) –
o_profile_instance (ParameterProfiles) –
- Return type:
None
- get_profile_instances(i_profile_type: str, o_profiles: tuple) ParameterProfiles ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetProfileInstances(CATBSTR iProfileType,CATSafeArrayVariant oProfiles)Gets the array of handles of the profile instances belonging to aparticular profile typeParameters:iProfileTypeThe Profile Type (input)oProfilesThe array of handles to the profile instances of the type specifiedabove(output)Example:‘retrieving the handle on the profile factoryDim MyProfileFactory As ParameterProfilesFactoryset MyProfileFactory = ……‘defining the typeDim MyProfileTypeset MyProfileType = “MyProfileType” ‘example‘retrieving the list of profiles as an arrayDim MyListOfProfiles() As ParameterProfilesMyProfileFactory.GetProfileInstances(MyProfileType,MyListOfProfiles)‘loop for each profileDim MyCurrentProfile as ParameterProfilesFor Each MyCurrentProfile In MyListOfProfiles…Next
- Parameters:
i_profile_type (str) –
o_profiles (tuple) –
- Return type: