CimActionList.Add (method)

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

Examples

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