Thanks in advance for your input.
Target of my dynamo skript is to create levels with predefined names and elevation heights with Level.ByElevationAndName, which are imported from excel.
Level.ByElevationAndName expects double values as input, so i tried to convert the excel comma separated values (which are imported as str) to double, which leads to 2 problems:
- csv values (e.g. 3,6) are converted to 36 (expected: 3,6)
- values without comma get converted to Object.Type System.Int64 (expected: System.Double). This is maybe not a big problem, because it seams, that System.int64 is also accepted as input type.
I tried to change the delimiter in excel from “,” to “.”, but this makes no difference - levels with csv-elevation heights are still positioned in a wrong height.
I think it´s more a formatting issue. How can i solve this problem? How can i format my excel input, that the conversion is correct?
AW_CREATE_LEVELS_BY_LIST.dyn (100.6 KB)