Skip to main content
13-Aquamarine
March 9, 2016
Solved

With Isoview and using JavaScript language, how to list all the objects of an illustration ?

  • March 9, 2016
  • 1 reply
  • 1143 views

With Isoview and using JavaScript language, how to list all the objects of an illustration and how to get the objects Id?

Best answer by dgopois

See below the function to list objects:

function listObjects()
{
var ObjID = new Array();
var ObjName = new Array();

for ( n = 0; n < document.ivx1.Iso3GetObjectCount(); n++)
{
ObjID[n] = document.ivx1.Iso3GetObjectIDByIndex(n);
ObjName[n] = document.ivx1.Iso3GetObjectNameByIndex(n);
}

}

1 reply

dgopois13-AquamarineAuthorAnswer
13-Aquamarine
March 11, 2016

See below the function to list objects:

function listObjects()
{
var ObjID = new Array();
var ObjName = new Array();

for ( n = 0; n < document.ivx1.Iso3GetObjectCount(); n++)
{
ObjID[n] = document.ivx1.Iso3GetObjectIDByIndex(n);
ObjName[n] = document.ivx1.Iso3GetObjectNameByIndex(n);
}

}