Clicky Web Analytics
presentation
documentation
creation
automation
bim after dark live

Monday, September 14, 2015

Revit Tutorial - Show the Area of a Filled Region in a Tag (Using Dynamo)

dynamo

Dynamo in the Real World...


Tack this one up as a "real-world" use for Dynamo.  A very good friend emailed me and asked if I knew how to send the area of a Filled Region into a tag.  For example, he had some filled regions on elevations for a planning and zoning submission... Those filled regions needed to show the area.  Obviously, you can click the region, look at its area in square foot (or meters squared) and then type it into a text note/tag.  Well, that would be pretty painful if there were hundreds of them!

Other than actually modeling the signage as a 3D box family that can report the area I decided this sounded like a job for Dynamo.  Repetition, reporting parameters... I mean, come on now!

Continue reading to learn how to create your own Dynamo script that will report a detail items parameters....



After I struggled for a bit in the beginning I eventually got something to work.  Then, when I Googled the issue (which I should have done in the fist place) I found this GREAT video by Cesar:






The image at the top of this post is my Dynamo script as it stands.  As you can see it is basically the same as Cesar's but I used design script for the strings (Marcello should be proud).

The script simply pulls the area out of the filled region and sends it to a shared parameter called "Reported Area".  That shared parameter is what I used in the tag and viola!  

Dynamo for the win.




Comments (5)

Loading... Logging you in...
  • Logged in as
Great stuff!
Thanks Jeff! (and Cesar)
There are add-ins that do similar things to this, but they have the same drawback. ARutils for instance has a parameter cloner, that allows you to map a system parameter to shared parameter. The drawback with both solutions is that you have to manually trigger the update.
The 'Element.SetParameterByName' keeps giving me the error 'Warning: Element.SetParameterByName operation failed. No parameter found by that name.' and I can't figure out why! Please help!
Thanks! I have been trying to do this for years, interesting point In Revit 2016 R2 and Dynamo 0.9 I had to use the out on the List.FilterByBoolMask and that got it to work as having Nate's Problem above.
thank you so much ,thats beautiful , but as u might guess, is there way to download this dynamo , cus i do not understand how to create it. If it is possible of course.

Post a new comment

Comments by