CAD FORUM - TIPS & TRICKS | UTILITIES | DISCUSSION | BLOCKS | SUPPORT | HELP & ASSISTANCE
Over 1.124.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
The new Beam calculator, Spirograph generator and Regression curves in the Converters section.
New AutoCAD 2027 commands and sys.variables
CAD tip # 6972:
Question
A
If you want to remove all arc segments from a polyline - replace them by straight lines - use the PEDIT and its option Decurve.
To process multiple polylines, you can use the following LISP code (REMARC command):
(defun C:REMARC ( / i ssl ss e) (setq ss (ssget "_X" '((0 . "LWPOLYLINE")))) (setq i 0 ssl (sslength ss)) (while (< i ssl) (setq e (ssname ss i)) (command "_PEDIT" e "_De" "") (setq i (1+ i)) ) (princ) )
ACADACLTADT
6.10.2009
17112×
![CAD Forum - ARKANCE Community - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

What is the ARKANCE Community?