• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Civil 3D

    Reply
    Mentor
    Posts: 337
    Registered: ‎07-25-2006
    Accepted Solution

    Convert multiple polylines to arcs

    781 Views, 5 Replies
    05-22-2012 10:29 AM

    I have many segmented polylines that I need to turn into arcs. See the attached image for the method I use to create an arc from a single polyline. I need to do this to thousands of polylines. Does anyone know of a lisp that could do this? Or maybe some other method that can do many polylines at once?

    Please use plain text.
    *Expert Elite*
    Posts: 1,752
    Registered: ‎12-18-2002

    Re: Convert multiple polylines to arcs

    05-22-2012 11:24 AM in reply to: jbear0000

    Unfortunately, the aecccreatearcbybestfit command is not exposed to VisualLISP, so no luck there.

     

    If you don't need the Best Fit functionality of that command, you can use Pedit, Multiple, Fit curve. That would do them all in one fell swoop. It won't be a single arc through the entire pline, but it will have tangent curve segments. Depending on your need for speed vs. your need to obtain a single best-fit curve, this might work as a solution. It would be fast, that's for sure.

    Tim Corey, Owner
    Delta Engineering Systems
    Redding, CA
    Autodesk Authorized Value-Added Reseller
    Please use plain text.
    Mentor
    Posts: 337
    Registered: ‎07-25-2006

    Re: Convert multiple polylines to arcs

    05-22-2012 01:35 PM in reply to: tcorey

    I figured out a way to do it. First I use Pedit to fit a curve like tcorey suggested. Then I use mapclean and select Simplify Objects, set the tolerance to 1 and check the Create Arcs check box. This creates 2d polylines which can then be exploded to get arcs.

    Please use plain text.
    Active Member
    Posts: 8
    Registered: ‎09-07-2012

    Re: Convert multiple polylines to arcs

    05-02-2013 10:35 AM in reply to: jbear0000
    jbear, what is mapclean?
    Please use plain text.
    *Expert Elite*
    Posts: 1,555
    Registered: ‎05-21-2008

    Re: Convert multiple polylines to arcs

    05-02-2013 10:37 AM in reply to: controlsgirl
    Type MAPCLEAN at the commandline.
    __________________________________________________________
    Win 7 Pro, 32 bit; Intel Core i5 @ 2.80GHz; 4GB RAM—Civil 3D 2008 & 2011
    __________________________________________________________
    Credit where credit is due! Give kudos or accept as solution whenever you can.
    Please use plain text.
    Mentor
    Posts: 337
    Registered: ‎07-25-2006

    Re: Convert multiple polylines to arcs

    05-02-2013 10:37 AM in reply to: controlsgirl

    Mapclean is a command, type it and mess around with it.

    Please use plain text.