Clicky Web Analytics
presentation
documentation
creation
automation
bim after dark live

Monday, November 9, 2015

Practical Dynamo - Apply Parameter Values


(Image: Dynamo Primer)

I have been posting little screenshots on Twitter of current Dynamo scripts and people seem to love them.  One of the cool things about Dynamo is you can see a simple snippet of all the nodes and recreate the script pretty effectively.  Its a method I have used when learning Dynamo.  It helps me to use different nodes, search for packages, and understand logic.  Well, I thought it would be a good mini-series here on the blog.  The first script I am going to show you is very simple but includes some nice booleans, logic, and nodes.

Continue reading for a practical use of Dynamo, applying a parameter value to all selected elements...



Dynamo Script:  Applying Parameter Values


So, you may not realize this but if you wanted to apply a parameter value to several different categories in Revit it may not be as simple as selecting the elements and typing in the parameter value...  When you select multiple categories you get this:


So, instead of selecting a category at a time and typing in the value, Dynamo helps us automate this process.  Here is the script I created (click to enlarge):


That's right... Only six nodes can save you HOURS of work. So what does it do?  

Well, the top left node that is yellow allows you to select all your elements you would like to apply a parameter value to.  The two "string" nodes represent a Parameter, and the Value you would like.  As my notes say in the image you must create the Project Parameter (in this case called "Turner Precon - Phasing") before running the script....

There is also a nice Boolean (the "If" node) that will make it so your script does not try to apply the parameter value to elements that don't contain that Parameter...  Pretty neat, huh?

Tell Me What you Think?


Does a series like this interest you?  Comment below if you are excited about a "Practical Dynamo" series here on the blog...



Comments (8)

Loading... Logging you in...
  • Logged in as
I would definitely like a series helping to understand dynamo better. Thanks!
Cool! i have been playing around with Dynamo for more than a year now, this is the last thing i did
https://mundobimla.wordpress.com/2015/11/09/modif...

Regards
RZ
1 reply · active 489 weeks ago
RZ, nice man! Another great example of practical uses of Dynamo! Cheers!
sitereader's avatar

sitereader · 489 weeks ago

Yes, a dynamo practica series would be a good addition. But please do see the work by the great men of the Dynamo field like J. Benoit, HyungWoo Kim, Konrad Sobon and Marcello S. so that your example adds to the already existing corpus.
This is great, been trying to find tutorials for the use of dynamo. would love to see more
Great idea. A good start point for those who don't have plenty of time to experiment by themselves.
I've followed all the instructions above but when I select multiple elements in my revit file, it still says "nothing selected" . . . What am I doing wrong?
1 reply · active 488 weeks ago
You have to click "select" in dynamo, then go back into revit and highlight your elements....

Post a new comment

Comments by