Ifound an old script that creates and crops Floor plans based on Room Boundaries, and I have been trying to adapt it to work with Areas in the latest versions of python, dynamo, and revit. Here is the original script from archi-lab. I searched through the forum and the two relevant instances of this problem were never solved: 1 and 2
By my parsing of the information, the script gets caught up with BoundingBox, which I know does not apply to area boundaries, but I cant find any function that produces the area boundaries in a way that the current function can read.
Thanks Mike. I decided to teach myself python in the last week as there seemed to be no movement, and came up with a solution. Fundamentally, areas and boundingbox werent linked, and that was the main issue. I adapted some old code for rooms to views from around 8 years ago, and made it work. the dynamo script + python looks convoluted, but the results were great. See below for my code, and attached for the definition - I guess this topic is technically closed now, even tho I am still adapting my code to automate more of the process.
I had to make individual lists for the Curves, Bounding Boxes, Areas, and Names of the areas, and reassign them back to the respective Areas in python as all of the built in parameters were coming up null.
Hi @RAW_MN can you please share your FloorPlan.ByRooom opened. mine is returning null. and the default doesnt have as many inputs so wondering if my attempt to add the inputs is incorrect. Thanks for your help.
This approach will put a bounded rectangle around the set of areas without needing to do any surface/solid operations and is quite programmatically light. My version of it also uses a naming syntax to skip any set of areas which already have a plan set up (by name).
What I do is make a glass material in revit, which has ability to set a transparency file/image, and also the bump map. So create a new material which has these variables to adjust. You may find a glass template that you can duplicate and adjust, but its east to just create one.
Hi DPHORVATH, that looks very great! Could you give us more examples of the underneath panels of the material settings in Revit? And maybe it is possible to share the texture so we can investigate to get a proper similar result?
3a8082e126