Archi Forum

Archi Plug-ins => jArchi => Topic started by: TimHale on April 24, 2019, 22:12:30 PM

Title: jarchi: access object height and width?
Post by: TimHale on April 24, 2019, 22:12:30 PM
is it possible to access an object's height and width with jArchi?

For simplicity, here's the gist of what I'm trying, with 1 object selected:

$(selection).get(0).width

it's returning undefined.  Hopefully its just a syntax issue

Thanks
Title: Re: jarchi: access object height and width?
Post by: Phil Beauvoir on April 24, 2019, 22:14:09 PM
You need "bounds"

https://github.com/archimatetool/archi-scripting-plugin/wiki/jArchi-Object#bounds
Title: Re: jarchi: access object height and width?
Post by: TimHale on April 24, 2019, 22:16:42 PM
perfect!