CimAlarm.Save (method)

Saves the alarm.
Syntax: object.Save dynamicMode
Parameters:
Optional dynamicMode As VARIANT - Add / Modify Dynamically
Description: CimAlarm.Save is used to modify or add a new alarm to a project.

Examples

Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "c:\cimpdemo\cimpdemo.gef"
Dim alarm as CimAlarm
set alarm = CreateObject("CimAlarm")
'must set the alarm id BEFORE setting other properties
alarm.AlarmID = "NEW_USER_ALARM"
alarm.AlarmTypeId = "$CIMBASIC"
alarm.AlarmClass = "HIGH"
alarm.AlarmMessage = "%s"
alarm.Save