pycatia.system_interfaces.setting_controller¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-09 09:53:18.676780
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.system_interfaces.setting_controller.SettingController(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSettingControllerRepresents the base object for setting controllers.Role: A setting controller manages all or only a part of the parametersavailable in a property page of the dialog displayed using the Options commandof the Tools menu. Each setting parameter may be represented by one or severalsetting attribute in the underlying setting repository.All setting controllers share the five methods of the SettingController objectto deal with the whole set, or a subset of the settingattributes:Commit to make a memory copy of the setting attributevaluesRollback to restore the last memory copy of the setting attributevaluesResetToAdminValues to restore the administered values of all theattributesResetToAdminValuesByName to restore the administered values of a subset ofthe attributesSaveRepository to make a persistent copy of the setting attribute values onfile.In addition, each setting controller exposes four methods per settingparameter: two methods to access the setting attribute values, that usuallymake up a read/write property if the setting parameter is represented by asingle setting attribute, a method to manage the setting parameter lock, and amethod to retrieve the state of the setting parameter. The first two methodsare parameter-specific and are fully described in the setting controller objectthat managing the setting parameter. The last two methods have always the samesignature and the same behavior whatever the setting parameter. They aredescribed below. PARAMETER is used in place of the actual setting parametername.Managing the Setting Parameter LockHRESULT SetPARAMETERLock(in boolean iLocked);Locks or unlocks the PARAMETER setting parameter.Role: Locking a setting parameter prevents the end user, or theadministrators below the current one, from changing the setting parametervalue. Locking or unlocking the PARAMETER setting parameter is an administratortask and is possible when running a session in the administration modeonly.ParametersiLocked[in] A flag to indicate whether the PARAMETER setting parametershould be locked.Legal values: True to lock, and False to unlock.Retrieving the Setting Parameter StateHRESULT GetPARAMETERInfo (inout CATBSTR ioAdminLevel,inout CATBSTR ioLocked,out /IDLRETVAL/ booleanoModified);Retrieves information about the PARAMETER settingparameter.Role: This information defines the state of the setting parameter and ismade up of:The administration level that sets the current value or the value usedto reset itThe administration level that has locked the settingparameter.A flag to indicate whether the setting parameter wasmodified.ParametersioAdminLevel[inout] The administration leve that defines the value used whenresetting the setting parameter.Legal values:Default value if the setting parameter has never beenexplicitly set in the administrationconcatenation.Set at Admin Level n if the setting parameter has beenadministered,where n is an integer starting from 0 representing the rank ofthe administration level.ioLocked[inout] A character string to indicate whether the parameter islocked and the level of administration where the locking has beenproceeded.Legal values:Locked at Admin Level n if the setting parameter is locked bythen administration level n,where n is an integer starting from 0. The setting parametercan not be modified at the current level.Locked if the setting parameter is locked by the currentadministration level. Only an admistrator can get thisvalue.Unlocked if the setting parameter is notlockedReturnsTrue to indicate that the setting parameter value has been explicitelymodified at the current administrator or user level. This is only possible withunlocked parameters. False means that it inherits the administeredvalue.- commit()¶
Note
- CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
- o Sub Commit()Makes a memory copy of the setting attribute values.Role: Commit saves the current values of the setting attributes managed bythe setting controller in a specific memory area. Successive calls to Commitoverwrite the memory area. The values saved by the last call to Commit can berestored from that memory area using the Rollback method.
- Returns:
None
- reset_to_admin_values()¶
Note
- CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
- o Sub ResetToAdminValues()Restores the administrated values of the all attributes.Role: ResetToAdminValues restores all the values of the setting attributesmanaged by the setting controller to either the values set by the settingadministrator, or to their default values if the setting administrator did notchange them.
- Returns:
None
- reset_to_admin_values_by_name(i_att_list)¶
Note
- CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
- o Sub ResetToAdminValuesByName(CATSafeArrayVariant iAttList)Restores the administrated values of a subset of theattributes.Role: ResetToAdminValuesByName restores the values of a subset of thesetting attributes managed by the setting controller to either the values setby the setting administrator, or to their default values if the settingadministrator did not change them.Parameters:iAttListThe attribute subset to which the administrated values are to berestored
- Parameters:
i_att_list (tuple) –
- Returns:
None
- rollback()¶
Note
- CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
- o Sub Rollback()Restores the last memory copy of the setting attributevalues.Role: Rollback restores the values of the setting attributes managed by thesetting controller from the memory area. All values of the setting attributesmanaged by the setting controller modified since the last call to Commit arerestored to the values they had when this last Commit was called.
- Returns:
None
- save_repository()¶
Note
- CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
- o Sub SaveRepository()Makes a persistent copy of the setting attribute values onfile.Role: SaveRepository saves the current values of the setting attributesmanaged by the setting controller in a setting repository file. To avoidinconsistencies, SaveRepository first saves the values in the memory area usedby the Commit method by calling Commit before writing the values in the settingrepository file.
- Returns:
None