CAD Forum
Cesky English Deutsch
Login:
 Visitors: 1114 

WWW server of the XANADU company (formerly: CAD Studio) Become a fan of CADforum on Facebook

CAD tip CAD tip # 6972:

Question CAD 
 %  platform  category 
Q - question

How to remove arc segments from Pline?

A - answer 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)
)
ACADLTADT
100% *  CAD 
6.10.2009    907x  
Comments   Tell a friend
Share tip: Digg it! Del.icio.us Facebook Technorati StumbleUpon

See also:
Tip 6955:Simply add or delete a polyline vertex.
Tip 6167:The OVERKILL command reports an "Invalid option keyword" error.
Tip 5673:How to convert a 3DPOLYLINE to a 2DPOLYLINE (LWPOLYLINE)?
Tip 4570:How to change the direction of texts in complex linetype in arcs?
Tip 3586:How to suppress the prompt "Object selected is not a polyline. Do you want it to turn into one?"


Back   All CAD Tips All CAD tips&tricks

Not feeling like an architect? Leave the hard work to machines :-) « | » Fading xrefs in AutoCAD.

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings. You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Need easy intranet document management? Try iPROJECT More info


Please use these tips at your own risk.
XANADU (CAD Studio) is not responsible for possible problems that may occur as a result of using any of these tips.