CimEventList.Modify (method)

Modifies the Event.
Syntax: object.Modify eventDisp
Parameters:
eventDisp As CimEvent - Event object to be modified in the list.
Description: CimEventList.Modify modifies a Cimevent in the project.

Examples

Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "c:\cimpdemo\cimpdemo.gef"
Dim eventList as CimEventList
set eventList = project.Events
Dim event2 as CimEvent
Set event2 = eventList.Item("EXISTING_EVENT_ID")
event2.Type = AlarmGenerated
event2.AlarmID = "ALARM_BLOCK1"
event2.ResourceID = "$SYSTEM"
event2t.ClassID = "ABLCK"
eventList.Modify event2