I was playing with AutoCAD today to improve performance until AMD releases updated drivers for AutoCAD 2015 and I seem to have broken the OSOPTIONS system variable.
We normally have the OSOPTIONS system variable set to "2" (only ignoring negative Z values). It is occasionally useful to snap to a hatch pattern, but I changed the OSOPTIONS system variable to "3" to ignore hatches for now because passing over a hatch mid-command bogs the computer down for many seconds, sometimes over a minute.
Tiring of switching back and forth today, I added this to my startup LISP so I could toggle quickly back and forth:
(DEFUN C:HS ()(if (= 3 (getvar "OSOPTIONS"))(setvar "OSOPTIONS" 2)(setvar "OSOPTIONS" 3))(PRINC))
However, now when I try to set it back to no longer ignore hatch objects, the osnaps for midpoints and endpoints are the only ones that show up -- none for intersections or any other snaps anymore.
I tried setting it to the default of 7 and also 0 before resetting it back to 2. I tried going through the options dialog to change it back that way, but still it won't snap to intersections anymore. My Object Snap options show intersections checked and intersections for non-hatches still work (see attachments below).
Is there a way to reset this back to how it's supposed to be?
Solved! Go to Solution.
Solved by nrz13. Go to Solution.
Confirmed here too. This bug is still present even with SP2 installed.
This command or system variable is not documented in the Help system for one of several reasons, including
Use Search to find additional information about the feature in which you are interested, and the documented commands and system variables associated with it.
-------------------------
So with we could snap to hatches again... in 2015
I worry about a drawing with too many groups, but it's a workaround for now.
I just discovered that if you change the line type of your hatch to something other than "continuous"- like "hidden" for example- then OSNAP snaps to intersections in the hatch.
So, until a fix is created my solution to creating reflecting ceiling plans is to change the line type to something other than continuous while placing lights, etc and then change it back once finished.
Just thought I'd share!
Good catch! Another way to use that work-around is to put it on "hidden" and set the linetype scale really high so that it reads continuous.
AutoCAD 2016 SP1 fixed this issue on my work computer (didn't appear to work on my home computer, though):
It's working on my home computer now too, so this issue is resolved for me.
My company still has this same issue. I notice that the problem only happens to certain people. All of our settings for OSOPTIONS are the same but some people still can't snap to hatch. Are there any new updates to this?
Are you running AutoCAD 2016 SP1 or AutoCAD 2017? As I mentioned in my accepted solution, service pack 1 fixed my 2016 installation. I have 2017 installed now at home, but that computer is not working at the moment, so I can't test 2017 for you.