I desire to know how to export Solidworks spline points to a .txt file.
Here am posting the Program code:-
Macro to read 3d Sketch points and export to Excel or text file..!!
caution this program reads the points in order of creation so you may need to rearrange your data in excel if they are out of order!
Answered with a tutorial: https://grabcad.com/tutorials/how-to-export-solidworks-spline-points-to-a-txt-file
If you want to export the model in notepad than just simple modify the code.
In place of Excel.application change it to notepad.application
Hi this one is written source code (Macro) to export the file to text..!!
Edited © version to share, if it's not work than feel free to tell me And please use it only for Educational purpose.
I will re write for you.
AttachmentsSourbh- ExtractSplinePoints to text.swp, 43 KB
Which version of solid works you are using to run this Macro??
Is you opened the solid work model first??
I try with this macro. But its only open blank excel file. What I want to do to rectify it? What do you think is my mistakev
It is for SW 2009, if you seeing the error in compiling than just search for reference and select ok than do compile and run again.
if u want to extract it to notepad then right click on the
.sldcrv file------>select open with---->select notepad as the program.
And how to Import the points from the solid works is here " https://grabcad.com/questions/tutorial-how-to-import-points-to-solidworks-from-a-text-file "
this is already tutorial available in Grab-cad, so that i saved myself to type more..!!
Good luck and use it to learn more..!!
I just ran your macro on a 3Dsktech (SW2012) with N points, but it returns 2N triads of coordinates: each point is counted twice and they are put in a crossed order. Attached the excel returned by the macro (I compiled column A with the cardinal numers of the first 5 points).
Can you help me fix the problem?
AttachmentsCartel1.xlsx, 10.9 KB