CimEventActionList.Item (method)

Gets the EventAction by event name.
Syntax: Set CimEventAction = object.Item ( EventID, ActionID )
Parameters:
EventID As String - Name of event id.
ActionID As String - Name of action id.
Description: CimEventActionList.Item returns a CimEventAction by name. Use this method to obtain a CimEventAction object for an existing action in the project.

Examples

Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "c:\cimpdemo\cimpdemo.gef"
Dim eventActionList as CimEventActionList
set eventActionList = project.EventActions
Dim eventAction as CimEventAction
set eventAction = eventActionList.Item("TRIGGER_EVENT", "TRIGGER_ACTION")