Skip to Content

Attribute

Quick Facts

PropertyValue
ClassCENPyOlpAttribute
Modulecenpylib.CENPyOlpAttribute
Packagecenpylib
ReleaseR2025.2.4
Methods13
SubclassesAttribute Bool, Attribute Double, Attribute Enum, Attribute Int, Attribute String, Attribute Table

Inheritance

Quick Start

# Boilerplate Example attribute = ... # obtained from the runtime context result = attribute.GetVisibility()

Method Index

MethodReturnsSummary
SetOlpPropertySets Olp Property of attribute.
GetVisibilityboolGet visibility status of attribute.
SetVisibilitySet visibility status of attribute.
GetNamestrGet name of attribute.
SetNameSet name of attribute.
GetRecomputeEnterStateintReturns the enter state for recompute valid for this attribute.
SetReComputeEnterStateSets the enter state for recompute for this attribute.
IsValidboolChecks if attribute is a valid olp attribute
SetReadOnlySet readonly status of attribute.
GetReadOnlyboolGet readonly status of attribute.
SetIconNameSet the icon name for this attribute.
GetIconNamestrReturns the icon name for this attribute
SetTooltipKeySet the tooltipKey for this attribute.

Query Methods

GetVisibility

def GetVisibility() -> bool

Get visibility status of attribute.

Returns: bool — visibility status

GetName

def GetName() -> str

Get name of attribute.

Returns: str — name

GetRecomputeEnterState

def GetRecomputeEnterState() -> int

Returns the enter state for recompute valid for this attribute.

Returns: int — Recompute enter state.

IsValid

def IsValid() -> bool

Checks if attribute is a valid olp attribute

Returns: bool — True if valid, False if not valid or null

GetReadOnly

def GetReadOnly() -> bool

Get readonly status of attribute.

Returns: bool — readonly status

GetIconName

def GetIconName() -> str

Returns the icon name for this attribute

Returns: str — The icon for this attribute

Mutation Methods

SetOlpProperty

def SetOlpProperty(iOlpProperty: int)

Sets Olp Property of attribute.

Parameters:

NameTypeDescription
iOlpPropertyintinput of Olp Property, one or combination of following values can be given - USER_ATTRIBUTE | PROCESS_ATTRIBUTE | OPERATION_ATTRIBUTE | OPERATION_GROUP_ATTRIBUTE | GLOBAL_ATTRIBUTE

SetVisibility

def SetVisibility(visible: bool)

Set visibility status of attribute.

Parameters:

NameTypeDescription
visibleboolinput of visibility status

SetName

def SetName(name: str)

Set name of attribute.

Parameters:

NameTypeDescription
namestrname of attribute

SetReComputeEnterState

def SetReComputeEnterState(recomputableEnterState: int)

Sets the enter state for recompute for this attribute.

Parameters:

NameTypeDescription
recomputableEnterStateintRecompute enter state.

SetReadOnly

def SetReadOnly(readOnly: bool)

Set readonly status of attribute.

Parameters:

NameTypeDescription
readOnlyboolinput of readonly status

SetIconName

def SetIconName(iconName: str)

Set the icon name for this attribute. Attention: Currently this method has no effect in ActiveProgramDashboard and in ProgrammingDefaultsDashboard because the icons there are managed in settings.xml

Parameters:

NameTypeDescription
iconNamestrThe icon to be used for this attribute

SetTooltipKey

def SetTooltipKey(tooltipKey: str)

Set the tooltipKey for this attribute.

Parameters:

NameTypeDescription
tooltipKeystrKey for tooltip

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?