CimClassList.Item (read-only property)

Retrieve a class by name.
Syntax: Set CimClassInstance = object.Item ( classID )
classID As String - The name of the class to retrieve from the list.
Description: CimClassList.Item returns a CimClassInstance by name. Use this method to obtain a CimClassInstance object for an existing class in the project.


Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "d:\classes\classes.gef"
Set classes = project.classes

Dim class As CimClassInstance
Set class = classes.Item("GefTank")