I’m quite new to Dynamo, trying to create a simple graph.
I want to change all wall top constraints to unconnected (due to an error in groups, let’s not get into it… )
I searched here and found a lot of discussions but didn’t find a solution.
I thought it would be simple: set pararmeter value by name, and that’s it?
But for some reason Dynamo says that there is no parameter with this name, even though when i try to “Get parameter values by name” it does find it… Seems pretty unlogical…
Thanks Jonathan!
Beginner’s mistake I guess… But I tried without it and it gives me another error - “The parameter’s storage type is not a string.”.
I tried linking a code block instead of string and I also get “The parameter’s storage type is not a string.”
That is most likely because the “type” called “Top Constraint” is not stored as a string, it is most likely stored as integers… (so -1 would mean "Unconnected) 0 would mean bottom, 1 would mean top etc (or along that logic).
In the value to not write a string but a integer (in a code block simply write -1) it will be blue and thus a number (which are of the type either integer (for whole numbers e.g 1) or doubles for e.g. 1.33)
Unfortunately, when trying to run this graph on a file that contains walls inside groups, I was asked to ungroup them. I was hoping that editing via Dynamo will work differently than trying within Revit, seems like I was too optimistic.
You can grab elements inside of a model group and filter out the walls. Here is the python code, original code and credit goes to Archi-lab. I just modified the python code to look for model groups rather detail groups (highlighted in the box).
Hope this helps!