<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Visually See if SNAP is ON via color Swatch? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5676301#M140834</link>
    <description>&lt;P&gt;Isn't the status tabs at the bottom of thr screen (ORTHO, OSNAP, SNAP, etc.) work for you? The tabs change between dark and light indicating status of OFF and ON&lt;/P&gt;</description>
    <pubDate>Sat, 13 Jun 2015 16:07:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-13T16:07:35Z</dc:date>
    <item>
      <title>Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5675177#M140833</link>
      <description>&lt;P&gt;We use SNAP when we draw and as a trainer I would like to easily see if someone has SNAP ON or OFF with a color swatch displayed on the ribbon panel. Is there a way to display a green swatch that is large enough to see from a distance if SNAP is ON and it turn RED if SNAP is OFF? Some folks use the classic toolbar menu as well so the swatch for that would have to be located at the bottom left of the menu in the startup. If someone could show me how to show this color switch in a&amp;nbsp;Ribbon panel setting and as lower left corner of classic window setting that would be fantastic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John W.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 14:30:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5675177#M140833</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2015-06-12T14:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5676301#M140834</link>
      <description>&lt;P&gt;Isn't the status tabs at the bottom of thr screen (ORTHO, OSNAP, SNAP, etc.) work for you? The tabs change between dark and light indicating status of OFF and ON&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2015 16:07:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5676301#M140834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-13T16:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5676329#M140835</link>
      <description>They don't work from a distance. That's why I requested this.</description>
      <pubDate>Sat, 13 Jun 2015 16:57:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5676329#M140835</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2015-06-13T16:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5676330#M140836</link>
      <description>They don't work from a distance. That's why I requested this.</description>
      <pubDate>Sat, 13 Jun 2015 16:57:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5676330#M140836</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2015-06-13T16:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5676809#M140837</link>
      <description>&lt;P&gt;The only example I found for a toolbar...&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.theswamp.org/index.php?topic=49071.msg541859#msg541859"&gt;http://www.theswamp.org/index.php?topic=49071.msg541859#msg541859&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2015 21:33:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5676809#M140837</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2015-06-14T21:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5678407#M140838</link>
      <description>(setvar "MODEMACRO" "$(if,$(getvar,snapmode), Snap is ON, Snap is OFF)")&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jun 2015 22:34:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5678407#M140838</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2015-06-15T22:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5678420#M140839</link>
      <description>Any way to display a color green if it's on and color red if it's off?</description>
      <pubDate>Mon, 15 Jun 2015 23:03:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5678420#M140839</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2015-06-15T23:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5681077#M140840</link>
      <description>&lt;P&gt;Why not to change the color &lt;STRONG&gt;OF THE CROSSHAIR&lt;/STRONG&gt;!?&lt;/P&gt;&lt;P&gt;; ))&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 14:48:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5681077#M140840</guid>
      <dc:creator>alexKoshman</dc:creator>
      <dc:date>2015-06-17T14:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5681101#M140841</link>
      <description>&lt;P&gt;Sounds like a great idea! I have a routine that someone wrote that changes my crosshairs to RED when I'm in paperspace and WHITE when in model space (see attached lisp routine - i had to change extension to .txt for attachment to load). How would I add changing the color to PURPLE if SNAP IS OFF in Either paper or model space???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 15:01:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5681101#M140841</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2015-06-17T15:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5681434#M140842</link>
      <description>&lt;P&gt;You have to fully rewrite this example program with&amp;nbsp;"VLR-SysVarChanged" Reactor for catching user changes the "SNAPMODE" system variable and then change the "ModelCrosshairColor" or " "LaypoutCrosshairColor" Property for Model or Model depending on your current Space!&lt;/P&gt;&lt;P&gt;; ))&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 18:14:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5681434#M140842</guid>
      <dc:creator>alexKoshman</dc:creator>
      <dc:date>2015-06-17T18:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5681464#M140843</link>
      <description>&lt;P&gt;Sorry, I don't have a clue on how to do this.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 18:26:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5681464#M140843</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2015-06-17T18:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5682425#M140844</link>
      <description>&lt;P&gt;Sorry! But I have no time to write it now!..&lt;/P&gt;&lt;P&gt;Maybe on weekend?..&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 09:44:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5682425#M140844</guid>
      <dc:creator>alexKoshman</dc:creator>
      <dc:date>2015-06-18T09:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5682469#M140845</link>
      <description>&lt;P&gt;an Example...&amp;nbsp;&lt;SPAN style="line-height: 15px;"&gt;&lt;A target="_blank" href="http://ww3.cad.de/foren/ubb/Forum145/HTML/004108.shtml"&gt;http://ww3.cad.de/foren/ubb/Forum145/HTML/004108.shtml&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Best Regards Martin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 10:38:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5682469#M140845</guid>
      <dc:creator>martin_leiter</dc:creator>
      <dc:date>2015-06-18T10:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5682485#M140846</link>
      <description>&lt;P&gt;You mean that of cause:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;(vla-put-ModelCrosshaircolor (vla-get-display (vla-get-preferences (vlax-get-acad-object)))&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; (cdr (assoc 420 (acad_truecolordlg (cons 420 16777215))))&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because we mustn't use "setvar" (see there below) in Reactors for variables changing...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 10:57:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5682485#M140846</guid>
      <dc:creator>alexKoshman</dc:creator>
      <dc:date>2015-06-18T10:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5683162#M140847</link>
      <description>Do I insert these lines of code inside the file I attached earlier or insert it into the acad.lsp file? Not sure...</description>
      <pubDate>Thu, 18 Jun 2015 15:41:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5683162#M140847</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2015-06-18T15:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5683178#M140848</link>
      <description>&lt;P&gt;They ARE in the code already!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I told&amp;nbsp;this to &lt;STRONG&gt;martin.leiter&lt;/STRONG&gt;...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 15:47:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5683178#M140848</guid>
      <dc:creator>alexKoshman</dc:creator>
      <dc:date>2015-06-18T15:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5683300#M140849</link>
      <description>&lt;P&gt;I'm sorry I don't understand what you mean. If you added this code to my original attachment can you attach the revised code so I can download it. Or if I need to do something on my end please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 16:31:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5683300#M140849</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2015-06-18T16:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5684266#M140850</link>
      <description>&lt;P&gt;Attached file is code for the reactor part.&lt;/P&gt;
&lt;P&gt;I was not sure how to handle the "answer" in a timely manner.&lt;/P&gt;
&lt;P&gt;However, the attached file reactor does work with limited testing. Remove the ".TXT" extension.&lt;/P&gt;
&lt;P&gt;I am also displaying the code here with revisions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;;; System Variable Changed Exercise

(vl-load-com)
(vlr-sysvar-reactor nil '((:vlr-sysVarChanged . Sys_Var_Chg_SNMODE)))

(defun Sys_Var_Chg_SNMODE (obj lst / )
 (if (and (= (car lst) "SNAPMODE") (cdr lst))
  (if (= (getvar "SNAPMODE") 0)
   ;change crosshair color to RED here.&lt;BR /&gt;   ;change crosshair color to GREEN here.
  );if
 );if
 (princ)
);end Sys_Var_Chg_SNMODE

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good Luck.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 22:51:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5684266#M140850</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2015-06-18T22:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5685306#M140851</link>
      <description>&lt;P&gt;Thanks Scott, I got this working in modelspace! Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank all of you for your comments and help!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2015 14:48:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5685306#M140851</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2015-06-19T14:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Visually See if SNAP is ON via color Swatch?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5685891#M140852</link>
      <description>Just an additional thought...&lt;BR /&gt;The crosshair color is recorded into the registry when editor is closed.&lt;BR /&gt;By opening another file that has the opposite setting of SNAPMODE&lt;BR /&gt;the color would be wrong.&lt;BR /&gt;To fix this, add code inside S::STARTUP (or equal):&lt;BR /&gt; (vl-load-com)&lt;BR /&gt; (if (= (getvar "SNAPMODE") 0)&lt;BR /&gt;  ;change crosshair color to RED here.&lt;BR /&gt;  ;change crosshair color to GREEN here.&lt;BR /&gt; );if&lt;BR /&gt;&lt;BR /&gt;???&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jun 2015 22:34:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visually-see-if-snap-is-on-via-color-swatch/m-p/5685891#M140852</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2015-06-19T22:34:10Z</dc:date>
    </item>
  </channel>
</rss>

