CimEventList.Item (read-only property)

Gets Event by name.
Syntax: Set CimEvent = object.Item ( eventID )
eventID As String - Name of the event to be retrieved from the event list.
Description: CimEventList.Item returns a Cimevent by name. Use this method to obtain a CimEvent object for an existing event in the project. Since this is the default property of the object, you can omit it when assigning or using it.


Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "c:\cimpdemo\cimpdemo.gef"
Dim eventList as CimEventList
set eventList = project.Events
Dim event as CimEvent
set event = eventList.Item("EXISTING_EVENT_ID")