Display full version of the post: Reverse Polylines LT 2008

rsimpson003
15.02.2008, 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
 

Arben.Allaraj
15.02.2008, 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)             )             Arben.Allaraj2008-02-15 11:40:49

rsimpson003
17.02.2008, 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

Arben.Allaraj
18.02.2008, 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. 

rsimpson003
18.02.2008, 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 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

Arben.Allaraj
19.02.2008, 11:54
 
 I don't use AutoCAD LT maybe I have been wrong.
 
 Whatever Thanks a lot.