Jump to content

Recommended Posts

Guest btompkins
Posted

Hi all,

 

With rkents help in the AutoCAD Beginners thread, (original thread here for reference http://www.cadtutor.net/forum/showthread.php?56868-Grid-On-for-every-drawing&p=385217#post385217) I was able to get the grid lines to come on automatically with every drawing.

 

rkent suggested I come here for help with the remainder of the issue, gridlines come on in each drawing only in paperspace not model space, if possible, I would prefer the reverse to happen, gridlines on in model space not paperspace.

 

Any assistance would be appreciated.

 

Thanks

Bob T

Posted

Why not use a Template to preset all your settings? Do you use Templates at all?

Guest btompkins
Posted

I do use templates when I start a new drawing and I have the gridlines on and saved in the template I use, I also have the system variable GRIDMODE set to 1, but as I said in the other thread, I want gridlines to come on for every drawing, regardless of if it is a new drawing or a drawing provided from outside of our organization.

 

With rkents help, I have added this line (command "gridunit" "0.125,0.125" "gridmode" "1" "griddisplay" "3" "gridstyle" "0") to my ACADDOC.LSP, but would prefer the gridlines on in model space and off in paperspace, the opposite is happening now.

 

Thanks

Bob T

Guest btompkins
Posted

A little more detail to add after experimenting some, it appears that the line of commands rkent provided does turn on the grid whenever any drawing is opened but only in the space it opens in, ie model space or paper space, in other words, if the drawing opens up in model space, the grid will only be on in model space, if the drawing opens up in paper space, then the grid will only be on in paper space, I may open drawings in either space and as I said previously, my preference is to have the grid on in model space and off in paper space regardless of which space shows up first. Otherwise, krents command line is working just fine.

 

Thanks

Bob T

Guest btompkins
Posted (edited)

Update, with the help of an experienced cad trainer, we figured out a solution, 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)

 

So I am set, thanks to all who contributed.

 

Bob T

Edited by btompkins

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...