CimResourceList.Item (read-only property)

Gets the resource by name.
Syntax: Set CimResource = object.Item ( ResourceID )
Parameters:
ResourceID As String - Resource ID to be retrieved.
Description: CimResourceList.Item returns a CimResource by name. Use this method to obtain a CimResource object for an existing resource in 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.Item("AREA1")
resource.Description = "Area 1 Resource"
resources.Save resource, False