AutoCAD Civil 3D General

Reply
Mentor
Posts: 339
Registered: ‎07-25-2006
Message 1 of 6 (2,697 Views)
Accepted Solution

Convert multiple polylines to arcs

2697 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?

*Expert Elite*
tcorey
Posts: 2,314
Registered: ‎12-18-2002
Message 2 of 6 (2,687 Views)

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
Mentor
Posts: 339
Registered: ‎07-25-2006
Message 3 of 6 (2,676 Views)

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.

Contributor
Posts: 18
Registered: ‎09-07-2012
Message 4 of 6 (2,013 Views)

Re: Convert multiple polylines to arcs

05-02-2013 10:35 AM in reply to: jbear0000
jbear, what is mapclean?
*Expert Elite*
Posts: 2,501
Registered: ‎05-21-2008
Message 5 of 6 (2,010 Views)

Re: Convert multiple polylines to arcs

05-02-2013 10:37 AM in reply to: controlsgirl
Type MAPCLEAN at the commandline.


Credit where credit is due! Give kudos or accept as solution whenever you can.

Mentor
Posts: 339
Registered: ‎07-25-2006
Message 6 of 6 (2,010 Views)

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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Civil 3D Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for AutoCAD Civil 3D helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Civil 3D

Twitter

Facebook

Blogs