Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting OSOPTIONS to snap to intersections

30 REPLIES 30
SOLVED
Reply
Message 1 of 31
nrz13
4632 Views, 30 Replies

Getting OSOPTIONS to snap to intersections

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?


Work:  AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-8700K, 32GB RAM, Samsung 960 Pro SSD, AMD Radeon Pro WX 5100, 3 Dell Monitors (3840x2160)
Home: AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-11700, 64GB RAM, Samsung 980 Pro SSD, NVIDIA Quadro P2200, Dell Monitor (3840x2160)
30 REPLIES 30
Message 21 of 31
Ghaynes
in reply to: tmsz3

Hi to All

 

My Customer reports that SP2 has NOT resolved this issue. Please can we have an update, thanks.

Message 22 of 31
nrz13
in reply to: Ghaynes

Confirmed here too.  This bug is still present even with SP2 installed.


Work:  AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-8700K, 32GB RAM, Samsung 960 Pro SSD, AMD Radeon Pro WX 5100, 3 Dell Monitors (3840x2160)
Home: AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-11700, 64GB RAM, Samsung 980 Pro SSD, NVIDIA Quadro P2200, Dell Monitor (3840x2160)
Message 23 of 31
Sabrina_Pilon
in reply to: nrz13

In AutoCAD 2015 Help File when typing in OSNAPHATCH:  
 
Undocumented Command or System Variable

This command or system variable is not documented in the Help system for one of several reasons, including

  • It is obsolete, but included in the product to maintain legacy script compatibility
  • It was included for testing purposes and has limited or no functionality
  • It is a special case of a similar, documented command and is used in the menu or the ribbon only

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

Message 24 of 31

Also from the help file in AutoCAD 2015:
 
Intersection object snap does not work on hatch patterns in AutoCAD 2015
 
Nov 01, 2014
 
Issue:When attempting to snap to the intersection within a hatch pattern in AutoCAD, the snap icon does not appear and no object snap occurs. Other types of snap (other than intersection) do work with the hatch object.
 
Solution:To work around this problem, you may use other object snaps, osnap tracking, or explode the hatch. Additionally, theintersection call does bring up the extended intersection. Pick a point near where you are trying to select. It will be able to find an intersection if the first point of where the selection will occur is picked.
 
Products:AutoCAD;AutoCAD Architecture;AutoCAD Civil 3D;AutoCAD ecscad;AutoCAD Electrical;AutoCAD LT;AutoCAD Map 3D;AutoCAD Mechanical;AutoCAD MEP;AutoCAD P ID;AutoCAD Plant 3D;AutoCAD Structural Detailing
Versions:2015
 
------------
Unfortunately the extended intersection option doesn't really work; other OSNAPs don't work.
 
My workaround:
  • put in the hatch
  • explode the hatch
  • convert the hatch into a group

I worry about a drawing with too many groups, but it's a workaround for now.

Message 25 of 31
SReese1128
in reply to: zalant

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!

Tags (3)
Message 26 of 31
nrz13
in reply to: SReese1128

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.


Work:  AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-8700K, 32GB RAM, Samsung 960 Pro SSD, AMD Radeon Pro WX 5100, 3 Dell Monitors (3840x2160)
Home: AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-11700, 64GB RAM, Samsung 980 Pro SSD, NVIDIA Quadro P2200, Dell Monitor (3840x2160)
Message 27 of 31
nrz13
in reply to: nrz13

AutoCAD 2016 SP1 fixed this issue on my work computer (didn't appear to work on my home computer, though):

http://knowledge.autodesk.com/support/autocad/downloads/caas/downloads/content/autocad-2016-service-...


Work:  AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-8700K, 32GB RAM, Samsung 960 Pro SSD, AMD Radeon Pro WX 5100, 3 Dell Monitors (3840x2160)
Home: AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-11700, 64GB RAM, Samsung 980 Pro SSD, NVIDIA Quadro P2200, Dell Monitor (3840x2160)
Message 28 of 31
nrz13
in reply to: nrz13

It's working on my home computer now too, so this issue is resolved for me.


Work:  AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-8700K, 32GB RAM, Samsung 960 Pro SSD, AMD Radeon Pro WX 5100, 3 Dell Monitors (3840x2160)
Home: AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-11700, 64GB RAM, Samsung 980 Pro SSD, NVIDIA Quadro P2200, Dell Monitor (3840x2160)
Message 29 of 31
asteffy8EBGNA
in reply to: nrz13

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? 

Message 30 of 31
nrz13
in reply to: asteffy8EBGNA

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.


Work:  AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-8700K, 32GB RAM, Samsung 960 Pro SSD, AMD Radeon Pro WX 5100, 3 Dell Monitors (3840x2160)
Home: AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-11700, 64GB RAM, Samsung 980 Pro SSD, NVIDIA Quadro P2200, Dell Monitor (3840x2160)
Message 31 of 31
asteffy8EBGNA
in reply to: nrz13

I am running 2015 with SP2 installed. 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost