So basically i wanted to make a manual input family into projects with certain criteria.
first thing first is, ive already my shared parameters.txt. in this case im just gonna use the unit cost parameters only.
so the script runs to open the family.rfa in the backgrounds. the first criteria is change the family category to generic models. then add shared parameters into the family. but theres 3 input required to the SharedParameter.AddByFile node.
I dont know any about the grouptype input. is it im using the wrong node or something
I thought there was a selection node for that, but I must be confusing it with another parameter input…
I believe that’s the ForgeType that represents the internal grouping for the parameter type. (i.e. if you have a Length parameter it would be under the Dimensions/Geometry group.)
You may have to do some investigating to find what group your parameter is under. You can always add these parameters to a project and then use Dynamo to retrieve that information so you know what you need to provide in this graph.
Keep in mind, this method is adding an existing shared parameter (that’s already defined) to a family. I’m assuming it’s using these values to “search” for the matching parameter in the text file. If a match for that parameter isn’t found, then nothing will happen.
Rather than guessing at a name, I’m suggesting you get the GroupType directly from an instance of that parameter. Here’s an example from a family document, but you could also do this from a project document as well.
Just as an FYI, the API name doesn’t always match the user facing name? I think the node will accept either but it’s just a weird situation to be aware of.
Exactly. It says it can’t lookup a value because the input keys don’t match in length. You need to provide the groupType of the parameter you’re looking for. You can’t just provide all the groupTypes and expect it to use the right one.
This is why I said you need to setup a test scenario where the parameter already exists so you can get the groupType from the parameter. Then you’ll know which value to provide the lookup.