Skip to Content

Set Bool Attribute

Quick Facts

PropertyValue
ClassOlpCorePythonSetBoolAttribute
Modulecenpyolpcore.OlpCorePythonSetBoolAttribute
Packagecenpyolpcore
ReleaseR2025.2.4
Methods6
Inherits fromOlpCorePythonBoolAttribute

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.

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: bool)

Sets the current value

Parameters:

NameTypeDescription
valueboolthe 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

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?