Results 1 to 8 of 8

Thread: Polyline Circles

  1. #1
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,283
    Downloads
    0
    Uploads
    0

    Polyline Circles

    Does anyone need to have circles drawn as segmented polylines? Someone on the Mach3 Yahoo group wanted a way to do it, so I wrote this quick macro to do it. It doesn't convert circles, it will draw them as polylines.

    If you wish to make a toolbar button for it, enter the following for
    the button macro:

    ^C^C-vbarun PLCircle.dvb!PLCircle.PLCircle

    The macro itself must be located in a folder in the support file
    search path for the button to work.
    Attached Files Attached Files
    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)


  2. #2
    Registered
    Join Date
    Apr 2005
    Location
    USA
    Posts
    7
    Downloads
    0
    Uploads
    0
    You should be able to do the same thing with the command "donut".

    Just give it the same inside & outside diameter.

    - Joel -


  3. #3
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,283
    Downloads
    0
    Uploads
    0
    Not exactly the same. The macro draws a "circle" made of of many short, straight segments. The donut command uses a polyline made up of 2 arc segments.

    Thanks for the tip, though.
    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)


  4. #4
    Registered
    Join Date
    Aug 2005
    Location
    usa
    Posts
    3
    Downloads
    0
    Uploads
    0
    you could use the polygon command with many sides. Is it a circle composed of straight line segments?


  • #5
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,283
    Downloads
    0
    Uploads
    0
    Another good tip. Thanks. So many ways to do things in AutoCAD, it's hard to think of them all.
    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
    Registered
    Join Date
    Mar 2006
    Location
    Canada
    Posts
    45
    Downloads
    0
    Uploads
    0
    why would you want it as polylines?

    for machining, i find it more of a pain...

    bigger file sizes too


  • #7
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,283
    Downloads
    0
    Uploads
    0
    I needed a quick way to draw a circle made up of multiple arcs, so modified the original macro here into this new one. Just tell it how many segments you want, and you'll get a circle composed of a single polyline containing that # of arc segments.
    Attached Files Attached Files
    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)


  • #8
    Registered ImanCarrot's Avatar
    Join Date
    Nov 2005
    Location
    UK
    Posts
    1,468
    Downloads
    0
    Uploads
    0
    Handy that!

    Incidentaly, you can make a text file of X and Z values, rename it with an SCR extension and type SCRIPT in AutoCAD and it'll import all the X and Z values straight into your drawing. You need to have PLINE as the first line in the file though.

    I found this dead handy for importing exactly what you are doing, except my little lines were for elipses and aspheres. I had to EXPLODE the Polyline to make all the little lines.

    So the SCR file format would be:

    PLINE
    15.0000,02.881022
    15.0010,02.881022
    etc
    I love deadlines- I like the whooshing sound they make as they fly by.


  • 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.