Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page The SaveToFile method  The WriteIni method Next page


The GetLinkedObjects method is used to get the list of objects linked to the specified camera using the Objects link object (see Connection of objects with cameras).

Syntax for method invocation:

function GetLinkedObjects(type1 : string, id : string, type2 : string)

Method argument:

  1. type1 is the type of object for which you want to return the linked objects.
  2. id is the identification number of an object for which you want to return the linked objects.
  3. type2 is the type of linked objects which you want to return. If empty string is sent, linked objects of all types will be returned.

Example.

The Objects link object is configured in the following way:

Display in the debug window the list of objects linked to camera 1.

if (Event.SourceType == "MACRO")
{
 
varmsgstr = GetLinkedObjects("CAM","1","MACRO")
 
DebugLogString("Linked objects " + msgstr);

}

 As a result, the "Linked objects MACRO:1" message will be displayed in the script debug window.

  • No labels