Display full version of the post: Tool to remove arc from Pline

Andy_bhatt
06.10.2009, 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
 

Vladimir Michl
06.10.2009, 08:05
Individually, you can use PEDIT command with the Decurve option.

Andy_bhatt
06.10.2009, 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.
 
 

Vladimir Michl
06.10.2009, 08:21
Well, it's quite easy - you can automate the above mentioned command to work on all objects in the current drawing (space):
 
[CODE]
(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))
[/CODE]
 
Save this to the remarc.lsp file, load it with APPLOAD and run the REMARC command.

Andy_bhatt
06.10.2009, 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
 
 
 
 
 
 
 

Andy_bhatt
08.10.2009, 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