CimPointEnumList.Item (read-only property)

Gets the PointEnum by name.
Syntax: Set CimPointEnum = object.Item ( EnumID )
EnumID As String - Enum to be retrieved.
Description: CimPointEnumList.Item returns a CimPointEnum by name. Use this method to obtain an existing point enum.


Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "d:\classes\classes.gef"
Dim pointEnums As CimPointEnumList
Dim pointEnum As CimPointEnum
Set pointEnums = project.PointEnums
Set pointEnum = pointEnums.Item("TurbineStates")
pointEnum.Description = "Turbine operational states."
pointEnum.Save False