
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good day,
The last time I was at the API forums I was politely shunted to Dynamo to which I gladly obliged, but now I have returned on a new quest!
I would like to know if it is possible to set the bounding box to only take visible geometry into account, as I've explained in the post below:
https://forum.dynamobim.com/t/bounding-box-ignore-hidden-geometry/38428/3
I have referred to the following links:
https://thebuildingcoder.typepad.com/blog/2008/10/element-bounding-box.html
https://www.revitapidocs.com/2020/def2f9f2-b23a-bcea-43a3-e6de41b014c8.htm
and saw that Element BoundingBox property retrieves a box that circumscribes all geometry of the element. This holds true for geometry for which the visibility is switched off, as well as for flip controls, etc.
Is there a work around for this?
It would be ideal if I could use a function to get the bounding box of visible elements only automatically, regardless of the family. The last resort is to utilise Mark Ackerley's approach of setting max-x, -y, and -z parameters for the family (and all other families which I may wish to get the boundary of), and then using these to define the cropbox regions.
A nudge in the right direction would be highly appreciated - even if its just to hear that its not possible. Thank you!
Solved! Go to Solution.