Jump to content

Osnaps


Recommended Posts

I typically draft with about 2/3 of the osnaps on (checked). But sometimes I need to do a series of commands with only circles, so I only want the "Center" selected. So I "Clear all" select "center", do my thing and then pick my usual list back on again.

Is there a faster way to do this? Kind of like layer states but for Osnaps.

Link to comment
Share on other sites

You could create a macro, or shortcut, toolbar button, QAT button, tool palette button, etc. to set each mode as needed.

(setvar "OSMODE" 4)
;; will set the object snap to "CEN" only

(setvar "OSMODE" 169)
;; will set the object snap to PER, INT, NOD, END

 

Look up OSMODE in HELP. Add the bitcode values to come up with the integer to use in your code.

Link to comment
Share on other sites

you could just turn the osnaps toolbar on and just click the circle when u need it or hold shift in and right click while in a command it gives you the osnaps list.

Link to comment
Share on other sites

you could just turn the osnaps toolbar on and just click the circle when u need it or hold shift in and right click while in a command it gives you the osnaps list.

 

If you don't use running object snaps, yes. But that doesn't allow you to change from one 'set of running osnap settings' to another.

Link to comment
Share on other sites

To find the osmode number dont add the bitcodes just set it to what you want then (getvar "osmode") displays number.

 

we have some shorthand defuns just type the number

 

(defun C:39()

(setvar "osmode" 39)

)

Link to comment
Share on other sites

To find the osmode number dont add the bitcodes just set it to what you want then (getvar "osmode") displays number.

 

Either way works. :wink:

Link to comment
Share on other sites

  • 1 month later...

you can also use the "mbuttonpan" command and set the variable to zero

which will display the osnap list. even in the middle of a command.

you can then pick which osnap you need on the screen

or hit hte corresponding letter to the osnap you need

e-endpoint

s-insertion

i-intersection

c-center

m-midpoint

q-quadrant

r-nearest

p-perpendicular

g-tangent

Link to comment
Share on other sites

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...