i am a bit confused… so the definitionNames are the names of the shared parameters you want?
so i have a list of parameters i want to add… but then it is saying the length isn’t the same as the number of families.
Import (neither add nor create) Shared Parameters and their Properties into Revit Family with Dynamo
Yes. I haven’t touched that code in a month so I am not sure why you’re seeing that error. Best to provide a test dataset (say 3 families, a shared parameter file, and your dyn).
Thank you for taking a moment.
if it could also be set to a shared family that would be a huge extra bonus
Quick question before I open this, is the error message:
"The length of definition names, group types and instance booleans are not the same. Ensure even list lengths and try again."
? If so, that’s the custom warning I put in when you provide a mismatched list for group types, definition names, and instance booleans (inputs 2, 3 and 4). The code is structured in such a way as if you want to add 3 parameters to a family document it needs 3 group types and 3 instance booleans. If you provide only 1 instance boolean or only one group type it will fail.
i got another error at the moment.. just closed it…
the cycle of the parameters was incorrect. but there is an error in the code at the moment.
At the Python node? What is the error/warning?
You want a 2D list in all cases.
First list is the family documents.
Second list is the list of parameter names.
Third list is the group type.
Fourth list is the instance boolean.
The second, third, and fourth list need to be the same length.
or is the list of parameters leading..
but that gives an error too
name familymanager is not defined 112
but that is strange
@jacob.small could really use some help on this
Didn’t reply last time as I’ve been quite busy with the customers who pay my employer for access to me for help like this - they have to come first.
Not sure how, but it looks as if there is a spelling issue in familymanager. Copy the one above and put it on a line directly above the one which is failing to call and I think you’ll see it.
understand jacob ofcourse payed work comes first
Let me know if fixing that spelling solves stuff - if not I can try to take a look between calls later today.
i changed line 112 to familyManager (with the capital)
but now it gives… TypeError: unundexable object [’ File " , line 112, in \n’]
it was another type error groupTypes[0] missing the s..
the script runs but it crashes my revit…
AddsParametersToFamily.dyn (45.4 KB)