Hello,
I need to read the envelope coordinates from the rectangular fence that is drawn manually by the user.Which property/method of the fence object do I need to obtain those values ?
I tried the view property of the fence object but it returned the coordinates related to the entire view, not the fence.
Thanks in advance for any help !
Geoff
Hi Geof,
I guess (no testing done) you can use Fence.CreateElement to obtain shape element equal to the fence (because the fence is always shape). And the shape element has Range property.
You should be aware the range is not exact envelope, but the smallest envelope, rounded to "integer UORs units". So it's typically slightly bigger, but the difference is tiny.
When you need exact envelope, you have to implement own analysis of returned shape (and its vertices).
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Answer Verified By: Geoffrey Jans
Hello Jan,
This helped me. Thank you !