I have been toying with the idea of writing a routine that would create named views and draw view boundary by selecting viewports.
Has this been done?
Any ideas?
Vlisp or Lisp?
Thanx - Rob
|
I have been toying with the idea of writing a routine that would create named views and draw view boundary by selecting viewports.
Has this been done?
Any ideas?
Vlisp or Lisp?
Thanx - Rob
Go to the AUGI Exchange and search for:
001015 DrawVpBorder.lsp - AutoLISP file to draw viewport outline in modelspace
and
001193 VPExtentsBox.zip - VBA sub draws a ms polyline to indicate the extents of a ps viewport
or you could use vp-outline.lsp by Jimmy Bergmark
Website: www.jtbworld.com
Tom,
Thanks for the info, this gives me a place to start.
Rob
I stumbled across this after trying to write my own lsp for this (I know where to start next time).
I tried both of the lsp programs recommended above. Neither work properly. They succeed in drawing the outline (for both simple rectangular and polygonal viewports), but not at the proper location, usually somewhere far away (near, but not equal to, the coordinate expressed in group code 12 for the viewport).
I'm guessing it's related to the trans function (which is see in those lsps) and converting the paperspace coordinates to model space, but I can't figure it out. (Something I couldn't do while writing my own lsp, either).
Anybody have any ideas?
Tom,Originally Posted by tom.wilshusen
I haven't taken the time to look at this, but I had the same thought, I believe the trans function to convert points obtained should fix this.
Rob