Floor plan from multiple rooms


#1

Hey guys. does anybody know a note similar to FloorPlan.ByRoom, but which uses more than one room to create a single view?


#2

You could create the view and then group the rooms, get a bounding box for all rooms in question, project the bounding box onto the view plane, and use that shape to set your crop box.


#3

Well, the rooms are already grouped, but if it’s possible I’d prefer to work on rooms, since they got a custom parameter “Apartment number”, and I need to make as many separate views as I have apartments. If I used groups I would only get as many views as groups I have. And the groups repeat themselves, whilst apartment numbers don’t. I know the apartments are repeatable, but sometimes there are small differences, so I really need as many views as apartments.


#4

Sorry - I meant to group the rooms in Dynamo via the Lost.GroupByKey node. Rooms would be the list. Apartment numbers the key.


#5

Oh, ok. That’s very helpful. Just grouped the apartments that way. Seems to work fine. Big thanks for the help so far!

Now two things about the boundary boxes. "I’m testing creating an apartment view on a single apartment at the moment. I’ve just understood, that they are not the same as the 3D scope boxes that are used to crop views, are they? I’ve tried the “BoudingBox.ByGeometry” node and noticed it creates orange boxes in the 3D views, that are not cutted by the section box. What are those? I can’t even select them.

How Can I “sum” the geometry of the rooms so that I cna make a single boudnign box out of a couple of rooms, and add an offset from that geometry.


#6

Looks like those boxes are the preview for the Dynamo geometry of the rooms - they aren’t in the model yet. Disable the backround preview for Revit to confirm. Also, making geometry is going to slow you down, so avoid this when possible.

Instead, look to quickly make the bounding box look into the BoundingBox.ByElements node in the clockwork package. It creates a bounding box for each list of elements.


#7

Ok, Tried the node you suggested. It gave a ridiculously small bounding box, marked on the floor plan in red. I’m probably making an obvious mistake, but I’m still new to Dynamo.

Also It didn’t apply the bounding box in any way to the view.



#8

That doesn’t look like my version of that node. I’ll try and test this later today.


#9

Ok, My dynamo and packages were outdated. I’ve just updated them, which as I expected annihilated even my simplest scripts. Old nodes just stopped working… But I think I got that somewhat under control. Now the node you mentioned looks different, but I can’t seem to apply it to a view. I mean the view doesn’t crop in any way. I’m probably making a simple mistake again that I just can’t see.


#10

You have only made the bounding box. Now you need to find the plane, intersect the plane with the box, and set the crop region acordingly.


#11

Doesn’t the “BoundingBox.PerimeterCurvesOnPlane” feeded by “View.Plane”, and curves sent to “View.SetCropBoxCurves” do just that? I mean they don’t cause I don’t see the effect, but I have no idea why.

And btw. I don’t see the BoudingBox preview in Revit anymore (though the Revit preview is on).

EDIT. OK! had to change the “Curves” input Level i "View.SetCropBoxCurves, and it cropped! Now the strange thing is, that “View.Plane” When given the exact level on which the rooms are show the Z origin point of the plane as 300, when the level is on 447 cm above 0 (Is that how the numbers translate to Dynamo?)

EDIT2 Yes, The Z coordinate in View.Plane when given views seems to be random. Like views from lower levels give a higher Z and I don’t see any conection between the values.

EDIT3 Ok, I’ve changed “View.Plane” with “Level.Plane” and the Z is now ok, but there is a next problem… If the plane is at Z = 447, and the lowest point of the boudingbox is at Z = 447, does that “tickling” count as “Intersect”?

EDIT4 (I’m on fire) Thought I would offset the plane up, but It failed, so I randomly changed “View.SetCropBoxCurve” curves level input up by one and it worked. Got rid of the offset and it still works so… yay me.


#12

Ok, I am glad to report, that I can now can generate floor plans of all my apartments. Gigantic thanks JacobSmall! :slight_smile:

Still this is not the end of what I’m ultimately aiming for. But for now only one question.

I got a list of bounding boxes. Is there any simple way to offset their min and max point by a fixed distance outside?