I tried the sample "Import_Export CSV " and it has a problem with String to Number node. I tried to figure it out, and it seems as if this node have had a problem with decimal values. When I changed some of the coordinates in csv file into integer number it worked.
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import * #The inputs to this node will be stored as a list in the IN variable.
dataEnteringNode = IN[0]
#Assign your output to the OUT variable
OUT = float(IN[0])
I reinstalled dynamo and still it doesn’t work. Let’s face it, Dynamo hates me I know it is hard for you to help me without having the same error, so I think maybe I will reinstall my Revit (??)
Strange thing happend. It seems as if my system was using the comma instead of dot (??) When I wrote 10,5 it worked. Is there a place where I could fix it ??
I’m from Poland. It is definitely Regional Settings
You can change it in two ways:
"1) Regional settings Control Panel –> Clock, Language and Region –> Change the date, time, or number format Click on Additional settings button.
2) Within Excel Office Button (left hand corner) > Excel Options > Advanced > Editing Options > Uncheck ‘Use system separators’ > Define as per your needs"
Thanks Timon - Too obvious! I was searching for “String to Number”. I also played with the List.Map node and ran into the same issue. I agree, I need to learn much more about the power of List.Map!!