Set Double Attribute
Quick Facts
| Property | Value |
|---|---|
| Class | OlpCorePythonSetDoubleAttribute |
| Module | cenpyolpcore.OlpCorePythonSetDoubleAttribute |
| Package | cenpyolpcore |
| Release | R2025.2.4 |
| Methods | 9 |
| Inherits from | OlpCorePythonDoubleAttribute |
Inheritance
Method Index
| Method | Returns | Summary |
|---|---|---|
SetOlpProperty | — | Sets the AttributeProperties of this attribute |
SetReadOnly | — | Sets whether or not this attribute is globally read-only |
SetName | — | Sets the name of the attribute |
SetGroupName | — | Sets the group name |
SetValue | — | Sets the current value |
SetValueUnitType | — | Sets the type of unit the value is given in. |
SetMinimum | — | Sets the defined valid minimum value |
SetMaximum | — | Sets the defined valid maximum value |
SetStepSize | — | Sets the defined step size used for changing the value of the attribute in spinners. |
Mutation Methods
SetOlpProperty
def SetOlpProperty(olpProperty: int)Sets the AttributeProperties of this attribute
Parameters:
| Name | Type | Description |
|---|---|---|
olpProperty | int | AttributeProperties to be set |
SetReadOnly
def SetReadOnly(isReadOnly: bool)Sets whether or not this attribute is globally read-only
Parameters:
| Name | Type | Description |
|---|---|---|
isReadOnly | bool | True if the must be attribute is read-only, False otherwise |
SetName
def SetName(name: str)Sets the name of the attribute
Parameters:
| Name | Type | Description |
|---|---|---|
name | str | the name of the attribute |
SetGroupName
def SetGroupName(name: str)Sets the group name
Parameters:
| Name | Type | Description |
|---|---|---|
name | str | the name of the attribute group |
SetValue
def SetValue(value: float)Sets the current value
Parameters:
| Name | Type | Description |
|---|---|---|
value | float | the new value to set |
SetValueUnitType
def SetValueUnitType(valueUnitType: int)Sets the type of unit the value is given in. See AttributeValueUnitType for details and default units
Parameters:
| Name | Type | Description |
|---|---|---|
valueUnitType | int | new value unit type to be used |
SetMinimum
def SetMinimum(minValue: float)Sets the defined valid minimum value
Parameters:
| Name | Type | Description |
|---|---|---|
minValue | float | the minimum value the attribute can represent |
SetMaximum
def SetMaximum(maxValue: float)Sets the defined valid maximum value
Parameters:
| Name | Type | Description |
|---|---|---|
maxValue | float | the maximum value the attribute can represent |
SetStepSize
def SetStepSize(stepSize: float)Sets the defined step size used for changing the value of the attribute in spinners. The step size does not define the smallest applicable change.
Parameters:
| Name | Type | Description |
|---|---|---|
stepSize | float | the defined step size |
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?