Attribute Int
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpAttributeInt |
| Module | cenpylib.CENPyOlpAttributeInt |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 8 |
| Inherits from | CENPyOlpAttribute |
Inheritance
Quick Start
# Boilerplate Example
attributeInt = ... # obtained from the runtime context
result = attributeInt.GetValue()Method Index
| Method | Returns | Summary |
|---|---|---|
SetValue | — | Set integer value of attribute. |
GetValue | int | Get integer value of attribute. |
SetMinimum | — | Set minimal value of integer attribute. |
GetMinimum | int | Get minimal value of integer attribute. |
SetMaximum | — | Set maximal value of integer attribute. |
GetMaximum | int | Get maximal value of integer attribute. |
SetStepSize | — | Set step size for integer attribute. |
GetStepSize | int | Get step size of integer attribute. |
Query Methods
GetValue
def GetValue() -> intGet integer value of attribute.
Returns: int — value
GetMinimum
def GetMinimum() -> intGet minimal value of integer attribute.
Returns: int — the minimal value of integer attribute.
GetMaximum
def GetMaximum() -> intGet maximal value of integer attribute.
Returns: int — the maximal value of integer attribute.
GetStepSize
def GetStepSize() -> intGet step size of integer attribute.
Returns: int — step size of integer attribute..
Mutation Methods
SetValue
def SetValue(value: int)Set integer value of attribute.
Parameters:
| Name | Type | Description |
|---|---|---|
value | int | new value |
SetMinimum
def SetMinimum(min: int)Set minimal value of integer attribute.
Parameters:
| Name | Type | Description |
|---|---|---|
min | int | the minimal value of integer attribute. |
SetMaximum
def SetMaximum(max: int)Set maximal value of integer attribute.
Parameters:
| Name | Type | Description |
|---|---|---|
max | int | the maximal value of integer attribute. |
SetStepSize
def SetStepSize(step: int)Set step size for integer attribute.
Parameters:
| Name | Type | Description |
|---|---|---|
step | int | step size for integer attribute. |
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?