Hello Everyone.
I have build a dynamo graph to reorder/rename my doors and windows instant Mark parameters.
So in this graph I have two inputs
A boolean to select either a door or window category
A dropdown input to select the door or window type to reorder the Mark parameters of all the instances of the type.
My doors and windows types are names as D1, D2, D3… and W1, W2, W3… respectively
The graph works fine but has a limitation in the sense that I have to run the grash as many times as the number of door and window types I have in the revit project.
I need to take it to a step further, where I will run the graph only once to reorder all the Instant Mark of all the door types and window types in the model.
I’m new to Python, and I’m sure I will need to perform a For Loop and Setparameter definition to achieve this.
I have also attached the dyn file and also screen shots
Anyone with a solution can help me out.
Thanks very much @AmolShah, your solution worked like magic. I actually was able to try it right now. Sorry for the delay in my response.
Thanks once again
Hello @AmolShah, please can you briefly explain to me the script in the code block. Especially the ? Symbol, what does is really mean in the design script. Also the 0:1, what it means.
Thanks
@AmolShah
Thank you very much
Please is there anything like Design script primer like that of Dynamo primer to be downloaded. Any other resource to boost my DesignScript language is also appreciable
@MaKarf Also, by no means I would discourage you to learn python.
It’s very efficient and I would definitely recommend that you dive deeper in it.
What I wanted to highlight is you should be careful in making a proper selection as to which method is more efficient for a given problem? OOTB nodes or DesignScript or Python?
Don’t just blindly stick to enforce 1 method in your workflows. Just aim for efficiency and you would do good.