Hi, I’m trying to replicate the datashapes’ batch add shared parameters from a txt file to the project. however the final node is returning null, all my inputs are correct.
looks good…hmm could you share your dyn ? which revit version are you in ?
Batch Add Parameters.dyn (73.0 KB)
I’m using revit 2023.1
seems pg group comes as list…it dont expect list, try with a list first item there or set level to @L1 in input and you dont need lacing
You’re awesome man!! Thanks! is it because we can only group parameters under one group (not like categories which we can select multiple?) that was very wise and one step ahead of what I was thinking lol
Yes exackly
probably you should change your listview with a dropdown instead so you only can select one PG group at time
yeah that would be better, will help avoid the issue in future. Thanks again mate.
Does 2025 handle the group types differently? I am trying to batch add existing shared parameters as project parameters in a project and this DataShapes method seems the cleanest method but I just get a null result both for the ParameterGroup and Add Shared Parameters nodes:
Yes. This has been on the “look out it is coming list” for a long time.
You need to brush up on ForgeTypeIds for 2025. Plenty of info around here and the web on those changes that go beyond just ParameterGroups.
Thanks, I’ll take a look. I was trying to use the built-in node Parameter.CreateSharedParameter which does take the new specType and groupType but this node appears to create a new shared parameter and adds it to the project. I want to add an existing shared parameter as a project parameter to my project which is why I went to Add Shared Parameters from txt but was tripped up on the older group type. I still can’t find a solid method for adding existing shared parameters to my project as project parameters assigned to a selected category.
That worked great, thank you!