fredag 7. april 2017

Ammo: Excavations with Revit and Dynamo



First of all: Dynamo 1.3 is out! Information found here: http://dynamobim.org/dynamo-1-3-release/

So to the subject of the day: Revit and topographical volumes is no good, right? Well, I can tend to agree on that point..
Sure Revit does calculate net fill/cut etc etc, sure you have possibilities in Site Designer and other addins and sure - you really should use Civil 3D.. Right tool for the right job and so on.
If you however are as me you will need from time to time to accomodate these things in Revit.

A typical workflow we find ourselves in as a structural engineer on small to medium sized projects is that the contractor or our customer wants us to produce an excavation plan something along the lines of this:
Now this is quite often manual labour and we really want to accomodate this in a much better manner.
I've spent some time investegating the possibilities in Dynamo regarding creating solids of these volumes. What we want is a more efficient way to produce the drawings and in addition we want to extract the total volume excavated.

Now why haven't we been able to do this? The reason is sloped excavations. How do we create a solid that are "correct" when presented on a drawing or that calculate the volume we want it? It really has to do with how the internal offsetting of curves are done in Dynamo. You see the offsetting in Dynamo is not that good, unfortunately, but recently I found a little and hidden package called DynamoClipper. See here for a little comparison on how the two methods for offsetting works differently: https://twitter.com/Jos_ols/status/841266065061621760

Now, suddenly, it works the way we expect it to, so here is a little example:

The Revit model (before any scriptrunning)
The script:


Part 1:

Part 2:

Part 3:

Running the script:

And of course, the results:

A solid with correct levels, slopes, corner cuts. All ready to place spot elevations, do dimensions etc.
Not all together finished, but we've gotten a long way.

Packages needed:
- Clockwork
- Springs
- DynamoClipper

Revit test file: https://www.dropbox.com/s/x8j9124irsnh7sq/ExcavationTest.rvt?dl=0

Dynamo script: https://www.dropbox.com/s/vtpvzbepb66nhvd/ExcavationVolume.dyn?dl=0

fredag 6. januar 2017

Ammo: Shortest Path on Topography

I got inspired by three guys this week on Twitter.

First up was Dieter Vermeulen which tweeted this: https://twitter.com/BIM4Struc/status/816283589969068032

Then Zach Kron followed up with this: https://twitter.com/ZachKron/status/817088565570129921

And lastly, but not least, the man responsible for the crucial part in both of the above examples, Mr Nathan Miller over at Proving Ground for bringing over a port to Dynamo from Giulio Piacentino work over at Mcneel and Associates.

And so I will add yet another example to using the Shortest Walk node in the Lunchbox library:

How to get down from a mountain. Fast..


So what I've done is just placing two site components and using them to find the shortest path between them.

The script in its entirety:


As I stated, "Lunchbox" is needed and the almighty "spring nodes" of course.

onsdag 14. desember 2016

Ammo: Centre of Gravity

A challenge arose some days ago as to define a script that could calculate the Centre of Gravity in a Revit model, and of course Dynamo was made for solving these kinds of challenges. Based on the "Algorithm" found here, we applied it to three dimensions in Dynamo. The script uses project base point as Datum and no particular effort has been made to make the units in the calculation usable for anything else. The python script has however been modified to extract density in SI units.

Enjoy! :)



In action:


A version of the script can be found here