.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Temporarily adjust Snaps

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
SRSDS
394 Views, 2 Replies

Temporarily adjust Snaps

Hi all,

 

I want to temproarily adjust the snap mode to nearest only.

Dim sval As String = Application.GetSystemVariable("OSMODE")

sval = "4133"

I know can change this variable using Application.SetSystemVariable("OSMODE", Val) but have no idea what value to change it to.

Rather than troubling the forum, is there some reference I should be looking at for this sort of thing?

 

 

 

2 REPLIES 2
Message 2 of 3
Alfred.NESWADBA
in reply to: SRSDS

Hi,

 

the easiest way is to change the obectsnap in the osnap-settings-dialog to what you want to be, close the dialog and look to the sysvar OSMODE. 😉

 

And in the help you can also see the details for OSMODE >>>here<<<

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 3
SRSDS
in reply to: Alfred.NESWADBA

Hi Alfred,

Thanks again.

Application.SetSystemVariable("OSMODE", 512)

I don't know how this works but hope you get paid for your time here!! 

 

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost