Results 1 to 4 of 4

Thread: Maximize Viewport & Grid Snap

  1. #1
    Member
    Join Date
    2016-08
    Posts
    9
    Login to Give a bone
    0

    Default Maximize Viewport & Grid Snap

    From the paper space tab: whenever I click "Maximize Viewport" to work in the model, I find that Grid Snap toggles ON, despite being OFF beforehand. Has anyone run into this problem? I'm aware of no settings that prevent this from happening. It's not a major issue, but pressing F9 to switch it OFF every time is a bit of a pain...

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Maximize Viewport & Grid Snap

    Interestingly, I cannot reproduce this - maximize viewport, grid snap is not enabled - what is happening instead, is that my other viewport turns black.

    Apparently, the other viewport, which I did not maximize, and is locked, is set back at origin (0,0) and has to be unlocked, re-positioned and aligned with my 'frame' for that view (in model).

    Very glad that I instead simply activate the Model tab when I need to work in model, as having to duplicate work like this would just set me off. Haha


    Cheers
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  3. #3
    I could stop if I wanted to
    Join Date
    2015-05
    Location
    West Des Moines
    Posts
    306
    Login to Give a bone
    0

    Default Re: Maximize Viewport & Grid Snap

    Quote Originally Posted by BlackBox View Post
    Very glad that I instead simply activate the Model tab when I need to work in model, as having to duplicate work like this would just set me off. Haha
    I've apparently never known what maximize viewport is, although I have apparently found my way into this command by accidentally double clicking a viewport, but if I do that I just hit the undo button. I also just go to model space if I need to do work in it.

    I also tried this out and didn't have it happen, but whenever I find variables that are changing and I don't want them to I use the variable reactor routine by Peter Jamtgaard. I believe that one started out as a savetime monitor, but I expanded it for pickfirst, dynmode, and filedia. No reason why you couldn't expand it to snapmode if you never want it on.

    Edit:
    My Variable Reactor Routine

    Code:
    ;--------------------------------------;
    ;Routine to ensure designated          ;
    ;variables remain unchanged:           ;
    ;                                      ;
    ;Automatic save: 30 minutes            ;
    ;Pickfirst: 1                          ;
    ;Filedia: 1                            ;
    ;Dynmode: 3                            ;
    ;                                      ;
    ;Reactor by: Peter Jamtgaard           ;
    ;--------------------------------------;
    
    (vl-load-com)
    (setq VTFRXN (vlr-editor-reactor nil '((:VLR-sysVarChanged . VTF))))
    
    
    (defun VTF (CALL CALLBACK)
      (if (and(= (strcase (car CALLBACK)) (setq str "SAVETIME"))(not (eq (getvar str) 30)))
        (progn
          (setvar "SAVETIME" 30)
        )
      )
      (if (and(= (strcase (car CALLBACK)) (setq str "PICKFIRST"))(not (eq (getvar str) 1)))
        (progn
          (setvar "PICKFIRST" 1)
        )
      )
      (if (and(= (strcase (car CALLBACK)) (setq str "FILEDIA"))(not (eq (getvar str) 1)))
        (progn
          (setvar "FILEDIA" 1)
        )
      )
      (if (and(= (strcase (car CALLBACK)) (setq str "DYNMODE"))(not (eq (getvar str) 3)))
        (progn
          (setvar "DYNMODE" 3)
        )
      )
    )
    (setvar "savetime" 30)
    (setvar "pickfirst" 1)
    (setvar "filedia" 1)
    (setvar "dynmode" 3)
    
    ;--------------------------------------;
    ;Creates the command "unloadreactor"   ;
    ;which disables the reactor for        ;
    ;current DWG                           ;
    ;--------------------------------------;
    
    (defun c:unloadreactor()
    (setq VTF nil)
    )

  4. #4
    Member
    Join Date
    2016-08
    Posts
    9
    Login to Give a bone
    0

    Default Re: Maximize Viewport & Grid Snap

    Thank you for the input, I'll take a closer look at the proposed solution when I have some time to spare (perhaps the last week of the year, when things are slow). It is indeed curious... but again, not a big deal.

Similar Threads

  1. 2012: Maximize Viewport/Linetypes
    By mhannan.100562 in forum AutoCAD General
    Replies: 1
    Last Post: 2011-07-20, 03:33 PM
  2. maximize viewport
    By dcochrane757156 in forum AutoCAD Tips & Tricks
    Replies: 3
    Last Post: 2010-02-12, 10:37 PM
  3. Snap to AEC ceiling grid thru viewport
    By jrb63 in forum ACA General
    Replies: 3
    Last Post: 2009-11-24, 10:40 PM
  4. Replies: 2
    Last Post: 2006-06-16, 07:06 AM
  5. Maximize Viewport
    By chadwickt in forum AutoCAD General
    Replies: 6
    Last Post: 2005-03-14, 02:45 PM

Posting Permissions

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