Skip to Content

Attribute Enum

Quick Facts

PropertyValue
ClassCENPyOlpAttributeEnum
Modulecenpylib.CENPyOlpAttributeEnum
Packagecenpylib
ReleaseR2025.2.4
Methods4
Inherits fromCENPyOlpAttribute

Inheritance

Quick Start

# Boilerplate Example attributeEnum = ... # obtained from the runtime context result = attributeEnum.GetValue()

Method Index

MethodReturnsSummary
AddLiteralAdd a new literal to the enum.
SetValueSet a literal.
GetValuestrGet the literal value
GetLiteralIndexintGet index of literal value

Query Methods

GetValue

def GetValue() -> str

Get the literal value

Returns: str — literal value

GetLiteralIndex

def GetLiteralIndex() -> int

Get index of literal value

Returns: int — literal index

Mutation Methods

AddLiteral

def AddLiteral(newLiteral: str)

Add a new literal to the enum.

Parameters:

NameTypeDescription
newLiteralstrliteral to add

SetValue

def SetValue(val: str)

Set a literal.

Parameters:

NameTypeDescription
valstrNew literal

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?