I started scripting and using Script Shell. I managed to get x&y coordinates of lines start&end points and other information, but I cannot get areas. I tried "entity.getArea()", but it looks like this function doesn't exist.
This is the code I'm using:
Code: Select all
var doc = EAction.getDocument();
var entityIds = doc.queryAllVisibleEntities();
entityIds = doc.getStorage().orderBackToFront(entityIds);
for (var i = 0; i < entityIds.length; ++i) {
var entity = doc.queryEntity(entityIds[i]);
var pline = "" + entity.getId() + " ";
if (isPolylineEntity(entity)) {
pline += entity.getArea() + ",";
}
}
Regards,
David