Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Options

Importing data points form a CSV file

Hello,
I would like to use the 3C CSV Feature Script to import point coordinates from a CSV table. It does work for CSV tables with only integer values. However, I would like to import a list of float points. In that case it tells me "3D CSD 1 did not regenerate properly: Error regenerating.".
What can I do to still import my points?

With lists like this it works:
0,0,0
1,1,1
2,-1,2
3,2,3
4,-2,2
5,3,1
6,-2,0
7,2,1
8,-1,2
9,1,3


With lists like that, I receive that error:
1.775,2.625,2.500
1.781,2.619,2.584
1.793,2.607,2.668
1.824,2.576,2.754
1.879,2.521,2.831
1.947,2.453,2.875
2.061,2.339,2.910
2.200,2.200,2.920
2.200,2.200,2.920

Thanks already for your help!

Answers

  • Options
    Jed_YeiserJed_Yeiser Member Posts: 21 PRO
    Hey Stefan,
    You may have already figured out this issue, but I suspect the problem is that you have several duplicate points (the last two points are identical). This will throw an error when the feature tries to fit a spline through the points (opFitSpline). I've found the 3C CSV definitions to be more cumbersome than helpful - so I wrote a different feature that will take a csv and create a spline through the points - no need to define start rows or columns. That feature is here: https://cad.onshape.com/documents/ceb23a125beb3f2c034b0c2b/v/552ec7ba6859d122ff061ec8/e/ad6a6423b0183ca1fd9c53bd

    Cheers!
    -j
Sign In or Register to comment.