Shared Parameters Creation OOTB Nodes

Hello

I’m trying to create shared parameters and assign them to multiple categories.
lets say the list contains 20 parameters, first 5 are assigned to “Project Information” and the rest 15 parameters are assigned to all “Modeling Categories” (From MEPover).

the script runs perfectly as long as the parameters are not in the same “group name” in the shared file loaded! if the parameters are there i get the nulls as you can see in the graph.

Personally, I wouldn’t do it this way.
Dynamo will create a different GUID under the hood for each project - if your users aren’t pointed to the same shared parameter file. And as you’ve noted, once it is added to the shared parameter file - well - it can’t be added again. Because “there can be only one”.

I use python to hard code my shared parameters along with their GUID. The basic flow is…

  • Create a new temp txt file for the parameter.
  • Write the parameter external definition to the file.
  • Switch from whatever parameter file the user has the project set to to the temp parameter file.
  • Load up my parameters - in the project or family.
  • Switch back to the original user selected parameter file.
  • Delete the temp shared parameter file.

This way I’m sure I’ll always get the parameters exactly the way I want it defined, and it is the same GUID between all projects and families.