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
4646 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 2 of 31
nrz13
in reply to: nrz13

Wow, this is really messing me up.  Not only do I need to be able to snap to hatches to set specific reference points, but now I can also no longer snap light fixtures to our ceiling grid hatch.  This is seriously impeding my workflow.


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 3 of 31
nestly2
in reply to: nrz13

Is the problem only with "running" OSnaps?  ie can you OSnap to them if you manually specify an OSnap override within a command?

Message 4 of 31
nrz13
in reply to: nestly2

When I shift-right-click and select intersection, it gives me the intersection graphic and then snaps to every part of the hatch linework, so there's no way to snap it to an actual intersection.


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 5 of 31
Anonymous
in reply to: nrz13

Have you tried using the System variable Editor tool under Express tools?
Message 6 of 31
nrz13
in reply to: Anonymous

I have now, but the results are the same.


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 7 of 31
nestly2
in reply to: nrz13

Is the Lisp still running?

Message 8 of 31
nrz13
in reply to: nestly2

No, I removed it.  I mean, it was still a manual toggle that needed to be activated, but I removed it anyway thinking that might possibly be the problem.  It didn't help, though.


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 9 of 31
Anonymous
in reply to: nrz13

can you log in to your PC as a different user and then try using OSOPTIONS? You might have created a variable under local user in the registry and it might only be affecting your user account,

Message 10 of 31
nrz13
in reply to: Anonymous

Unfortunately, when I created a new Windows user profile and opened AutoCAD, the problem was still there.


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 11 of 31
zalant
in reply to: nrz13

If the behavior happens within a different Windows user profile, that indicates that the problem is not related to any specific user profile settings (assuming that you've tested with both existing drawings and new ones from default templates).  There is either now something fundamentally wrong with the installation of the program, or it's possible that modified startup LISP files are still in the Program Files folder for AutoCAD and are loading up at launch.  

 

To fully restore original functionality, without picking through things, uninstall completely, be sure that the folder for AutoCAD within Program Files is deleted, as well as those AutoCAD directories under your specific user folder (Local and Roaming), and then reinstall.  At that point, all should be back to Square One.  Once things are working in their default state, make a back-up of your settings with the Export tool in the Start menu folder for AutoCAD.  Then, try things out again with modifying variables and see how things go.  

 

One thing to be sure of is that the PREVIEWFILTER system variable is at least 16. This will cause Selection Preview to ignore hatch objects. That could ultimately have been what was causing your minute-long delay when going over a hatch object, as opposed to the object snap holding things up. 



Zac Travis
Message 12 of 31
nrz13
in reply to: zalant

If all that work is necessary, then I'll just use a restore image I have for my Windows installation.  Not ideal, but if I can't find another solution, that's what I'll have to do.  That would be a lot faster and reliable than trying to remove and reinstall AutoCAD.

By the way, setting PREVIEWFILTER to 16 did not reduce the lag going over hatches.  Setting the Object Snap Options to ignore hatch objects has been the only thing to work for me so far, which is not an ideal solution.


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 13 of 31
nrz13
in reply to: zalant

I restored my Windows installation only to discover that the problem has always been there in my installation.  My coworker's computer is running an identical hardware configuration and I used the same installer for both of our computers, but his is not having this problem.

I then followed the steps from Zac Travis above to uninstall and remove the user files in the Local and Roaming folders.  After verifying all the AutoCAD folders and files had been removed, I restarted the computer and did a new install.  After the installation completed, I did another restart and booted AutoCAD straight up without making any customization or other configuration changes.  The OSNAP hatch problem was still present.

I'm still really hoping this is a switch somewhere in the program that I can adjust, because I'm out of ideas.


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 14 of 31
GrantsPirate
in reply to: nrz13

I am seeing the same problem with hatch and osnap.  The only thing that works is to use appintersection and pick twice at the intersection or on individual lines in hatch.

 

2015 is staying on the shelf for now, in fact I have shelved 2014 and am back to 2013.


GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

Message 15 of 31
nrz13
in reply to: GrantsPirate

Thanks for the tip, GrantsPirate.  The Shift-Right-click > Select Intersection > Click Intersection > Click Intersection Again method is painfully slow compared to the Click Intersection method it should be, but at this point, it's better than nothing.

Also, glad I'm not the only one experiencing this peculiar behavior.  Maybe there's a chance it will be fixed.


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 16 of 31
zalant
in reply to: nrz13

After a bit of checking, the lack of hatch intersection snapping has been logged with our software engineers and they're looking to resolve it.



Zac Travis
Message 17 of 31
nrz13
in reply to: zalant

Thanks


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 18 of 31
Anonymous
in reply to: nrz13

Hi Any update on this? It strangely worked for me once, now my customer is calling me a liar..

Message 19 of 31
zalant
in reply to: Anonymous

Nothing as of yet.  Research is ongoing for a potential future service pack release.



Zac Travis
Message 20 of 31
Anonymous
in reply to: zalant

So the Service Pack 2 is released and the issue is still not fixed...... Zero kudos!

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

Post to forums  

Autodesk Design & Make Report

”Boost