My Photo

October 2018

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

« Another Way of Setting Favorites in HydraLIST | Main | Upgrading my Machine from XP to Windows 7 64-bit »

November 24, 2010


James Litvak

I've had trouble with my osnaps getting overridden since I started using HydraCAD 6 years ago. At first I would go into the Drawing Settings (DS) and reselect the osnaps I use every time. I eventually learned of a command to set osnaps without having to open the Drawing Settings dialog. It is called OSMODE. The command is entered followed by a number that determines which osnaps are selected. The individual indentifier for each osnap is available in the help file. The number for each desired osnap is added and the sum is entered after OSMODE. To further this solution, I made a shortcut key with the macro "OSMODE ##". For my own purposes, I use endpoint, midpoint, insertion, center, and node, which is OSMODE 47. I've mapped it to the shortcut key combination CTRL+R. So now, whenever I find that my osnaps have been turned off, or changed, I type CTRL+R and they all come right back. I've actually made the macro "^POSMODE 47" so that way it cancels out of any active command and then resets my osnaps. I've found this to be incredibly helpful.


I have created a very similar routine using OSMODE, for my purposes, I mapped osnaps to the number keypad using transparent modifiers. Using this method I'm able to change or cancel osnaps on the fly without canceling my durrent command.

James Litvak

Would you mind explaining how to use a transparent modifier? I used to have a lsp file that would make '' (apostrophe apostrophe) be my mid-command command for "mid between two points" but for some reason it doesn't work anymore on AutoCAD 2011.


I created this a while back with an earlier version of Autocad, with the use of the .mns file, which are no longer in use, but can ?? be brought into newer versions of Autocad.

I did a search on my computer and found the .mns file that contained text for these commands.


I hope this information in some way helps you. I'm not knowledgeable in programming or .lisp and it's entirely possible this will not work in 2011.


Randy - Yes that will work. You can also bring it in as a partial CUI and transfer the keyboard shortcut to our full menu!


I have used AutoCad fo a loong time and I don't really find HydraCad snaps useful for me.
I use Razer Naga Mouse and made a macro turning on the snaps I need in order to deal with this little annoyance:
OSMODE [spacebar] 163 [enter] It helps me dimension the drawing to get it ready for the foreman.

163 is the sum for the following snaps: Endpoint, Midpoint, Intersection and Perpendicular.
Link below shows the numerical value corresponding to the osnaps.,topicNumber=d0e352473

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Your Information

(Name is required. Email address will not be displayed with the comment.)