Attribute Enum
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpAttributeEnum |
| Module | cenpylib.CENPyOlpAttributeEnum |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 4 |
| Inherits from | CENPyOlpAttribute |
Inheritance
Quick Start
# Boilerplate Example
attributeEnum = ... # obtained from the runtime context
result = attributeEnum.GetValue()Method Index
| Method | Returns | Summary |
|---|---|---|
AddLiteral | — | Add a new literal to the enum. |
SetValue | — | Set a literal. |
GetValue | str | Get the literal value |
GetLiteralIndex | int | Get index of literal value |
Query Methods
GetValue
def GetValue() -> strGet the literal value
Returns: str — literal value
GetLiteralIndex
def GetLiteralIndex() -> intGet index of literal value
Returns: int — literal index
Mutation Methods
AddLiteral
def AddLiteral(newLiteral: str)Add a new literal to the enum.
Parameters:
| Name | Type | Description |
|---|---|---|
newLiteral | str | literal to add |
SetValue
def SetValue(val: str)Set a literal.
Parameters:
| Name | Type | Description |
|---|---|---|
val | str | New literal |
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?