Print Page | Close Window

Reverse Polylines LT 2008

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=487
Printed Date: 31.May.2026 at 23:11


Topic: Reverse Polylines LT 2008
Posted By: rsimpson003
Subject: Reverse Polylines LT 2008
Date Posted: 15.Feb.2008 at 03:52

Does anyone know if there is a way to reverse a polyline in AutoCAD LT 2008?

I know this can be done with a spline.
DRC has a product call LT toolkit (LISP Extender) but compared to other products ($350USD) it is quite expensive.
 
Any help would be greatly appreciated.
 
Cheers
 
Wink



Replies:
Posted By: Arben.Allaraj
Date Posted: 15.Feb.2008 at 11:40
 
  Welcome to CADFORUM.
 
 I finded a lisp program that you want.
 
   (defun c:rev()
                (command "redraw")
                (setq a (entsel "\nSelect Polyline to reverse direction of:  
             "))
                (setq pt1 (getpoint "\nPick end point you want to be start of
             polyline:   "))
                (setq y  (cadr pt1))
                (setq x  (car pt1))
                (setq x1 (+ x 100))
                (setq y1  (+ y 100))
                (setq pt2 (list x y1))
                (command "line" pt2 pt1 "")  ;temp line needed to reverse poly
             direction
                (setq b (entlast))
                (command "pedit" b "y" "j" a "" "") ;join temp line to polyline
                (setq c (entlast))
                (command "break" c pt1 pt1) ;break new polyline at temp line
                (entupd c)
                (command "erase" c "") ;erase temp line
                (princ)
             )
            


-------------
Ing Arben.Allaraj
http://cad-drafting-corner.blogspot.com


Posted By: rsimpson003
Date Posted: 17.Feb.2008 at 20:28
Thanks for your prompt reply.
 
I believe that LT 2008 cannot use LISP programs, this is a function of the full version of AutoCAD, unless you know otherwise.
 
There is a program for reversing polylines for FULL AUTOCAD call rev_poly, but since I'm only using the LITE version it wil not work.
 
If that program string that you wrote can be applied then how?
 
the only thing that is available is a script file function would your program string work with this??
 
cheers


Posted By: Arben.Allaraj
Date Posted: 18.Feb.2008 at 11:15
 
 Open the Vlisp Editor with Vlide-command.
 Select the text and copy-paste in Visual Lisp Editor and save it as Rev.lsp
 Load this file with appload command and then type rev in command window.
 I hope that you understand me. 


-------------
Ing Arben.Allaraj
http://cad-drafting-corner.blogspot.com


Posted By: rsimpson003
Date Posted: 18.Feb.2008 at 20:24
good morning/evening,
 
thanks for your post - I think you have misunderstood me in that the AutoCAD program that I'm using is a cut down version and therefore is very limited in it's capabilities (i.e. there is no Vlisp Editor command option or appload) that is why I was asking if there was anything other out there.
Check out http://www.drcauto.com - www.drcauto.com which is a site for software to turn your AutoCAD LT program into something that resembles the full autocad version.
 
Thanks once again for your time & help
 
Cheers


Posted By: Arben.Allaraj
Date Posted: 19.Feb.2008 at 11:54
 
 I don't use AutoCAD LT maybe I have been wrong.
 
 Whatever Thanks a lot.


-------------
Ing Arben.Allaraj
http://cad-drafting-corner.blogspot.com



Print Page | Close Window