Print Page | Close Window

Tool to remove arc from Pline

Printed From: CAD Forum
Category: EN
Forum Name: Civil 3D, Map, InfraWorks
Forum Description: Discussion about mapping and GIS applications Map, Civil3D, InfraWorks, MapGuide and Raster Design
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=2513
Printed Date: 25.Sep.2026 at 21:08


Topic: Tool to remove arc from Pline
Posted By: Andy_bhatt
Subject: Tool to remove arc from Pline
Date Posted: 06.Oct.2009 at 08:00

Hi,

I am looking for lisp that can be excuted in 2000i to remove all Pline arc that are generated while doing Mapcleaning- Simplifier Linear Object .

Looking forward a positive note
Regards
Andy
 



Replies:
Posted By: Vladimir Michl
Date Posted: 06.Oct.2009 at 08:05

Individually, you can use PEDIT command with the Decurve option.



-------------
Vladimir Michl (moderator)
https://www.linkedin.com/in/vmichl/" rel="nofollow - LinkedIn , Autodesk Expert Elite


Posted By: Andy_bhatt
Date Posted: 06.Oct.2009 at 08:12

Indiviually it takes lot of time. I need to remove all arc from Pline at one go from the whole file in autocad map 2000i

If there is a batch process then it will be great as I am having 500 files from which I need to remove that pline arc.

 
 


Posted By: Vladimir Michl
Date Posted: 06.Oct.2009 at 08:21
Well, it's quite easy - you can automate the above mentioned command to work on all objects in the current drawing (space):
 

(defun C:REMARC ()
 (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)
)
 
Save this to the remarc.lsp file, load it with APPLOAD and run the REMARC command.


-------------
Vladimir Michl (moderator)
https://www.linkedin.com/in/vmichl/" rel="nofollow - LinkedIn , Autodesk Expert Elite


Posted By: Andy_bhatt
Date Posted: 06.Oct.2009 at 08:45

Thank you very much.

Is there a batch process by which if i copy all the file in one folder and run the lisp . it will remove all the arc in Pline

Looking forward a positive note and it will save lot of time

 

 

 

 

 

 

 



Posted By: Andy_bhatt
Date Posted: 08.Oct.2009 at 08:52
Hello,
 
 In below lisp "REMARC" ..it is removing all arc exist in Pline. but it will be great if the tool place a vertex of Pline at the node where it remove the arc vertex. It will maintain data Quality otherwise we need to add vertex to each pline where arc is removed.
 
Hope I am clear in my thought.
 Any clarification required do mail me.
 
Thanks



Print Page | Close Window