Bounding Box doesn't recognize 2D components

I am trying to find the total area and dimensions that a 2D view will take up on the sheet. My innitial thought was to use the crop extents and convert that into a rectangle, but I wasn’t able to make that work (not sure it’s possible). What I’m doing now is querying the elements in the view and getting a bounding box that surrounds them, which I can then get the dimensions from. However, I’m running into an issue of the “Box” and “Bounding Box” nodes (which I’m using because the “Element Bounding Geometry” node from RiR only recognizes some 3D elements) not recognizing 2D components. They will recognize lines, and shapes, but not components. This is a problem because I have a “Note” component that I put text in. So, any text in 2D views is not included in the extents of the bounding box that I’m using to calculate the dimensions of the view on the sheet. (I don’t need to worry about getting a bounding box for the text, all text is contained within the note component). Is this a bug? Is there another way to go about it? In the picture below, the values are because those two sheets only have a note with text.

It recognizes the bounds of the text and dims, flatten your input.

Ok, this is good to know, but it doesn’t quite solve my problem. If you do this when querying elements from multiple views, flattening the data causes the out put of the Bounding Box node to be just one box, instead of a box associated with each view. I need the area of each individual view, and I need it to still have its association with the view.

If you’ve grafted you can trim the tree to get the View branches correct for the Bounding Box Union.

The views will be branched and union as expected if you don’t graft.

Sorry, I’m not quite understanding.

If you don’t graft or flatten (like my previous screenshot) you’ll get the expected result on the Union Bounding box.

Are you looking to put multiple views on a sheet or just match sheet size with 1 view?

When I do what’s in your previous screen shot, text/dimensions/2D components are not recognized by the union bounding box. That’s what I was doing initially and it wasn’t working.

I’m looking to put multiple views on a sheet. I’m basically trying to roughly tile them together based on size, and then fix anything wrong manually.

This is working as expected.

Here i created a bunch of random rectangles with dimensions on drafting views and placed on Sheets.

Requires Elefront 4.3, OpenNest. & the Rhino file.
Revit File is in 2023, but could be recreated in any version.
If i’m removing views/sheets i’ll delete all the sheets and recreate.


re_viewBounding_V2.rvt (5.2 MB)
Re_ViewBounding.3dm (57.4 KB)
re_view_boundingV2.gh (26.2 KB)

Animated Gif of Process

CreateAndPlace

1 Like