Author Topic: Not my field [just don't have I.T.]  (Read 898 times)

0 Members and 1 Guest are viewing this topic.

ScottMC

  • Newt
  • Posts: 191
Not my field [just don't have I.T.]
« on: September 26, 2022, 07:52:58 PM »
Hopes are someone has done this and can just forward me.. can't get the 'check' to show when this OSMODE is set.
ID_OsnapNone   [$(if,$(!=,$(and,$(getvar,OSMODE),    0),0),!.)None    non]_non
......................................The others [other than this /0\ thing] work fine. How else to call/get? Help..
« Last Edit: September 27, 2022, 10:05:26 PM by ScottMC »

tombu

  • Bull Frog
  • Posts: 289
  • ByLayer=>Not0
Re: Not my field [just don't have I.T.]
« Reply #1 on: September 28, 2022, 10:21:49 AM »
In my Osnap Cursor Menu I use this macro that displays if Osmode is set to None and toggles it On when selected:
Display Name      $(if,$(=,0,$(getvar,osmode)),!.)None
Command Name  None
Macro                 ^C^C^P'setvar;osmode;0 ^P
Image                 RCDATA_16_OSNNON
Tom Beauford P.S.M.
Leon County FL Public Works - Windows 7 64 bit AutoCAD Civil 3D

ScottMC

  • Newt
  • Posts: 191
Re: Not my field [just don't have I.T.]
« Reply #2 on: September 28, 2022, 11:07:13 AM »
this is where it doesn't work [wheel click]
 
Code: [Select]
***POP0
**SNAP
               [Object Snap Cursor Menu]
;
;
ID_Cancel      [          *Cancel*]^C^C
               [--]
ID_OsnapNear   [$(if,$(!=,$(and,$(getvar,OSMODE),  512),0),!.)Nearest nea]_nea
ID_OsnapNone   [$(if,$(!=,$(and,$(getvar,OSMODE),    0),0),!.)None non]_non
ID_OsnapEndp   [$(if,$(!=,$(and,$(getvar,OSMODE),    1),0),!.)Endpoint end]_endp
ID_OsnapMidp   [$(if,$(!=,$(and,$(getvar,OSMODE),    2),0),!.)Midpoint mid]_mid
ID_LastPoinp   [Lastpoint_@]@;
;
;

tombu

  • Bull Frog
  • Posts: 289
  • ByLayer=>Not0
Re: Not my field [just don't have I.T.]
« Reply #3 on: September 28, 2022, 11:50:00 AM »
That's because None means No Osnaps are active meaning OSMODE must equal 0.
All other Osnaps may be toggled on/off without affecting the others but setting None turns off all Osnaps.
Change it to
Code: [Select]
$(if,$(=,0,$(getvar,osmode)),!.)None
Tom Beauford P.S.M.
Leon County FL Public Works - Windows 7 64 bit AutoCAD Civil 3D

ScottMC

  • Newt
  • Posts: 191
Re: Not my field [just don't have I.T.]
« Reply #4 on: September 28, 2022, 12:19:52 PM »
Magnificent!  Works perfect. Thanks Much. This part of understanding is under lisp major. So glad theswamp survived its oops/clean-up over the weekend!