Results 1 to 7 of 7

Thread: Splines/Polylines/DXF/G-Code

  1. #1
    Registered
    Join Date
    Jan 2005
    Location
    United States
    Posts
    37
    Downloads
    0
    Uploads
    0

    Splines/Polylines/DXF/G-Code

    I am trying to understand how to approach shapes that require splines and/or polylines. If the shape is created in AutoCad (or some other CAD package) and then saved in DXF format, will a G-Code converter recognize this type of entity? Do you need to "explode" the spline/polyline into individual line segments to create the G-Code? If yes, then is a G-Code line created for each segment resulting in huge files and choppy final output at the machine?

    Wolfspaw


  2. #2
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,303
    Downloads
    0
    Uploads
    0
    If you look in the AutoCAD forum here, there are a couple of recent threads about converting splines to polylines. I don't know of any .dxf converters that recognize splines. If you use a controller with constant velocity, like Mach3, you probably won't even notice that it's made up of short straight segments.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  3. #3
    Registered buscht's Avatar
    Join Date
    Nov 2003
    Location
    United States
    Posts
    634
    Downloads
    0
    Uploads
    0
    Wolfspaw, I agree with Gerry on this. At work we use Alphacam which will allow you to machine a spline, but there is no such command in a G code file and the spline is changed over to line and arc segments when the G code is created. G01, G02, G03 commands.
    The large files aren't as big a problem as they used to be, but if its a big deal for your machine you should use 3 point arcs and try and duplicate the spline as close as possible in your CAD program.
    An old controller will give you choppy output as the CPU isn't fast enough to keep up with the code. Newer machines shouldn't have much problem.


  4. #4
    Gold Member mxtras's Avatar
    Join Date
    May 2005
    Location
    USA
    Posts
    1,810
    Downloads
    0
    Uploads
    0
    From what I gather, if the file is saved as an ACAD R-12 DXF, the spline data will be converted to polylines which can be accommodated by most G-code generators will correctly process. Whether or not it is choppy, I don't know as I have yet to try it, but I would imagine there will be some degradation of the data (choppy).

    I learned this from one of the posts on this site a few months ago, but I have yet to try it as I try to stay away (and always find a way around using) splines. I think I will play a little....and it works - pretty well from what I can see. I wish I had known that stupid little trick about 4 years ago....

    Please advise if this in inaccurate.


    Scott
    Last edited by mxtras; 09-07-2005 at 03:01 PM. Reason: include results of trial SPLINE to DXF
    Consistency is a good thing....unless you're consistently an idiot.


  • #5
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,303
    Downloads
    0
    Uploads
    0
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • #6
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,303
    Downloads
    0
    Uploads
    0
    One little thing. Scott mentioned ACAD v12 .dxf, but he didn't say if it was being saved from AutoCAD or not. Technically, it shouldn't matter. But just because someone says they're saving as v12, doesn't mean they are. So although this should work in any CAD program, a trial run may be necessary if not using AutoCAD.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • #7
    Registered
    Join Date
    Jan 2005
    Location
    United States
    Posts
    37
    Downloads
    0
    Uploads
    0
    Thanks guys...I understand it now.

    Wolfspaw


  • Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.