Attribute Double
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpAttributeDouble |
| Module | cenpylib.CENPyOlpAttributeDouble |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 8 |
| Inherits from | CENPyOlpAttribute |
Inheritance
Quick Start
# Boilerplate Example
attributeDouble = ... # obtained from the runtime context
result = attributeDouble.GetValue()Method Index
| Method | Returns | Summary |
|---|---|---|
SetValue | — | Set double value of attribute. |
GetValue | float | Get double value of attribute. |
SetMinimum | — | Set the minimum range value. |
GetMinimum | float | Get the attribute minimum value. |
SetMaximum | — | Set the maximum range value. |
GetMaximum | float | Get the attribute maximum value |
SetStepSize | — | Set the attribute step size. |
GetStepSize | float | Get the attribute step size. |
Query Methods
GetValue
def GetValue() -> floatGet double value of attribute.
Returns: float — value of the attribute
GetMinimum
def GetMinimum() -> floatGet the attribute minimum value.
Returns: float — attribute minimum value
GetMaximum
def GetMaximum() -> floatGet the attribute maximum value
Returns: float — attribute maximum value
GetStepSize
def GetStepSize() -> floatGet the attribute step size.
Returns: float — attribute step size
Mutation Methods
SetValue
def SetValue(value: float)Set double value of attribute.
Parameters:
| Name | Type | Description |
|---|---|---|
value | float | new value |
SetMinimum
def SetMinimum(min: float)Set the minimum range value. Must not be higher than maximum!
Parameters:
| Name | Type | Description |
|---|---|---|
min | float | minimum range value |
SetMaximum
def SetMaximum(max: float)Set the maximum range value. Must not be lower than minimum!
Parameters:
| Name | Type | Description |
|---|---|---|
max | float | maximum range value |
SetStepSize
def SetStepSize(step: float)Set the attribute step size.
Parameters:
| Name | Type | Description |
|---|---|---|
step | float | attribute step size |
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?