Results 1 to 10 of 14

Thread: View From Viewport

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    I could stop if I wanted to
    Join Date
    2004-11
    Location
    Somewhere close to hell
    Posts
    228
    Login to Give a bone
    0

    Lightbulb View From Viewport

    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

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: View From Viewport

    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

  3. #3
    I could stop if I wanted to
    Join Date
    2004-11
    Location
    Somewhere close to hell
    Posts
    228
    Login to Give a bone
    0

    Default Re: View From Viewport

    Tom,
    Thanks for the info, this gives me a place to start.
    Rob

  4. #4
    Member
    Join Date
    2004-11
    Posts
    3
    Login to Give a bone
    0

    Default Re: View From Viewport

    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?

  5. #5
    I could stop if I wanted to
    Join Date
    2004-11
    Location
    Somewhere close to hell
    Posts
    228
    Login to Give a bone
    0

    Default Re: View From Viewport

    Quote Originally Posted by tom.wilshusen
    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,
    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

  6. #6
    AUGI Addict
    Join Date
    2005-08
    Posts
    1,043
    Login to Give a bone
    0

    Default Re: View From Viewport

    Try this thread.

Similar Threads

  1. Rotating a Viewport Rotates the View in the Viewport
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 3
    Last Post: 2012-07-19, 11:36 AM
  2. Replies: 0
    Last Post: 2012-02-24, 05:48 PM
  3. View List - Viewport
    By Mactn113 in forum Revit Architecture - General
    Replies: 0
    Last Post: 2009-04-20, 04:26 PM
  4. Rotate View in Viewport
    By drafting1 in forum AutoCAD General
    Replies: 8
    Last Post: 2006-05-08, 11:43 AM
  5. New Viewport Not Saving Last View
    By CADdancer in forum AutoLISP
    Replies: 3
    Last Post: 2005-03-20, 08:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •