Im back again with some questions about working in a fam document from dynamo.
I want to create multiple familytypes (from a list) and set a parametervalue. The creating multiple types works perfectly, but the setting parameter values does not eventhough it says that it did.
@verdi
I have recently made a script to do this using @erfajo’s Orchid Script.
The issue was that previously the Set.parameter node could not apply values to multiple parameters for multiple family types. He has now corrected this with his latest update (version needs to end in 98 or higher)
Below is my basic script using an excel spreadsheet as the data source (also including an error checking subscript). Please take note of the order that the parameter values need to be. They must be listed by Family Type, not by Parameter.
Ok so firstly the latest version of Orchid Package for Dynamo 2.0 is 200.3.0.6802
Currently the suggested way to update is to uninstall the package in dynamo. (Make sure the package folder in windows no longer shows a folder for Orchid, then re-download in package search, and then run the .exe file from the page above.
Secondly, there is no need to repeat the parameter names for each Family Type. See my script, I have:
Parameter 1 = Model
Parameter 2 = Manufacturer
these are fed as a list of just these 2 strings to the parameter name input.
I checked the input types of the old script and the only difference i found (using the object.type node) is that the “number” node creates an int. and not a double.
I will use the num +0.0 node to create thedoubles. Thank you for your help.
Your input “help” in the nodes is clear. It was my mistake. Ive recreated the script as you advised. It works perfectly now. Thank you very much!
I thought my first mistake was that the node did not read the family type name so i switched it to the family type as string. Later you showed me the fault was in the int/double, but I did not put the fam type node back.
Do you know if it is possible to set a Material parameter this way ? I have tried to insert a “material” with id and a string of the material name, but without any luck.
I have not been able to find the right input yet when setting a material parameter using Dynamo.