CimObjectInstance (object)

Contains the properties of an CIMPLICITY object.
Description: The CimObjectInstance object contains the information for a CIMPLICITY object.

Examples

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

Dim obj as CimObjectInstance
set obj = objs.Item("TANK_PID")
obj.Attributes.Set "$DEVICE_ID", "PLC_1"
obj.Attributes.Set "$ADDRESS", "%R100"
obj.Attributes.Set "LOCATION", "Left Tank"

objs.Save obj, FALSE
' Create a new object and add it to the project
set obj = CreateObject("CimObjectInstance")
obj.ID = "TANK2_PID"
obj.ClassID = "PID_1"
obj.Attributes.Set "$DEVICE_ID", "DEVICE1"
obj.Attributes.Set "$ADDRESS", "%R200"
obj.Attributes.Set "$ALARM_CLASS", "HIGH"
' Route the alarms for object data items to all roles
obj.Routing.AddAll
objs.Save obj, FALSE
Properties: Attributes , ClassID , DataItems , Description , ID , Routing , XML
Methods: