It's been a while since my last post for various reasons. The biggest of which is that I'm holding a little session at this years BILT Europe conference about topographies in a Revit/Dynamo environment. In that matter, all spare time goes into preparation for this, so no blogposts then.. It is a quite niche subject, so who knows if anyone shows up for that class at all. Anyway, I will eventually share all the material on this blog as well.
On the matter of topographies, let's have a look at a subject on which I have pondered for a while: How to create a Watershed Analysis (WSA) in Revit.
So what is a WSA you ask.
Well, given a topography/terrain and some start positions for the water, which way will the water go?
Here is a perspective example:
But how to get my data across? Flux obviously..
Now, I'm not being paid by Flux or anything, but I really love their way of dealing with data exchange. It makes the whole process easy to set up and it is quite fast, especially up to medium-sized data sets. What I transfer back and forth in the example below is a mesh of about 500 faces and a point set of 7500 points.
Here is the script that I set up in Dynamo:
The Grasshopper script looks like this:
The Dynamo script, once you've run the Grasshopper script, writes an Point Analysis to the view you define and to show it in the Revit view you have to turn on an Analysis Display for that view:
Link to Revit file
Link to Dynamo script
Link to Grasshopper script.