2 Replies Latest reply on Feb 28, 2014 1:54 PM by Isaac Skaw

    Export a sketch curve as XYZ points (i.e. the opposite of the 'Curve Through XYZ Points' tool)

    Isaac Skaw

      As the title suggests, I am looking for a method to export any 2D sketch curve (including splines and equation-driven curves) created entirely in SolidWorks as a series of XYZ points at a very high resolution. This is essentially the exact opposite of what the 'Curve Through XYZ Points' tool does. I have been working on this problem for a while and have done many searches, both on the internet in general and on the SolidWorks help forums in particular. My current solution has been cobbled together using the SolidWorks API and macros found on the following threads:

      https://forum.solidworks.com/thread/75967

      https://forum.solidworks.com/thread/30993

      https://forum.solidworks.com/message/35813#35813

       

      I just wanted to make sure there wasn't a simpler way to do this, such as a file type I could save the sketch as that I could open in Notepad and find the curve approximated as a series of coordinate points or a 2D point cloud or something.

       

      Note that I would need to do this for potentially thousands of different sketches, so I would like to avoid intermediate steps (e.g. saving as a .dxf and then using a standalone file converter) as much as possible.

       

      Thank you in advance.

       

      Isaac