CimResourceList.Save (method)

Saves the resource
Syntax: object.Save resource, bDynamic
Parameters:
resource As CimResource - Object to be saved.
bDynamic As BOOL - Save dynamically.
Description: CimResourceList.Save saves a CimResource to the project.

Examples

Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "d:\classes\classes.gef"
Dim resources As CimResourceList
Dim resource As CimResource
Set resources = project.Resources
Set resource = resources.New("AREA1")
resource.Description = "Area 1"
resource.Users.AddAll
resources.Save resource, False