Parameter.CreateProjectParameter

@Ben_Veasey
I can’t find Parameter.CreateProjectParameter , is it in a specific package ?

It is in Dynamo 1.2.

1 Like

What if I don’t want to make the project parameter NOT a shared parameter? If I leave the groupName input empty, the parameter is never created.

Hello everyone, like @abdelgawad I can not find Parameter.CreateProjectParameter… I have Dynamo 1.2.1.
I am quiet new in Dynamo, I can not find the answer on other topic.

For anyone having the same problem, it is about Revit version too, not only Dynamo version.
In Revit 2015, this node, Parameter.CreateProjectParameter, does not exist.

This seems to actually create a shared parameter, not a project parameter. When you go into edit parameter, “Shared Parameter” button is toggled and grayed out. Anyone know what’s actually happening here? Revit 2017, and Dynamo 1.2

2 Likes

I’m seeing this too. Additionally, it appears to be writing to a Shared Parameter file that is invisible. The loaded shared parameter file does not contain the items generated by the graph when checked. The help for the Parameter.CreateProjectParameter says it is creating a project parameter so the intent is opaque. Does anyone have any insight on what is happening under the hood here?

Is this a glitch between Dynamo and Revit then? If this node does not actually create a project parameter as it appears to be intended, and instead creates a “floating” Shared Parameter that fails to write to a loaded Shared Parameter file, should this issue be reported?

The positive I see though is that these parameters are transferable still between projects. They to be both project parameters and shared parameters at the same time. Weird.

What if I don’t want to make the project parameter NOT a shared parameter? If I leave the groupName input empty, the parameter is never created.

i still dont see an answer to this very eminent question by @BIMextension : What if you dont want to make a shared parameter?

Best to make a new topic. Things have changed a lot in the year+ since this topic was last reviewed and this thread already has a solution marked.

1 Like

Input empty string to groupName, like this - “”, for creating project parameter.


Oops… This way creating Shared parameters without shared parameters file… and it can create parameters with same name.
image

1 Like

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.

You’ll have to check for the parameter, if it exists, if it does, do nothing, or if not create.
If.exists node will toggle a IF node, you’ll put the Parameter.CreateProjectParameter to the false input, and just terminate the script if true.

I’m a day or so out from writing a pretty big loop doing this, I’ll posts the nodes when it’s done.

2 Likes

that is awesome let me know if I can help

just got back to work from the pandemic. did you ever get anywhere with the loop?

Ran into a number of issues dealing with project parameters, and just circled back to work on this some more. What I found out is until the project is saved the project parameters aren’t available to dynamo,which seems to mean there’s no way to prevent a user from double clicking and adding them twice.
I’m at a complete loss about the shared parameter version too, it’s creating it’s own GUID and creating it’s own Shared Parameter getting added to the project, there’s no way to point it to a .txt file like one would expect, let alone it creates the same GUID project to project or not.
I think the clockwork passthru node may be a help here, it’ll stop a process until another has completed in the same script, but there’s some sort of major system trigger after the project parameter is created. Revit has to have the project saved to be acknowledged by Dynamo again, which really screws up any idea of creating the project parameter then writing to it.

3 Likes

I think i got it it was a little off the normal path but solved the problem take a look and see what you think.

1 Add Parameters.dyn (16.5 KB)

P.S. got some help from this post

1 Like

hi @jarod.tulanowski question, i’m 3 years late, is the list on the code block that was fed on the IN[1]? the parameter names? thanks!