Parameter.CreateProjectParameter creates duplicates

was trying to use a thread that was posted complete a year ago and wanted to ask a question about it.

Have one question how do you make this not create multiples if they are already in the project. It seems that if you hit the run command it creates the parameter just fine but if you run it again (after you reload) it adds the same parameter again. I tried this and could not get it to work

Thanks in advance for the help.

This should point you in the right direction.

Check.dyn (21.5 KB)

If the parameter exists then the Create.Parameter node would throw a warning since we are passing a null value. It would get the job done if you don’t care about the warnings!

1 Like

That didn’t work for me it just keeps adding in more and more WTF’s without throwing errors

Can you share your Dynamo graph?