To make my question more clear, I'd like to add a fragment of the report script:
----------------------------------------------------------------------------------------------
for (var i=0;i<arrayOfObjOccs.length;i++)
{
var objOccSymbol = arrayOfObjOccs[i].ObjDef().Attribute(Constants.AT_PEM_SYMOL_EXCEPT, nLocale).GetValue(false))
if (objOccSymbol == Constants.ST_FUNC)
{
... //do something
} //end if
} //next for-----------------------------------------------------------------------------------------------
I'm unable to use the Model.getObjOccFilter() (or similar functions) because I explicitly need the the content of the Array in the sequence as it is.Does anybody know which attribute can be used to determine the symbol of objects or if there's any other possibility? Thank you in advance for your help!
Torsten Haase on
Hi Mr. Hess,
it's much easier. The ObjOcc provides access to its symbol directly:
for (var i=0;i<arrayOfObjOccs.length;i++) { if (arrayOfObjOccs[i].getSymbol() == Constants.ST_FUNC) { ... //do something } //end if } //next for -----------------------------------------------------------------------------------------------If you are not using default symbols but user-defined symbols, you use the method getSymbolGUID() instead of getSymbol().