Results 1 to 4 of 4

Thread: New Viewport Not Saving Last View

  1. #1
    I could stop if I wanted to
    Join Date
    2015-09
    Posts
    420
    Login to Give a bone
    0

    Question New Viewport Not Saving Last View

    Good Afternoon To All AUGI Members:

    I am having a problem that is confusing me at the moment....!

    I have a Autolisp routine that takes the current working drawing, performs a saveas to a new drawing name, inserts an 8 1/2"x11" sketch format and then creates a floating viewport to a user specified scale. When the routine is finished the user will activate the viewport and pan the sketch to a desired location. The user will then save and close the drawing file.

    The next time that drawing is opened the viewport on the sketch drawing reverts back to the original location when the floating viewport was first created and does not save the viewport location that the sketch was panned to before saving the file.

    Below is a portion of the code that creates the new viewport in this routine...:

    (Command "-LAYER" "U" "DEFPOINTS" "")
    (Command "-LAYER" "T" "DEFPOINTS" "")
    (Command "-LAYER" "ON" "DEFPOINTS" "")
    (Command "-LAYER" "M" "Defpoints" "")
    (Command "-VPORTS" "0.75,0.375" "8.125,9.3125")
    (Command "-VPORTS" "ON" "L" "")
    (Command "MSpace")
    (Command "zoom" "1/48xp")
    (Command "PSpace")
    (Command "Zoom" "E")
    (Command "Qsave")

    Can anyone think of a reason why the panned location of the viewport is not being saved the first time the drawing is saved....??

    Once the drawing is opened a second time and the viewport is panned to the desired location again and the drawing is saved.......the next time the drawing is opened everything is OK. The problem only exists the first time the viewport is created, panned and saved.

    Any assistance with this matter would be appreciated.

    Regards,
    Vince
    Last edited by vferrara; 2005-03-17 at 08:32 PM.

  2. #2
    I could stop if I wanted to tyshofner's Avatar
    Join Date
    2004-03
    Location
    Dallas, Tx
    Posts
    229
    Login to Give a bone
    0

    Default Re: New Viewport Not Saving Last View

    Are you locking the viewport after you pan to the desired location? If not, locking the viewport might help. Just a guess though!

    Ty

  3. #3
    Member Virago87's Avatar
    Join Date
    2005-02
    Location
    Toronto, Canada
    Posts
    29
    Login to Give a bone
    0

    Default Re: New Viewport Not Saving Last View

    try a second Qsave.....I not sure why but it has worked for me in the past

  4. #4
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,707
    Login to Give a bone
    0

    Default Re: New Viewport Not Saving Last View

    Try to set ISAVEPERCENT to 0

    : ) Happy Computing !

    kennet

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. saving viewport layer configs
    By Dori in forum AutoCAD LT - General
    Replies: 1
    Last Post: 2011-04-25, 02:30 PM
  3. Frozen Viewport Layers Not Saving
    By bradg in forum AMEP General
    Replies: 3
    Last Post: 2008-07-16, 12:59 PM
  4. 9.0 Crash when saving a View???
    By archjake in forum Revit Architecture - General
    Replies: 3
    Last Post: 2006-04-13, 10:20 PM
  5. viewport problems... they are not saving the current view
    By eleonard in forum AutoCAD General
    Replies: 8
    Last Post: 2005-12-22, 11:29 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
  •