Author Topic: piece of code lost - vp rectangle  (Read 1186 times)

0 Members and 1 Guest are viewing this topic.

Big G

  • Bull Frog
  • Posts: 415
piece of code lost - vp rectangle
« on: June 07, 2010, 09:22:13 PM »
Hey all, i had a great piece of code which has gone awol after a MAJOR crash......ive had a quick look for it, but cant seem to find it...

vp_rectang - does exactly what it says on the tin....draws a rectang (user picked) around a VP then does a chspace to kick it into MS.....

Am wondering now whether it was a lisp file or just a macro?
« Last Edit: June 07, 2010, 09:30:47 PM by Big G »
I thought i seen the light at the end of the tunnel. But it was just someone with a torch bringing me more work.
"You have to accept that somedays youre the pigeon and  somedays youre the statue"

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: piece of code lost - vp rectangle
« Reply #1 on: June 07, 2010, 09:38:55 PM »

Would it be this one  ??

;; =========================================================
;; VPRECT.LSP - Copyright  ©1999  Tony Tanzillo
;;
;; AutoCAD 2000 / Visual LISP sample application
;;
;; Demonstrates how to transform a paper
;; space viewport's corner points into MS
;; world coordinate space.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Big G

  • Bull Frog
  • Posts: 415
Re: piece of code lost - vp rectangle
« Reply #2 on: June 07, 2010, 09:57:31 PM »
Thanks for pointer Kerry, was looking for vp_rectang, had a read through the ACAD Forums on it, but it seems a bit excessive compared to what was there before....maybe i just had a macro for it....deserves me right for not keeping a backup! Dang!

*EDIT*

http://www.theswamp.org/index.php?topic=2634.15

Theres a good lisp in there that works for clipped viewports too....

G
« Last Edit: June 07, 2010, 10:06:17 PM by Big G »
I thought i seen the light at the end of the tunnel. But it was just someone with a torch bringing me more work.
"You have to accept that somedays youre the pigeon and  somedays youre the statue"

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: piece of code lost - vp rectangle
« Reply #3 on: June 07, 2010, 11:18:03 PM »
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.