CimPointEnumField.SetpointAllowed (property)

Gets and sets if a setpoint is allowed with this enum fields text.
Syntax: Boolean = object.SetpointAllowed
object.SetpointAllowed = Boolean
Description: The SetpointAllowed property gets and sets if a setpoint is allowed with this enum text for the point.



Example:

Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "d:\classes\classes.gef"
Dim pointEnums As CimPointEnumList
Dim pointEnum As CimPointEnum
Dim pointEnumFields As CimPointEnumFieldList
Dim pointEnumField As CimPointEnumField
Set pointEnums = project.PointEnums
Set pointEnum = pointEnums.Item("TurbineStates")
Set pointEnumFields = pointEnum.Fields
Set pointEnumField = pointEnumFields.Item("Starting")
pointEnumField.SetpointAllowed = True
pointEnum.Save False