pycatia.system_interfaces.setting_repository¶
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_repository.SettingRepository(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSystem.SettingControllerSettingRepositoryRepresents the base object to handle the parameters of asetting- get_attr(i_attr_name)¶
Note
- CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
- o Func GetAttr(CATBSTR iAttrName) As CATVariantRetieves a attribute.Parameters:iAttrNamethe attribute nameoAttra CATVariantReturns:Legal values:S_OK : on SuccessE_FAIL: on failure
- Parameters:
i_attr_name (str) –
- Returns:
CATVariant
- get_attr_array(i_attr_name)¶
Note
- CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
- o Func GetAttrArray(CATBSTR iAttrName) AsCATSafeArrayVariantRetieves a attribute of type arrayParameters:iAttrNamethe attribute nameoArraya CATSafeArrayVariantReturns:Legal values:S_OK : on SuccessE_FAIL: on failure
- Parameters:
i_attr_name (str) –
- Returns:
tuple
- get_attr_info(i_attr_name, admin_level, locked, o_modified)¶
Note
- CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
- o Sub GetAttrInfo(CATBSTR iAttrName,CATBSTR AdminLevel,CATBSTR Locked,boolean oModified)Retrieves environment informations for the givenattribute.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.Parameters:iAttrName[in] the attribute name.ioAdminLevel[inout] The administration level 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 notlockedoModified[out] True to indicate that the setting parameter value has beenexplicitely modified at the current administrator or user level. This is onlypossible with unlocked parameters. False means that it inherits theadministered value.Returns:Legal values:S_OK : on SuccessE_FAIL: on failure
- Parameters:
i_attr_name (str) –
admin_level (str) –
locked (str) –
o_modified (bool) –
- Returns:
None
- put_attr(i_attr_name, i_attr)¶
Note
- CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
- o Sub PutAttr(CATBSTR iAttrName,CATVariant iAttr)Sets an attribute of type array.Parameters:iAttrNamethe attribute nameiArraya CATSafeArrayVariant.Returns:Legal values:S_OK : on SuccessE_FAIL: on failure
- Parameters:
i_attr_name (str) –
i_attr (cat_variant) –
- Returns:
None
- put_attr_array(i_attr_name, i_array)¶
Note
- CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
- o Sub PutAttrArray(CATBSTR iAttrName,CATSafeArrayVariant iArray)Sets an attribute of type array.Parameters:iAttrNamethe attribute nameiArraya CATSafeArrayVariant.Returns:Legal values:S_OK : on SuccessE_FAIL: on failure
- Parameters:
i_attr_name (str) –
i_array (tuple) –
- Returns:
None
- set_attr_lock(i_attr_name, i_locked)¶
Note
- CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
- o Sub SetAttrLock(CATBSTR iAttrName,boolean iLocked)Locks or unlocks an attribute.Role: Locking a setting attribute prevents the end user, or theadministrators below the current one, from changing the setting parametervalue. Locking or unlocking the attribute setting parameter is an administratortask and is possible when running a session in the administration modeonly.Parameters:iAttrName[in] the attribute name.iLocked[in] A flag to indicate whether the attribute setting parametershould be locked.Legal values: True to lock, and False to unlock.
- Parameters:
i_attr_name (str) –
i_locked (bool) –
- Returns:
None