CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.
Plex.Earth connects AutoCAD and Google Earth
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedTool to remove arc from Pline

 Post Reply Post Reply
Author
Andy_bhatt View Drop Down
Newbie
Newbie


Joined: 05.Sep.2009
Location: United States
Status: Offline
Points: 10
Direct Link To This Post Topic: Tool to remove arc from Pline
    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
 
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2118
Direct Link To This Post Posted: 06.Oct.2009 at 08:05

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

Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner
Back to Top
Andy_bhatt View Drop Down
Newbie
Newbie


Joined: 05.Sep.2009
Location: United States
Status: Offline
Points: 10
Direct Link To This Post 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.

 
 
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2118
Direct Link To This Post 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)
ARKANCE - https://arkance.world - Autodesk Platinum Partner
Back to Top
Andy_bhatt View Drop Down
Newbie
Newbie


Joined: 05.Sep.2009
Location: United States
Status: Offline
Points: 10
Direct Link To This Post 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

 

 

 

 

 

 

 

Back to Top
Andy_bhatt View Drop Down
Newbie
Newbie


Joined: 05.Sep.2009
Location: United States
Status: Offline
Points: 10
Direct Link To This Post 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
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,152 seconds.