Cholomanchuten Posted July 27, 2010 Posted July 27, 2010 The question says it all: How do I (De)Activate OSNAP or ORTHO from script? I don't find a "written" way to toggle the OSNAP button, because "-osnap" only access the snapping options, but doesn't toggle it. Also, If I click it manually, in the command bar I can see , but if I write this line, it doesn't seem to work. Anybody? You know, I have pretty much worked a Scripting database with my last 10 threads, all referring to scripting. There's a lot of unknown dark areas in this topic. Quote
alanjt Posted July 27, 2010 Posted July 27, 2010 F3 - Toggle OSnaps F8 - Toggle OrthoMode Also, holding the Shift key down will temporarily toggle OrthoMode. Quote
Cholomanchuten Posted July 27, 2010 Author Posted July 27, 2010 Thank you for your answer but it isn't quite what I need. Of course, that's well known the F3 and F8, but i need a way to do it through the command bar, so that i can run it from a script. Quote
alanjt Posted July 27, 2010 Posted July 27, 2010 TOGGLE: (setvar 'orthomode (abs (1- (getvar 'orthomode)))) OFF: (setvar 'orthomode 0) Quote
eldon Posted July 27, 2010 Posted July 27, 2010 You can de-activate OSNAP by setting OSMODE to 0 at the command line. But because OSNAP can be set to differing modes, you would have to check what value OSMODE was set to, so you could set it back afterwards. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.