Guest btompkins Posted February 14, 2011 Share Posted February 14, 2011 Hi Folks, I have Mechanical 2011 and like the Grid On when I work, personal preference I guess. I have the system variable GRIDMODE set to 1 and the template drawing that opens when AutoCAD starts saved with the grid lines on. I know the grid state is saved in the drawing but is there a way to have the grid always on regardless of the drawing, many drawings I work with are from outside of my organization. Thank you in advance for any suggestions Bob T Quote Link to comment Share on other sites More sharing options...
rkent Posted February 14, 2011 Share Posted February 14, 2011 Hi Folks, I have Mechanical 2011 and like the Grid On when I work, personal preference I guess. I have the system variable GRIDMODE set to 1 and the template drawing that opens when AutoCAD starts saved with the grid lines on. I know the grid state is saved in the drawing but is there a way to have the grid always on regardless of the drawing, many drawings I work with are from outside of my organization. Thank you in advance for any suggestions Bob T Press F7 for each drawing, or add GRIDMODE 1 to ACADDOC.LSP, if you don't have one create one. Quote Link to comment Share on other sites More sharing options...
Guest btompkins Posted February 14, 2011 Share Posted February 14, 2011 Thanks rkent, Below are the contents of my ACADDOC.LSP, where would the GRIDMODE system varible be added and what exactly would it look like? Thanks for your help. ;;;*-*TXT acad.lsp is loaded once, acaddoc.lsp is loaded for each ;;; document, s::startup in any case is called after acaddoc.lsp ;;; has been loaded ; ;;(if (= nil acad_helpdlg) ;; (progn ;; (load "acadr15.lsp") ;; (load (strcat (getvar "menuname") ".mnl")) ;; ) ; (if (= nil genlade) (progn (princ (load "gen/acadm.lsp" "\nError: acadm.lsp not loaded!")) (if acadmappend (setq s::startup (acadmappend s::startup))) ) ) Thanks Bob T Quote Link to comment Share on other sites More sharing options...
rkent Posted February 14, 2011 Share Posted February 14, 2011 Thanks rkent, Below are the contents of my ACADDOC.LSP, where would the GRIDMODE system varible be added and what exactly would it look like? Thanks for your help. ;;;*-*TXT acad.lsp is loaded once, acaddoc.lsp is loaded for each ;;; document, s::startup in any case is called after acaddoc.lsp ;;; has been loaded ; ;;(if (= nil acad_helpdlg) ;; (progn ;; (load "acadr15.lsp") ;; (load (strcat (getvar "menuname") ".mnl")) ;; ) ; (if (= nil genlade) (progn (princ (load "gen/acadm.lsp" "\nError: acadm.lsp not loaded!")) (if acadmappend (setq s::startup (acadmappend s::startup))) ) ) (command "gripmode" "1") Thanks Bob T See above in red. If you want more setvars set you can do it in the same line like, (command "gripmode" "1" "pickfirst" "1" "filedia" "1") Quote Link to comment Share on other sites More sharing options...
rkent Posted February 14, 2011 Share Posted February 14, 2011 You will want to control your gridunit setting as well so (command "gridunit" "0.125,0.125" "gridmode" "1" "griddisplay" "3" "gridstyle" "1") Replace the .125 with what you like to use, adjust the other settings with what you like to see. See help for all the Grid... setvars. Quote Link to comment Share on other sites More sharing options...
Guest btompkins Posted February 14, 2011 Share Posted February 14, 2011 It works, sort of, I will have to tweak the settings, the first drawing that opens when ACAD starts now has dots when before it was a grid, also the grid does display on existing drawings when opened, but only in paperspace, not model view, any suggestions? Thanks Bob T Quote Link to comment Share on other sites More sharing options...
rkent Posted February 14, 2011 Share Posted February 14, 2011 Change gridstyle to 0. It will take more than a simple command line setting to get this to work in all the different viewports. You will have to ask in customization. Quote Link to comment Share on other sites More sharing options...
Guest btompkins Posted February 14, 2011 Share Posted February 14, 2011 OK, that took care of the dots, now how do we get the grid on in model space at startup? It is on in paper space. Thanks Bob T Quote Link to comment Share on other sites More sharing options...
Guest btompkins Posted February 14, 2011 Share Posted February 14, 2011 Actually, my preference would be the opposite of what is happening if possible, on in model space, off in paperspace. Thanks Bob T Quote Link to comment Share on other sites More sharing options...
Guest btompkins Posted February 14, 2011 Share Posted February 14, 2011 Thanks for all your help rkent, I will head over to customization and hope for the same great help I got here. Thanks Bob T Quote Link to comment Share on other sites More sharing options...
rkent Posted February 14, 2011 Share Posted February 14, 2011 OK, that took care of the dots, now how do we get the grid on in model space at startup? It is on in paper space. Thanks Bob T Maybe have a two key command to do that once you are in ModelSpace. Add this in your acaddoc.lsp in place of the other that I sent earlier. Once in MS type GG enter. (defun c:GG (/) (command "gridunit" "0.125,0.125" "gridmode" "1" "griddisplay" "1" "gridstyle" "0") ) Quote Link to comment Share on other sites More sharing options...
Guest btompkins Posted February 16, 2011 Share Posted February 16, 2011 Update, with the help of an experienced cad trainer, we figured out a solution, I have been asked not to paste the exact statement we used but it involves activating the required tab and setting the grid variables for that tab then adding that statement to the ACADDOC.LSP file. So I am set, thanks for your help krent. Bob T Quote Link to comment Share on other sites More sharing options...
rkent Posted February 16, 2011 Share Posted February 16, 2011 Update, with the help of an experienced cad trainer, we figured out a solution, I have been asked not to paste the exact statement we used but it involves activating the required tab and setting the grid variables for that tab then adding that statement to the ACADDOC.LSP file. Bob T Asked not to post the solution, that is hilarious, does the experienced trainer think it is proprietary information? Not how things work on these forums, people share. Let me guess, the secret statement involves Tilemode = 1. If I am right don't post it, maybe I can sell that information myself. Quote Link to comment Share on other sites More sharing options...
Guest btompkins Posted February 16, 2011 Share Posted February 16, 2011 rkent, thank you for your kind response, here is the code: ;Activate model tab (command "_.TILEMODE" 1) ;Set model tab grid values (command "GRIDUNIT" "0.125,0.125" "GRIDMODE" "1" "GRIDDISPLAY" "3" "GRIDSTYLE" "0") ;Switch to last activate layout tab (command "_.TILEMODE" 0) ;Activate paper space mode and set grid values (command "_.PSPACE" "GRIDUNIT" "0.125,0.125" "GRIDMODE" "0" "GRIDDISPLAY" "3" "GRIDSTYLE" "0") ;Activate model tab (command "_.TILEMODE" 1) Quote Link to comment Share on other sites More sharing options...
ReMark Posted February 17, 2011 Share Posted February 17, 2011 The Feds are going to come knocking on your door to ask why you are sharing state secrets. You're in big trouble now brother! LOL Quote Link to comment Share on other sites More sharing options...
Ryder76 Posted February 18, 2011 Share Posted February 18, 2011 :lol::lol::lol::lol::lol::lol: Quote Link to comment Share on other sites More sharing options...
Jack_O'neill Posted February 18, 2011 Share Posted February 18, 2011 Update, with the help of an experienced cad trainer, we figured out a solution, I have been asked not to paste the exact statement we used Bob T Sounds like your "experienced cad trainer" is one of those "only the high priest can read the sacred scrolls" guys. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.