Skip to Content

Attrib Setter

Quick Facts

PropertyValue
ClassCENPyOlpAttribSetter
Modulecenpylib.CENPyOlpAttribSetter
Packagecenpylib
ReleaseR2025.2.4
Methods6

Quick Start

# Boilerplate Example attribSetter = ... # obtained from the runtime context result = attribSetter.GetSystemAttribSetter()

Method Index

MethodReturnsSummary
SetIntegerSet the Integer Value for the given Integer attribute.
SetDoubleSet the Double Value for the given Double attribute.
SetStringSet the String Value for the given String attribute.
SetBoolSet the Bool Value for the given Bool attribute.
SetEnumIndexSet the EnumIndex Value for the given Enum attribute.
GetSystemAttribSetterCENPyOlpSystemAttribSetterGet the system attribute setter.

Query Methods

GetSystemAttribSetter

def GetSystemAttribSetter() -> CENPyOlpSystemAttribSetter

Get the system attribute setter.

Returns: CENPyOlpSystemAttribSetter — System attribute setter object.

Mutation Methods

SetInteger

def SetInteger(name: str, val: int, overrideMode: int=ATTRIBOVERRIDEMODE_DEFAULT)

Set the Integer Value for the given Integer attribute.

Parameters:

NameTypeDescription
namestrName of the attribute.
valintNew Value of the attribute.
overrideModeintLevel at which to set the attribute Value (Default = 0, OpGroup, Operation, CheckLevel). (default: ATTRIBOVERRIDEMODE_DEFAULT)

SetDouble

def SetDouble(name: str, val: float, overrideMode: int=ATTRIBOVERRIDEMODE_DEFAULT)

Set the Double Value for the given Double attribute.

Parameters:

NameTypeDescription
namestrName of the attribute.
valfloatNew Value of the attribute.
overrideModeintLevel at which to set the attribute Value (Default = 0, OpGroup, Operation, CheckLevel). (default: ATTRIBOVERRIDEMODE_DEFAULT)

SetString

def SetString(name: str, val: str, overrideMode: int=ATTRIBOVERRIDEMODE_DEFAULT)

Set the String Value for the given String attribute.

Parameters:

NameTypeDescription
namestrName of the attribute.
valstrNew Value of the attribute.
overrideModeintLevel at which to set the attribute Value (Default = 0, OpGroup, Operation, CheckLevel). (default: ATTRIBOVERRIDEMODE_DEFAULT)

SetBool

def SetBool(name: str, val: bool, overrideMode: int=ATTRIBOVERRIDEMODE_DEFAULT)

Set the Bool Value for the given Bool attribute.

Parameters:

NameTypeDescription
namestrName of the attribute.
valboolNew Value of the attribute.
overrideModeintLevel at which to set the attribute Value (Default = 0, OpGroup, Operation, CheckLevel). (default: ATTRIBOVERRIDEMODE_DEFAULT)

SetEnumIndex

def SetEnumIndex(name: str, index: int, overrideMode: int=ATTRIBOVERRIDEMODE_DEFAULT)

Set the EnumIndex Value for the given Enum attribute.

Parameters:

NameTypeDescription
namestrName of the attribute.
indexintNew Value of the attribute.
overrideModeintLevel at which to set the attribute Value (Default = 0, OpGroup, Operation, CheckLevel). (default: ATTRIBOVERRIDEMODE_DEFAULT)

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?