I have an small excel table example. The original is bigger. There are rows with different configurations and columns with parameters. These parameters are already created in a Revit family (with non existing values). Now I like to choose a row in Dynamo and transfer these values from excel to the instance parameters in the Revit family.
Maybe I do something wrong with the “Set Active Family Parameter By Name” Node [data shapes package]. My attempt was to set the datatype of the values, because only the text parameter are working.
How can I change the data type of the values, depending on the data types extracted from the revit family parameters? Is it necessary?
According to the Parameter type, I need to convert the units. E.g. an length parameter needs a different conversion as an area parameter. Any idea how to choose automated the correct conversion?
ty Kulkul,
the code block is just an simple example. I have Parameter with length, text, volts, area etc and not all should be multiplied by 3.2808. Because of that, I have extracted the Parameter types from the family and according to the parameter types I need different conversions.
The use of DisplayUnit.ToInternalUnit is not without problems with a list of all types of parameters. You need to remove text and integers first and lacing to longest =) But the conversion of the units is more precise than my first manual calculation method