Hello,
From the message you posted, it was because a string cannot be converted to float. However it is difficult to judge what's the root cause. It would be better if you can provide reproducible steps and test data. You can send the information to me(marshal dot tu at autodesk dot com) if it is not convenient to post them here.
Thanks,
Marshal
Hello ........ thanks for your time, see screenshots of roadmap screens of the set:
1.- download .dat from the web page http://airfoildb.com/, copy and paste in textedit from mac, I convert .txt into .dat.
2.- with the script Airfoil_DAT_to_spline I perform the actions
3.- error
Hello,
There was a bug in the addin. The statement "line[0:p1]" marked as red extracted a bad string (e.g. "1.000000,"). It should be corrected with "line[0:p1-1]".
Thanks,
Marshal
while line: line = line.strip(' \t') line = line.replace('\t', '') p1 = line.find(" ") p2 = line.rfind(" ") x = float(line[0:p1]) * Chord + OffsetX y = float(line[p2+1:]) * Chord * ScaleY + OffsetY point = adsk.core.Point3D.create(x, y, 0.0) points.add(point) # Reading next line with coordinates line = f.readline() f.close()
Can't find what you're looking for? Ask the community or share your knowledge.