AutoCAD Civil 3D General Discussion

Reply
Mentor
jbear0000
Posts: 343
Registered: ‎07-25-2006
Message 1 of 6 (3,565 Views)
Accepted Solution

Convert multiple polylines to arcs

3565 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,481
Registered: ‎12-18-2002
Message 2 of 6 (3,555 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
jbear0000
Posts: 343
Registered: ‎07-25-2006
Message 3 of 6 (3,544 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
controlsgirl
Posts: 18
Registered: ‎09-07-2012
Message 4 of 6 (2,881 Views)

Re: Convert multiple polylines to arcs

05-02-2013 10:35 AM in reply to: jbear0000
jbear, what is mapclean?
*Expert Elite*
troma
Posts: 2,519
Registered: ‎05-21-2008
Message 5 of 6 (2,878 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
jbear0000
Posts: 343
Registered: ‎07-25-2006
Message 6 of 6 (2,878 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
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

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