How to add SNAP and GRID to bottom ribbon

How to add SNAP and GRID to bottom ribbon

syanchuck
Advocate Advocate
3,164 Views
26 Replies
Message 1 of 27

How to add SNAP and GRID to bottom ribbon

syanchuck
Advocate
Advocate

I need SNAP/GRID buttons on my bottom ribbon, however it was disappeared yesterday.
How can I add it back to the ribbon and why it's disappearing sometimes?
Thank in advance!

0 Likes
Accepted solutions (1)
3,165 Views
26 Replies
Replies (26)
Message 21 of 27

Kent1Cooper
Consultant
Consultant

@syanchuck wrote:

I have to use F7 and F9 unfortunately instead of the bottom ribbon buttons.

because I have to work sometimes in Snap Off mode, then sometimes in SNAP On, I can't visually see the mode status, only play with the mouse. It is not comfortable for me, sorry...


If this will do it for you, you can see the status of Snap and Grid [including the values they're set to] in this kind of format at the left end of the status line:

Kent1Cooper_5-1657819116827.png    Kent1Cooper_6-1657819145406.png

with a MODEMACRO setting in an ACAD.lsp file:

(defun S::STARTUP ()
  (setvar 'modemacro
    (strcat
      "$(if,$(getvar,snapmode),Snap: ,Snap OFF)"
      "$(if,$(getvar,snapmode),$(rtos,$(getvar,snapunit)))"
      "$(if,$(getvar,gridmode),  Grid: ,  Grid OFF)"
      "$(if,$(getvar,gridmode),$(rtos,$(getvar,gridunit)))"
    )
  )
)

If you use the Aspect option [different values in X and Y directions] for either, the above will display the X-direction value only.  It is probably possible to show both, with some additional code.

 

That will be present in both Model and Paper space, so it will be redundant with the icons to its right when in Model space, except for its also showing the values when on.

 

If you have the Grid set to follow the Snap setting, it will show the Grid value as zero [when the Grid is on].

 

[Since it establishes itself only at Startup, you need to re-start AutoCAD after you save it.]

Kent Cooper, AIA
Message 22 of 27

dbroad
Mentor
Mentor

@syanchuck All model geometry should be drawn in model space.  You can create viewports in paper space to that drawing's model space and can annotate and dimension in either paper or model space.  You can also xattach another drawing directly into paper space and scale it down to fit the paper to a standard scale.  Putting geometry in paper space will prevent that geometry from being able to be referenced in other drawings.

 

Only the titleblock and other annotative objects (titles, legends, tables, and sometimes dimensions and mleaders) along with viewports (both standard and viewbase created).

 

Unless your client is actually using AutoCAD, they will never know the difference.  Even if they do, you should clarify what they actually mean.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 23 of 27

Kent1Cooper
Consultant
Consultant

@dbroad wrote:

.... All model geometry should be drawn in model space. ....


I agree, but Snap and Grid are just as useful in Paper Space, even if the icons for them are not visible in the status bar or its customization list when you're there.

Kent Cooper, AIA
Message 24 of 27

syanchuck
Advocate
Advocate

Thank you very much, I will try it.
I am not that familiar with that setting, so I will let you know as soon as I tried it.

 

0 Likes
Message 25 of 27

syanchuck
Advocate
Advocate

I am doing Wiring Diagrams and Cable Assembly Drawings where is there several pages of BOMs, Wires Lists, etc and then several pages of models.
My client decided that all BOM, Wire Lists, etc should be created on the Paper space, what is does make sense because it shouldn't be on the same space.
But even if it wouldn't make any sense, if you customer want you to work on a Paper Space, you can't do anything with that. 

Anyways, that you for your advice.

0 Likes
Message 26 of 27

dbroad
Mentor
Mentor

@cadffm Good thinking.  Perhaps putting this into his acaddoc.lsp might be better though.

 

(setvar "modemacro" "$(if,$(=,0,$(getvar,tilemode)),$(if,$(=,1,$(getvar,gridmode)),Grid,) $(if,$(=,1,$(getvar,snapmode)),Snap,),)")

 

That will display "Grid Snap" if both modes are on and "Grid" or "Snap" if either mode was on but only while in paper space.  Thus this would not add extra buttons while in the model tab.  Only problem with this approach is that it may interfere with other uses of the modemacro. For example, I use it as a memory tool for bubble notes.  So when I type 1, it reports the note text that corresponds with that number.

 

The words Grid and Snap could be shortened to G and S to take up less space.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 27 of 27

cadffm
Consultant
Consultant

@dbroad  wrote:

@cadffm Good thinking. 


 

The other way is much more better powerful (a real button to toggle, highlighted if ON):

>>"You can add two buttons in the ribbon or you can (only)show the state to the Statusbar"

Syntax posted above..

Sebastian

0 Likes