CimGlobalParmList.New (method)

Creates a new global parameter.
Syntax: Set CimGlobalParm = object.New ( ParmID )
ParmID As String - Name of the new global parameter
Description: CimGlobalParmList.New returns a new CimGlobalParm object. This is the method to call to create a new item. You must call CimGlobalParmList.Save to save the global parameter.


Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "d:\classes\classes.gef"
Dim parms As CimGlobalParmList
Dim parm As CimGlobalParm
Set parms = project.GlobalParms
Set parm = parms.New("XYZ")
parm.Value = "Y"
parms.Save parm, FALSE