[Script] Import spline from any CSV file

[Script] Import spline from any CSV file

JeromeBriot
Mentor Mentor
5,148 Views
16 Replies
Message 1 of 17

[Script] Import spline from any CSV file

JeromeBriot
Mentor
Mentor

Hello,

 

ImportSplineAnyCSV is an improved version of the ImportSplineCSV script that reads data from a CSV file and creates a spline in a sketch.

 

This version supports:

  • two colunms and three columns data
  • numbers with a comma as the decimal separator
  • any kind of separator between values
  • automatic text header skipping

Codes and information are posted on GitHub: https://github.com/JeromeBriot/fusion360-import-spline-any-csv

 

5,149 Views
16 Replies
Replies (16)
Message 2 of 17

Protective-foam_com
Enthusiast
Enthusiast

@JeromeBriot 

Your script works great!
Thank you for not being indifferent to the problems of less experienced users:)

0 Likes
Message 3 of 17

hibaby
Community Visitor
Community Visitor

I followed your instructions but the error message comes up like this. What would be the problem?

Please tell me what should I do...:(

hibaby_0-1683304233168.png

 

Message 4 of 17

JeromeBriot
Mentor
Mentor
0 Likes
Message 5 of 17

jmpframce
Enthusiast
Enthusiast

how to use the adress you send

thanks

0 Likes
Message 6 of 17

JeromeBriot
Mentor
Mentor
0 Likes
Message 7 of 17

jmpframce
Enthusiast
Enthusiast

github.com/JeromeBriot/fusion360-import-spline-...

 

how to use ?  please  i am fully blocked  in writing a process os desining tool

0 Likes
Message 8 of 17

jmpframce
Enthusiast
Enthusiast

github.com/fusion360-import-spline-...

 

est cela qu il faut  copier dans les scripts 

 

merci

0 Likes
Message 9 of 17

jmpframce
Enthusiast
Enthusiast

How to download 

Copy in script first 

0 Likes
Message 10 of 17

jmpframce
Enthusiast
Enthusiast

not 

how to  load   i don t get message to past in script

hhttps://github.com/JeromeBriot/fusion360-import-spline-any-csvd

0 Likes
Message 11 of 17

JeromeBriot
Mentor
Mentor

New version available (1.1.0):

  • Fix unique separator in CSV file reading

https://github.com/JeromeBriot/fusion360-import-spline-any-csv

Message 12 of 17

jmpframce
Enthusiast
Enthusiast

Thanks I will install

It for 3D XYZ?

 

0 Likes
Message 13 of 17

JeromeBriot
Mentor
Mentor

New version available (1.2.0):

  • Add feature to import multiple splines from one CSV file
  • Add examples

New version available (1.3.0):

  • Treat line in CSV file as empty if less than 3 characters

New version available (1.4.0):

  • Add option to import multiple splines in a single sketch

https://github.com/JeromeBriot/fusion360-import-spline-any-csv

Message 14 of 17

JeromeBriot
Mentor
Mentor
Message 15 of 17

james_stclair2
Community Visitor
Community Visitor

Hello Jerome, thanks for this script, it is very helpful.  However, some of the splines I import from CSV seem to treat the Origin as a spline point, so the spline goes crazy around that point.  In other words, the spline behaves as though I had the point 0,0 in my data, which I don't.  Am I doing something wrong?  Can you suggest a fix?  Many thanks - James

0 Likes
Message 16 of 17

JeromeBriot
Mentor
Mentor
0 Likes
Message 17 of 17

james_stclair2
Community Visitor
Community Visitor
Hi Jerome,

I solved this by just moving the whole spline so the first point was at the origin.

Here's the csv that produced the behaviour, in case it is of interest to you.

Thanks again for sharing your work 🙂

Best, James


0 Likes