Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
Import Points
fredrik_1
Member Posts: 27 ✭✭
Best Answers
-
TimRice Member, Moderator, Onshape Employees Posts: 315Please see this discussion:
https://forum.onshape.com/discussion/9700/fs-to-plot-3d-points-from-table
Tim Rice | User Experience | Support
Onshape, Inc.2 -
Jake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646^ Since that discussion we have also introduced reference parameters, so that you do not need to hard code a reference to the csv file, but can actually reference the file by taking it in as a parameter in the feature dialog. See this documentation (and scroll down a bit to CSV section): https://cad.onshape.com/FsDoc/imports.html#reference-parametersJake Rosenfeld - Modeling Team2
-
Jake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646@fredrik_1
FYI, If you go and look at that thread that Tim mentions, I have updated that custom feature with our new reference parameter workflow. That feature should be all up-to-date on current FeatureScript best practices, and may actually do exactly what you need without any coding on your part.Jake Rosenfeld - Modeling Team2 -
Jake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646@fredrik_1
A generally good workflow here would to start the sketch with newSketch or newSketchOnPlane, then you can sketch points with skPoint. If your csv is already 2d, you're in the clear, but if your points are in 3d and you need to get them into the 2d sketch coordinate system you can use worldToPlane. Don't forget to solve the sketch with skSolve to finalize the sketch.
Jake Rosenfeld - Modeling Team5
Answers
I see that it might be possible through FeatureScript. All I'm trying to do is to import a lot of points, from a csv file or something like that so i can make various holes for screws. Anyone tried that?
Best regards, Fredrik
https://forum.onshape.com/discussion/9700/fs-to-plot-3d-points-from-table
Onshape, Inc.
As always great support from OS, Featurescript is so nice!
FYI, If you go and look at that thread that Tim mentions, I have updated that custom feature with our new reference parameter workflow. That feature should be all up-to-date on current FeatureScript best practices, and may actually do exactly what you need without any coding on your part.
A generally good workflow here would to start the sketch with newSketch or newSketchOnPlane, then you can sketch points with skPoint. If your csv is already 2d, you're in the clear, but if your points are in 3d and you need to get them into the 2d sketch coordinate system you can use worldToPlane. Don't forget to solve the sketch with skSolve to finalize the sketch.