Hi I want to create a Project Parameter only if it doesn’t exist in the document. If it exists I don’t want dynamo to run the “CreateProjectParameter” node. But this node doesn’t have any true/false input to prevent it for been executed if the parameter already exist, so everytime that I run the dynamo it creates the parameter again and again. I CAN NOT use any package, so I was thinking of using a dynamo script, however, I don’t know programing that much (I know basics). Can any one can help me or show me how can achieve this task, either with dynamo nodes or dynamo scripts.
I also tried making it code and apply an if condition to run the “CreateProjectParameter” line only when the result of the previous nodes are true
but it doesn’t work. Even if it is false it always create the parameter
in you picture… you use a codeblock! thats just for designScript
Check out this
Hello, dynamo community!!
I am still dynamo beginner.
While I am studying the way of creating Shared Parameter and Project Parameter in the dynamo environment, I faced a big problem.
I want to create the nubmer of project parameters at once from excel but I couldn’t find clear solution yet.
Could you please let me know how to do that?
I knew that there are nodes that can create or add shared and project parameter in the latest ‘dynamo’. But most of solutions haven’t mentioned the way of cre…
Hello, maybe try this way
@christian.stan it actually does the task. It is a simple and effective solution. However, it creates a warning message, which is not a big deal, but if there is any way to avoid the warning?
you can consult this topic, should meet your expectations
I was recently inspired by
@john_pierson’s clever counter hack to dig a little more into the available Dynamo API. It only took me a few minutes of considering the information available in the workspace before I questioned whether or not I’d be able to manipulate individual graph branches via freezing and unfreezing specific nodes.
Turns out… it IS possible!
All you need is a condition (or conditions) to determine which branch(es) to run and a named node at the head of each branch to control f…
edit: with Mr. Nick’s script and additional explanations on the modification according to the Python Engine Used (the names of the code blocks are important)
You haven’t provided an input for Spec Types as the warning mentions.
That’s excellent. I didn’t know you can freeze nodes in real time. Thank you so much