fabianmoronzirfas
8/8/2014 - 9:59 AM

stackoverflow-25186318.md

check out:
http://www.jongware.com/idjshelp.html
or:
http://yearbookmachine.github.io/esdocs/#/Illustrator/PageItem

Rect geometricBounds Read only Property
The bounds of the artwork excluding stroke width.

There is not a lot of info on the Object Model Viewer about it. If it behaves like in InDesign the coordiantes depend on:

  • The page origin
  • The set unit
  • The pagesize

I hope that helps.

var main = function(){
    if(app.activeDocument.selection.length > 0){
            var path = app.activeDocument.selection[0];
                    alert(path.geometricBounds);        
                }
        }
    }
main();