Skip to Content

Set Integer Attribute

Quick Facts

PropertyValue
ClassOlpCorePythonSetIntegerAttribute
Modulecenpyolpcore.OlpCorePythonSetIntegerAttribute
Packagecenpyolpcore
ReleaseR2025.2.4
Methods9
Inherits fromOlpCorePythonIntegerAttribute

Inheritance

Method Index

MethodReturnsSummary
SetOlpPropertySets the AttributeProperties of this attribute
SetReadOnlySets whether or not this attribute is globally read-only
SetNameSets the name of the attribute
SetGroupNameSets the group name
SetValueSets the current value
SetValueUnitTypeSets the type of unit the value is given in.
SetMinimumSets the defined valid minimum value
SetMaximumSets the defined valid maximum value
SetStepSizeSets 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:

NameTypeDescription
olpPropertyintAttributeProperties to be set

SetReadOnly

def SetReadOnly(isReadOnly: bool)

Sets whether or not this attribute is globally read-only

Parameters:

NameTypeDescription
isReadOnlyboolTrue if the must be attribute is read-only, False otherwise

SetName

def SetName(name: str)

Sets the name of the attribute

Parameters:

NameTypeDescription
namestrthe name of the attribute

SetGroupName

def SetGroupName(name: str)

Sets the group name

Parameters:

NameTypeDescription
namestrthe name of the attribute group

SetValue

def SetValue(value: int)

Sets the current value

Parameters:

NameTypeDescription
valueintthe 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:

NameTypeDescription
valueUnitTypeintnew value unit type to be used

SetMinimum

def SetMinimum(minValue: int)

Sets the defined valid minimum value

Parameters:

NameTypeDescription
minValueintthe minimum value the attribute can represent

SetMaximum

def SetMaximum(maxValue: int)

Sets the defined valid maximum value

Parameters:

NameTypeDescription
maxValueintthe maximum value the attribute can represent

SetStepSize

def SetStepSize(stepSize: int)

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:

NameTypeDescription
stepSizeintthe defined step size

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?