I need to create floorplans and crop apartments by Housing number (multiple rooms). I have a room parameter with unique numbers. Now I have grouped rooms, and have keys for prefix ready, but it seems like the Floor.Plan.ByRoom node group by room number, or room name and crop only one room per floorplan view. Maybe I need to change the script. Please se attached screendumps that shows what I have and what I need + my graph. Anyone have an idea? Thanks!!
I think the problem are in the different list structures of rooms and their unique keys.
Try to set the lacing to âlongestâ instead of using levels.
Now i get the right match with housing nr. room parameter, and view name. But there is still only one room cropped, and not all room with same housing number. Any suggestions?
Ah, i understand now. Sorry must have skipped the part about a combined floor plan by grouped roomsâŚ
The FloorPlan.ByRoom node uses the bounding box of the room to crop the new plan. It does not add several bounding boxes to create a new view. 1 room = 1 floor plan.
A possible workflow would be:
group rooms (as you´ve already done)
create a new view per group (FloorPlanView.ByLevel, OOTB)
2.1 you need a unique name per group (play with strings)
combine bounding boxes by group (BoundingBox.FromBoundingBoxes, clockwork)
set crop of view to bounding box (Views.SetCropBox, archilab)
You´d be missing the extended bounding boxes as in the FloorPlan.ByRoom node. My packages are not up-to-date since I can´t find the clockwork node.
I´ll see if I can put it together by tonight/tomorrow evening.
EDIT :
Well, it worked as i outlined. Added the offset of the bounding boxes as well.
Thank you for your help. Bounding boxes and coordinates is something i need to work more on. Unfortunately I have Revit 2020 with Dynamo 2.3, and cannot use the last note - Views.SetCropBox from 2021 package. If you have a quick solution, I would love to know, else thank you very much.
Hi again,
I will have to run the graph for every level to get all apartments, and the first time works perfect. But when I run the next level, all views I just made is gone. Just make no sense. The only thing I have changed is the names of the views, and add view template.CropHousingPlanViews2.dyn (90.6 KB)
Hey, Element Binding
The following link does somehow not work for me (i hope it´s just me), but there is a great post by JacobSmall where he explains what it is and how you can use it.
The basics: ID´s of elements that have been created with this script are âboundâ to the script. That way you can update elements without recreating them each time you run the script.
Quick fix:
Open the script
Disconnect input nodes and run the script (every node should return ânullâ or throw an error.
Reconnect and save the script
Run script on Level1
Close script (not saving!)
Open again and run for Level2
There might be a more permanent solution in that post of JacobSmall.
The best would be to run it through the Dynamo Player, since the file does not save between runs. Remember to set your inputs in the graph:
This is a very old topic. I ran into a problem with this graf, witch helps me alot. Thank you again for that. With new version of revit/Dynamo i cant find the Rooms by level made by Conrad/archilab. I dont know if he deleted it? Anyways I needed to do this process in another way. The copying, and collect rooms with same value in fsb lejemĂĽlsnr. works well, but I get an error (line 28) in the last costum node that should do the auto cropping. It retreive null value, wich I cant find. Can you help me out again? I attached the dyn graf as well. CopyCropHousingPlanViews.dyn (92.1 KB)