CimClassInstance.Attributes (read-only property)

Gets the Class Attribute List object.
Syntax: Set CimClassAttributeList = object.Attributes
Description: The CimClassInstance.Attributes property is read-only and returns a collection object that is used to add, modify and delete attributes for the object.

Example

Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "d:\classes\classes.gef"
Dim obj As CimObjectInstance
Set obj = project.Objects("TANK_PID")
Dim attribs As CimAttributeList
Set attribs = obj.Attributes
Dim attrib As CimAttribute
For each attrib in attribs
MsgBox attrib.ID & " = " & attrib.Value
Next attrib