CimAlarmClassList.Item (read-only property)

Gets a CimAlarmClass by name.
Syntax: Set CimAlarmClass = object.Item ( AlarmClassID )
Parameters:
AlarmClassID As String - Alarm class to be retrieved.
Description: CimAlarmClassList.Item returns a CimAlarmClass by name. Use this method to obtain an existing alarm class.

Example

Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "d:\classes\classes.gef"
Dim alarmClasses As CimAlarmClassList
Dim alarmClass As CimAlarmClass
Set alarmClasses = project.AlarmClasses
Set alarmClass = alarmClasses.Item("NCRIT")
alarmClass.Title = "Turbine alarm class."
alarmClass.Save False