Set OSMODE variable value using bitcode sum total

Set OSMODE variable value using bitcode sum total

shirishjadhav83
Explorer Explorer
615 Views
6 Replies
Message 1 of 7

Set OSMODE variable value using bitcode sum total

shirishjadhav83
Explorer
Explorer
  • Set snap point setting using Autolisp

1.JPG

2.JPG

3.JPG

616 Views
6 Replies
Replies (6)
Message 2 of 7

paullimapa
Mentor
Mentor

Never check nearest otherwise AutoCAD would not object snap exactly to any of the selections chosen but only close to them which is what nearest means. Then you’ll end up with an inaccurate digital file. 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 7

tramber
Advisor
Advisor

I've always used Nearest since 2000 and I am a very reputated drafter 😅

If i wanted, i could write a book about object snaping.

The best to know is what people don't know : the variables APERTURE and APBOX. Once you manage and understand them + some concepts, then you can check whatever you want 😎

Is that what you are looking for ?

(defun BITS_LST(num / n lst)
  (setq n 0)(while(<= (expt 2 n)num)(setq n(1+ n)))(while(< 0 n)(setq n(1- n))(if(=(logand num(expt 2 n))(expt 2 n))(setq lst(cons(expt 2 n)lst))))lst)
(BITS_LST 767)

If you are looking for something ?


EESignature

Message 4 of 7

TheCADnoob
Mentor
Mentor

1024 is not apparent intersection, it appears t be geometric center now

 

TheCADnoob_0-1689606197160.png

 

 

https://help.autodesk.com/view/ACD/2020/ENU/?guid=GUID-DD9B3216-A533-4D47-95D8-7585F738FD75

CADnoob

EESignature

0 Likes
Message 5 of 7

Kent1Cooper
Consultant
Consultant

@tramber wrote:

I've always used Nearest since 2000 and I am a very reputated drafter....


... with a reputation for...?  If you're talking about including NEArest among "running" Object Snap modes, I have to agree with @paullimapa that it should never be included there, because it will almost always "win" over whatever other mode(s) you have set [I can think of one particular circumstance in which it would not], often giving you an unintended result.  If I had it running, I would constantly be Tabbing through the possible applicable modes to get to the one I intend when NEArest would otherwise overrule the other(s) -- maybe that's what you do.  Yes, I use NEArest, too, but not as a running mode, only calling for it specifically when needed.

Kent Cooper, AIA
0 Likes
Message 6 of 7

tramber
Advisor
Advisor

Can't agree ! 🤠

Everyone must know how to make an osnap "winning" :

-TAB

-Forcing (Shift or Ctrl + right -click, using the keyboard or even a button on the toolbar)

-wheeling the right zoom being aware of APBOX

....

 

@paullimapa  said "never" and I never say "never".  That's what I mean. Anyone can have his own style.


EESignature

0 Likes
Message 7 of 7

handjonathan
Autodesk
Autodesk

Hi @shirishjadhav83 

Thanks a lot for posting your question to the forums!   Have the solutions suggested by @tramber @Kent1Cooper @TheCADnoob @paullimapa  elped with your issue?

We look forward to hearing back from you with more information so we can help you as a community! 



Jonathan Hand


Technical Marketing Manager | Construction

0 Likes