CimDeviceList.Item (read-only property)

Gets the device by name.
Syntax: Set CimDevice = object.Item ( DeviceID )
DeviceID As String - Device ID to be retrieved.
Description: CimDeviceList.Item returns a CimDevice by name. Use this method to obtain a CimDevice object for an existing device in the project.


Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "d:\classes\classes.gef"
Dim dl As CimDeviceList
Dim d As cimDevice
Set dl = project.Devices
Set d = dl.Item("PLC1")