Over 1.110.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
The new Beam calculator and Spirograph generator in the Converters section.
Discussion forum
?CAD discussions, advices, exchange of experience
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.
|
Post Reply
|
| Author | |
rsimpson003
Newbie
Joined: 15.Feb.2008 Location: New Zealand Status: Offline Points: 3 |
Topic: Reverse Polylines LT 2008Posted: 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
|
|
![]() |
|
Arben.Allaraj
Senior Member
Joined: 14.Nov.2007 Location: Albania Using: AutoCAD 2008 Status: Offline Points: 602 |
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 |
|
![]() |
|
rsimpson003
Newbie
Joined: 15.Feb.2008 Location: New Zealand Status: Offline Points: 3 |
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
|
|
![]() |
|
Arben.Allaraj
Senior Member
Joined: 14.Nov.2007 Location: Albania Using: AutoCAD 2008 Status: Offline Points: 602 |
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 |
|
![]() |
|
rsimpson003
Newbie
Joined: 15.Feb.2008 Location: New Zealand Status: Offline Points: 3 |
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
|
|
![]() |
|
Arben.Allaraj
Senior Member
Joined: 14.Nov.2007 Location: Albania Using: AutoCAD 2008 Status: Offline Points: 602 |
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,273 seconds.
![CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](/common/arkance_186.png)


Reverse Polylines LT 2008
Topic Options


