CimActionList.Modify (method)

Modifies the Action.
Syntax: object.Modify actionDisp
actionDisp As CimAction - Action object to be modified in the list.
Description: CimActionList.Modify modifies a CimAction in 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 = actionList.Item("EXISTING_ACTION_ID")
action.Type = CimRunScript
action.ScriptName = "em_init.bcl"
actionList.Modify action