Skip to Content

Core Attribute

Quick Facts

PropertyValue
ClassOlpCorePythonAttribute
Modulecenpyolpcore.OlpCorePythonAttribute
Packagecenpyolpcore
ReleaseR2025.2.4
Methods5
SubclassesBool Attribute, Double Array Attribute, Double Attribute, Integer Array Attribute, Integer Attribute, Literal Attribute, String Array Attribute, String Attribute

Inheritance

Quick Start

# Boilerplate Example coreAttribute = ... # obtained from the runtime context result = coreAttribute.GetOlpProperty()

Method Index

MethodReturnsSummary
GetOlpPropertyAttributePropertiesGets the AttributeProperties of this instance
GetReadOnlyboolGets whether or not this attribute is globally read-only
GetNamestrGets the name of the attribute
GetGroupNamestrGets the group name
GetValueUnitTypeintGets the Unit Type the value is represented in

Query Methods

GetOlpProperty

def GetOlpProperty() -> AttributeProperties

Gets the AttributeProperties of this instance

Returns: AttributeProperties — returns the set AttributeProperties

GetReadOnly

def GetReadOnly() -> bool

Gets whether or not this attribute is globally read-only

Returns: bool — returns True if the attribute is read-only, False otherwise

GetName

def GetName() -> str

Gets the name of the attribute

Returns: str — returns the name of the attribute as cen_string

GetGroupName

def GetGroupName() -> str

Gets the group name

Returns: str — returns the name of the attribute group as cen_string

GetValueUnitType

def GetValueUnitType() -> int

Gets the Unit Type the value is represented in

Returns: int — returns the Unit Type the value is represented in

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?