For a custom parameter space (or Watt unit m3/h french)
When importing data (number) from Excel with Dynamo, I have an error when injecting the value in the parameter space. Dynamo consider myself a number on one side, and a value in watts or m3 / h of each other.
How to convert a number (no units) in Watts or m3/h?
If it is not a string, then the units are assigned automatically in Revit based on the parameter type (Volume, Length, Area…). The parameter type is assigned to the parameter when it is created.
It will be better for you to illustrate with Dynamo/Revit screenshots.
When I normal makes this setup, then I prefer to make the convert between units in Excel. Simple done by making an extra column in excel, where you make the convert. The extra column I then hide for the user.
I know it is not great, but it is works
What does the error says “Element.SetParameter” node. I believe when you create parameter it should have that units and then feed just values it will show up with values with units.
Hello,
Still effective.
So the principle is to convert the units ‘original’ Dynamo, and not the reverse.
But at home I have a value [0] null in the combined list.
I have good values, but not in a good space.
Realized you have only two parameters now
The code block should reflect that.
If Numero parameter type is a number, making this change in the code block should hopefully sort out the issue
Using the first line (n1), we multiply the first item of each sublist by 1 and the second item by the conversion factor
In the second line (n2), we convert the first item of each sublist to a string by adding an empty string to a number and add 0 to the second item to leave it unchanged.