CimActionList.Add (method)

Adds the Action.
Syntax: object.Add actionDisp
actionDisp As CimAction - Action object to be added to the list.
Description: CimActionList.Add adds a CimAction to the project.


Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "c:\cimpdemo\cimpdemo.gef"
Dim actionList as CimActionList
set actionList = project.actions
Dim action as CimAction
set action = CreateObject("CimAction")
action.ID = "NEW_ACTION"
action.Type = CimRunScript
action.ScriptName = "newscript.bcl"
actionList.Add action