Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Anonymous
403 Vistas, 1 Respuesta

Re: Object Snap setting

Hi, 

 

Whenever I open new CAD drawings, my object snap settings gets all unchecked. Is there a way to set a default to keep the object snap setting all checked whenever I open drawings?

 

Thanks. 

 

Regards, 

Anesah

Kent1Cooper
en respuesta a: Anonymous

The OSMODE System Variable holds that setting, and it's saved in the Registry, not in each drawing, so it appears there's something in the process of opening a drawing [whether new or existing] that must be turning them off.  It could be in an ACADDOC.lsp file, or not in that file itself but in something loaded by it, or something listed in the Startup Suite in the APPLOAD dialog box, or possibly something in a .MNL file.  There could be, for example, some custom command definition structured incorrectly, that is supposed to turn them off only within running the command, but with parentheses in the wrong place in the wrong way, could be turning them off outside it.

 

Osnap could be turned off in either of two ways -- either to set OSMODE to 0, or to add 16384 to the OSMODE value [that's what happens if you press F3 when Osnap is running].  If by "all unchecked" you mean literally no check marks in the boxes beside the mode names in the OSNAP dialog box, then it must be the former.  If they just don't operate but you haven't checked for the check marks, it could be either way, but you can find out -- press F3, and if it's 0, the Osnap dialog box will come up to ask you to select some, but if it's the add-16384 way, it will just turn on the ones already selected.

 

If you can't find some file which runs on opening that contains something like

 

(setvar 'osmode 0)

or

(command "_.osnap" "_none")

or

(command "_.osnap" "_off")

or

(command "_.osmode" 0)

 

or similar code involving adding 16384 to the current OSMODE value, then there is at least a workaround.  You could force the combination you prefer by including this in ACADDOC.lsp [and presumably at the end, so that if the problem is caused by loading anything else earlier in the file, it will overcome that]:

 

(setvar 'osmode 163)

 

[That's the combination I prefer -- you will probably want a different number.]

Kent Cooper, AIA