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.
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 ClosedReverse Polylines LT 2008

 Post Reply Post Reply
Author
rsimpson003 View Drop Down
Newbie
Newbie


Joined: 15.Feb.2008
Location: New Zealand
Status: Offline
Points: 3
Direct Link To This Post Topic: Reverse Polylines LT 2008
    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
Back to Top
Arben.Allaraj View Drop Down
Senior Member
Senior Member


Joined: 14.Nov.2007
Location: Albania
Using: AutoCAD 2008
Status: Offline
Points: 602
Direct Link To This Post 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)
             )
            


Edited by Arben.Allaraj - 15.Feb.2008 at 11:40
Ing Arben.Allaraj
http://cad-drafting-corner.blogspot.com
Back to Top
rsimpson003 View Drop Down
Newbie
Newbie


Joined: 15.Feb.2008
Location: New Zealand
Status: Offline
Points: 3
Direct Link To This Post 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
Back to Top
Arben.Allaraj View Drop Down
Senior Member
Senior Member


Joined: 14.Nov.2007
Location: Albania
Using: AutoCAD 2008
Status: Offline
Points: 602
Direct Link To This Post 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
Back to Top
rsimpson003 View Drop Down
Newbie
Newbie


Joined: 15.Feb.2008
Location: New Zealand
Status: Offline
Points: 3
Direct Link To This Post 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 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
Back to Top
Arben.Allaraj View Drop Down
Senior Member
Senior Member


Joined: 14.Nov.2007
Location: Albania
Using: AutoCAD 2008
Status: Offline
Points: 602
Direct Link To This Post 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
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,156 seconds.