Client asks “How can I get room info into my MEP ducts”- here is the graph
The tricky thing about ducts is that they are curve based so we have to analyze the curve and then get the rest of the info written back… but then again, not rocket science
For single point inserts like light switches it’s even more simple
Pure Dynamo fun…
A couple of days ago a client called and asked if we could get relative hights written into some categories like Walls, Structural columns, etc..
Hmm, easy thing in Dynamo
First we add two (shared) parameters to all the categories we want to process
Now here’s the graph
Easy – take the bounding box of the elements and feed the min extents in z-Direction as well as the max extents to the two parameters…
But hold on – what if elements are joined? Then we get a wrong value because we only analyze the bounding box of the element… quick fix – pull the geometry of the element in Dynamo like this:
And feed the result of Element.Geometry into the Bounding Box node.. all good..
I spent a day or two fumbling around with Oasys’s Mass option – quite nice result…. Check it out at Evacuation simulation
The client had the following scenario – renaming a large number of sheets. The obvious choice was to use Excel. So we needed two Graphs, one for writing to Excel, one for reading back.
Writing to Excel was pretty straightforward:
Note the Archi-Lab Get Built In Parameter node – this ensures that we are language independent
The result is a spreadsheet with 5 columns – Element Id, original Sheet Number, original Sheet Name, new Sheet Number and new Sheet Name. The last two can be changed to new values.
Now lets change some sheet names and numbers
Reading from Excel was a bit tricky
Here we have to use the Set Builtin Parameter method provided by Archi-Lab; Set Parameter by Name would not work for Sheet Numbers.
And the result…
After quite some time of stubbornly neglecting Dynamo it kind of caught up with me this year, so there will be a couple of posts to this topic starting today with a nice little pair of graphs.
Background – the client was looking for a tool to suck all text notes out of a Revit file into an Excel spreadsheet, translate them and push the translation back into the model.
Part one – here we get all the text strings with their IDs out:
This produces a spreadsheet with all text notes in it
We’ll put the translation into column C
Second part – here we push the translation back
Three AutoCAD users walked into a bar… to clean it.
You may have encountered the inconvenience before. You have a project hosted on Revit Server, and you got several CAD files (DWG,…) linked into it. In due diligence you made sure that every location has the CAD on the same path, so that it can be pulled locally without Revit acting up.
However, one fine day you need to travel and end up in a situation where you have to access the Revit Server project to make a quick change. And then the wait game begins, because you don’t have the CAD files with you. And the file open will take close to forever.
Sure, there is Collaboration for Revit (C4R) and other hosted services, but for whatsoever reason you can’t or don’t want to use them.
Workaround: Don’t link your CAD directly into your Revit Server project. Create a separate Revit Project and create a view for each CAD file. Place them current view only, name the views in a meaningful way. Let’s call this new Revit project CAD-Resource.rvt. Then link this CAD-Resource.rvt into your Revit Server project and display the views from CAD-Resource.rvt as needed (View/Visibility > Display link by linked view). Make sure to put the CAD-Resource.rvt on a separate workset, lets call it #RVT-CAD-Link.
Now, whenever you are away and can’t access the DWG-links simply leave the #RVT-CAD-Link closed when you open the file. This avoids the long wait time when Revit does not find the linked CAD.
You still can then reload the CAD-Resource.rvt from a local file location on your laptop, provided that you did not forget to take it along.