Well, my purpose was to manage 3 task directly in the project file where the families are loaded, feeding the node only with an xls file.
The workflow follows 3 steps:
create some shared parameters in the shared parameter txt file --> DONE
add some shared parameter to all elements of certain categories in the project --> DONE (here I can add the parameter in the right parameter group too!)
add some shared parameter to some families, loaded in the project --> WORK IN PROGRESS!!!
Refering to point 3, I already try your node “FamilyDocument.AddSharedParameters” and I have some question to point out:
I can create and/or add shared parameters to the shared parameter txt of the “dummy project file” at the same time;
the parameter is added in the right parameter group;
the node work fine with list of families;
the modified families are not reloaded in the project file;
it seems that it doesn’t work whit list of parameters;
Are my previous statement correct?
Here you are some screenshot of my tests.
Can you please share your script in order to find all together a solution?
Here you can find a WIP version of the entire workflow, with the dynamo nodes and the xls file.
I tried to feed all inputs of the “FamilyDocument.AddSharedParameter” node with some lists.
I realized that:
parameter name and parameter group works as a corss product lacing: I obtained N°4 shared parameters in the txt file;
type, group and instance takes only the first item of the list, in fact all parameters are “numbers” and have been added to the family into “model property” group as “instace” parameter.
I get this strange error, but everything seems to work anyway.
“The referenced object is not valid, possibly because it has been deleted from the database, or its creation was undone.” Can’t anybody explain this?
Finally, the reason why in my work in progress “mR_CreateSharedParameters - 0.1.dyn” I decided to divide the 3 tasks (create shared parameters, add to categories, add to families), is to reduce the possibility of input mistake.
In adding shared parameter to categories or families, I’d like to feed the node only with family list, parameter name and parameter group, the shared parameter has been created first and alredy has a type, group and “instance boolean” (unique for categorie!).
What do you think about???
And another question, maybe I miss something: how do you solve in your script the wrong parameter group issue???
I refer to the question I explained in my first topic. With my script all parameters are added in the parameter group “Other”.
I see you solved the problem in your node “FamilyDocument.AddSharedParameters”, so I’m asking you what’s the mistake in my script and possibly what’s the solution.
Please see the first image I publish and/or "mR_CreateSharedParameters - 0.1.dyn.
Unfortunately I can’t use your node because I have to manage a very big list of families and parameters, and I would not create a very big graph. I prefer using python to create a sort of general node, where the only input is the xls file.
Hi by using the approach you mentioned previously, I am able to create shared parameters inside the text file but they are not reflected as instance or type parameters in properties/family editor.
What I am trying to do is, filter a few families and add shared parameters to them. Say I have A, B, C, D families in a Project. I am trying to add instance shared parameters to A and B only. All of the families belong to the same category.
Alsi I am unable to find the node FamilyDocument.AddSharedParameters in the latest update.
I used this approach but the parameters are added/created in the text file and not reflected as instance and type parameter in the properties of the family/element.