Documentation for Intellect 4.9.8. Documentation for other versions of Intellect is available too.

Skip to end of metadata
Go to start of metadata

GetObjectIds  method is responsible for receiving identifiers from all the objects of a specified type.

Method call syntax:

 function GetObjectIds(objectType : String)

A line is replied :


where  id.count<> – number of  ID objects,

       id.[count]<> – ID object.

Method’s arguments:

objectType required argument. Set the type of the system object, for which   the value of the given parameter should be given back ("CAM","GRAY","GRABBER" e.t.c.).Accepted values: type String, range is restricted by object types  registered in the system.

Example. All the cameras should be armed upon the start of Macros№1.

 if (Event.SourceType == "MACRO" && Event.SourceId && Event.Action == "RUN")
var msg = CreateMsg();
var objCount = msg.GetParam("id.count");
var i;
for(i = 0; i < objCount; i++)
DoReactStr("CAM", msg.GetParam("id." + i), "ARM", "");