FamilyDoc.AddsharedParameter returns null

I’m trying to add all our parameters to a family for some testing. When I run this script it does not add any parameters.

@crapai

Are you try to set all the parameters from the file to the family s? Than change the lacing to longest.
The instance need a 1/0 as input

The node expects a list of background opened family documents as well as equal length lists of parameter definitions, groups and booleans. It then takes those lists and creates those parameters in each document. All those family documents need to be closed when the script is run prior. No lacing or levels needed, just matching list lengths.

I have a video here on how it works:

1 Like

Thanks, I had a list count and cycle to make them the same length but it still wasn’t working. Your comment on needed multiple families made it work. I just copied the family and added the count and cycle back into the group and instance and it worked.

1 Like