Attrib Setter
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpAttribSetter |
| Module | cenpylib.CENPyOlpAttribSetter |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 6 |
Quick Start
# Boilerplate Example
attribSetter = ... # obtained from the runtime context
result = attribSetter.GetSystemAttribSetter()Method Index
| Method | Returns | Summary |
|---|---|---|
SetInteger | — | Set the Integer Value for the given Integer attribute. |
SetDouble | — | Set the Double Value for the given Double attribute. |
SetString | — | Set the String Value for the given String attribute. |
SetBool | — | Set the Bool Value for the given Bool attribute. |
SetEnumIndex | — | Set the EnumIndex Value for the given Enum attribute. |
GetSystemAttribSetter | CENPyOlpSystemAttribSetter | Get the system attribute setter. |
Query Methods
GetSystemAttribSetter
def GetSystemAttribSetter() -> CENPyOlpSystemAttribSetterGet 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:
| Name | Type | Description |
|---|---|---|
name | str | Name of the attribute. |
val | int | New Value of the attribute. |
overrideMode | int | Level 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:
| Name | Type | Description |
|---|---|---|
name | str | Name of the attribute. |
val | float | New Value of the attribute. |
overrideMode | int | Level 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:
| Name | Type | Description |
|---|---|---|
name | str | Name of the attribute. |
val | str | New Value of the attribute. |
overrideMode | int | Level 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:
| Name | Type | Description |
|---|---|---|
name | str | Name of the attribute. |
val | bool | New Value of the attribute. |
overrideMode | int | Level 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:
| Name | Type | Description |
|---|---|---|
name | str | Name of the attribute. |
index | int | New Value of the attribute. |
overrideMode | int | Level at which to set the attribute Value (Default = 0, OpGroup, Operation, CheckLevel). (default: ATTRIBOVERRIDEMODE_DEFAULT) |
Related Types
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?