I've been doing a little experimentation today with the boole function. Trying to understand it beter. I decided to look into boole 8 (and's compliment). Here are my findings:
Set my osmode to 6175, I started off with 15359, as you see below.
Command: osmode
Enter new value for OSMODE <0>: 6175
Command: (setvar 'osmode (boole 8 (getvar 'osmode)15359))
Error: AutoCAD variable setting rejected: OSMODE -15360
Error: Function Cancelled.
I errored out above, noting that osmode can't take negative numbers. I also noted that the number was increased by 1 as well as being inversed. Solution below:
Command: (setvar 'osmode (boole 8 (getvar 'osmode) (- 15359)))
9184
Command: (setvar 'osmode (boole 8 (getvar 'osmode) (- 15359)))
6174
Command: (setvar 'osmode (boole 8 (getvar 'osmode) (- 15359)))
9184
Command: (setvar 'osmode (boole 8 (getvar 'osmode) (- 15359)))
6174
Something's not right here. 9184 is the complement to 6175, but when inverted again, the osmode number 6174 is placed. This removes endpoint. This seems very odd. I decided to see if I could increase the entire thing to see what would happen. Note below:
Command: (setvar 'osmode (1+ (boole 8 (getvar 'osmode) (- 15359))))
9185
Command: osnap
Command:
Command: (setvar 'osmode (1+ (boole 8 (getvar 'osmode) (- 15359))))
6175
Well, that works for 6175, but it also increases the inverse to 9185. That I would assume, but I had to see it first hand.
Next thought, increase 15359 to 15360, or in this case, decrease it, since it's a negative number. See below:
Command: (setvar 'osmode (boole 8 (getvar 'osmode) (- 15360)))
9184
Command: (setvar 'osmode (boole 8 (getvar 'osmode) (- 15360)))
6175
Command: (setvar 'osmode (boole 8 (getvar 'osmode) (- 15360)))
9184
Problem solved. Now, since 15359 is the addition of all osmode flags, why does it need to be increased to 15360 to work? I've also noticed that flag 1024 is missing from osnaps. Is this flag what used to be tracking? Does anybody remember?