Message 1 of 5
Button to change osnaps during lisp command

Not applicable
01-13-2018
09:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
With the freezing temperatures today, I'm having a brain freeze.
For each user, I store an osmode number to variable User_Osnap_Number
In the menu I have a button with the following -
'setvar osmode !User_Osnap_Numer
If the user is running an AutoCAD command, selecting the button sets the osnap
If they are running an AutoLISP command, selecting the button does the following -
Pick INSERTION Point for 'NAC' device ? 'setvar >>Enter variable name or [?] <OSMODE>: osmode
>>Enter new value for OSMODE <16483>: !user_osnaps_Number
Requires an integer between 0 and 32767.
>>Enter new value for OSMODE <16483>: *Cancel*
Resuming IB command.
But doesn't change the osmode value