<?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: Command alias only works after going into the ALIAS command in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/command-alias-only-works-after-going-into-the-alias-command/m-p/9876680#M343677</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/274358"&gt;@rkmcswain&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;DIV style="font-size: 1.1em; font-family: 'Artifakt'; line-height: 1.3em; margin: 15px 100px 80px 100px;"&gt;
&lt;P&gt;You could also toggle it with one command.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(DEFUN c:uf (/)
  (setvar "UCSFOLLOW"(boole 6 1(getvar "UCSFOLLOW")))
  (princ)
)&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Or, in the case of a System Variable with only 0 and 1 values like this one, just subtract the current value from 1 to get the other value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(defun C:UF ()&lt;BR /&gt;&amp;nbsp; (setvar 'UCSFOLLOW &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;(- 1&lt;/STRONG&gt;&lt;/FONT&gt; (getvar 'UCSFOLLOW)))&lt;BR /&gt;&amp;nbsp; (princ)&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2020 22:34:49 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2020-11-17T22:34:49Z</dc:date>
  </channel>
</rss>

