[Search tip detail and code files using keywords, tip number, author name, etc ]
 
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Circle to Polyline and Polyline to Circle
Tip# 3683 By Kent Cooper On 17-Jul-2011
0
Rated By 0 users Downloaded : 911
Categories : Curved Objects, 2D Editing
Software type : AutoCAD 2012
Rename File To : CirclePolylineSwap.lsp
Convert circle entities to polylines and vice versa.

Editor's Note: This LISP file was updated in August 2011. The update does not affect the operation of the commands themselves; the only change is that using Undo after the commands now works as expected. 

Kent Cooper submits two complementary functions in this LISP file. The first one converts circle entities to polylines in AutoCAD; the other converts polylines to circles. (Of course the second function can only convert polylines that can be represented by a circle, such as those created with the Donut command.) Start by loading the LISP file, then type in C2P to convert circles to polylines, or P2C to convert polylines to circles. Existing properties such as color, linetype, and lineweight are maintained, and both commands work in any UCS. Be sure to read the comments in this well-documented LISP file, which contain more details on the operation and limitations of these functions.

 

Average Rating:
0


User comments


Log In