Core Attribute
Quick Facts
| Property | Value |
|---|---|
| Class | OlpCorePythonAttribute |
| Module | cenpyolpcore.OlpCorePythonAttribute |
| Package | cenpyolpcore |
| Release | R2025.2.4 |
| Methods | 5 |
| Subclasses | Bool 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
| Method | Returns | Summary |
|---|---|---|
GetOlpProperty | AttributeProperties | Gets the AttributeProperties of this instance |
GetReadOnly | bool | Gets whether or not this attribute is globally read-only |
GetName | str | Gets the name of the attribute |
GetGroupName | str | Gets the group name |
GetValueUnitType | int | Gets the Unit Type the value is represented in |
Query Methods
GetOlpProperty
def GetOlpProperty() -> AttributePropertiesGets the AttributeProperties of this instance
Returns: AttributeProperties — returns the set AttributeProperties
GetReadOnly
def GetReadOnly() -> boolGets whether or not this attribute is globally read-only
Returns: bool — returns True if the attribute is read-only, False otherwise
GetName
def GetName() -> strGets the name of the attribute
Returns: str — returns the name of the attribute as cen_string
GetGroupName
def GetGroupName() -> strGets the group name
Returns: str — returns the name of the attribute group as cen_string
GetValueUnitType
def GetValueUnitType() -> intGets the Unit Type the value is represented in
Returns: int — returns the Unit Type the value is represented in
Related Types
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?