<?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: UCSICON toggle by mistake in the macro in CUI in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7503657#M112778</link>
    <description>&lt;P&gt;Can i use Lisp instead of Diesel in the macros?&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2017 04:11:50 GMT</pubDate>
    <dc:creator>Karol-Or</dc:creator>
    <dc:date>2017-10-31T04:11:50Z</dc:date>
    <item>
      <title>UCSICON toggle by mistake in the macro in CUI</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7502272#M112774</link>
      <description>&lt;P&gt;I know very little of lisp. i copied the UCSICON on origin in the list of commands in the panels in CUI and somehow changed it to:&lt;/P&gt;
&lt;P&gt;$M=$(if,$(and,$(getvar,ucsicon),2),^C^C_ucsicon _no,^C^C_ucsicon _or)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why is the first part (&lt;SPAN&gt;^C^C_ucsicon _no)? can't i jump directly to what i want:&amp;nbsp;^C^C_ucsicon _or&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Why does it toggle?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See the screencast&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="2768895f-5a00-4b41-a9d8-115600708fef" class="myscreencast-iframe iframe-container active-myscreencast"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/2768895f-5a00-4b41-a9d8-115600708fef" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" style="display: inline;"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Oct 2017 16:31:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7502272#M112774</guid>
      <dc:creator>Karol-Or</dc:creator>
      <dc:date>2017-10-30T16:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: UCSICON toggle by mistake in the macro in CUI</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7502413#M112775</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/936694"&gt;@Karol-Or&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;.... i copied the UCSICON on origin in the list of commands in the panels in CUI and somehow changed it to:&lt;/P&gt;
&lt;P&gt;$M=$(if,$(and,$(getvar,ucsicon),2),^C^C_ucsicon _no,^C^C_ucsicon _or)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why is the first part (&lt;SPAN&gt;^C^C_ucsicon _no)? can't i jump directly to what i want:&amp;nbsp;^C^C_ucsicon _or&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Why does it toggle?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="2768895f-5a00-4b41-a9d8-115600708fef" class="myscreencast-iframe iframe-container active-myscreencast"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm not at a newer-version location to confirm, and I'm not all that conversant with Diesel syntax, but just looking at it....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note the &lt;STRONG&gt;if&lt;/STRONG&gt; near the beginning. &amp;nbsp;It looks like [but I'm confused by the &lt;STRONG&gt;and&lt;/STRONG&gt; in there] it's checking whether the UCSICON System Variable is set to 2, which is the show-it-at-the-Origin-if-possible setting. &amp;nbsp;The first part following [&lt;SPAN&gt;^C^C_ucsicon _no]&amp;nbsp;&lt;/SPAN&gt;would be the 'then' expression -- if it's currently in Origin mode, set it to No-origin mode. &amp;nbsp;The second part [&lt;SPAN&gt;^C^C_ucsicon _or] would be the 'else' expression -- if it's &lt;EM&gt;not&lt;/EM&gt;&amp;nbsp; in Origin mode, set it to be. &amp;nbsp;That's the toggling -- set it to whichever of those two it's not currently set to.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you always want the button to only set it to Origin mode, whether or not that's the current setting, you should be able to eliminate the whole (if) aspect, and just do the part you want:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;^C^C_ucsicon _or&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 17:13:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7502413#M112775</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-10-30T17:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: UCSICON toggle by mistake in the macro in CUI</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7502888#M112776</link>
      <description>&lt;P&gt;So the macro is Diesel, not Lisp?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 19:48:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7502888#M112776</guid>
      <dc:creator>Karol-Or</dc:creator>
      <dc:date>2017-10-30T19:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: UCSICON toggle by mistake in the macro in CUI</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7503043#M112777</link>
      <description>&lt;P&gt;It's a combination of Diesel expressions [the parts with all the dollar signs] and plain command-macro language [the actual UCSICON commands]. &amp;nbsp;A lot of Diesel expressions look very similar to the equivalent AutoLisp functions in their parentheses and function names,&amp;nbsp;but&amp;nbsp;with grammatical-structure differences [the dollar signs, commas instead of spaces, etc.].&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 20:44:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7503043#M112777</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-10-30T20:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: UCSICON toggle by mistake in the macro in CUI</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7503657#M112778</link>
      <description>&lt;P&gt;Can i use Lisp instead of Diesel in the macros?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 04:11:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7503657#M112778</guid>
      <dc:creator>Karol-Or</dc:creator>
      <dc:date>2017-10-31T04:11:50Z</dc:date>
    </item>
    <item>
      <title>Betreff: UCSICON toggle by mistake in the macro in CUI</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7503841#M112779</link>
      <description>Menu-Macros (and Scripts.scr) send informations to commandline,&lt;BR /&gt;commandline accept and evaluate lisp statements.&lt;BR /&gt;Sure, you can.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Oct 2017 06:45:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7503841#M112779</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-10-31T06:45:25Z</dc:date>
    </item>
    <item>
      <title>Betreff: UCSICON toggle by mistake in the macro in CUI</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7504303#M112780</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 10:33:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7504303#M112780</guid>
      <dc:creator>Karol-Or</dc:creator>
      <dc:date>2017-10-31T10:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: UCSICON toggle by mistake in the macro in CUI</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7504382#M112781</link>
      <description>&lt;P&gt;Some [maybe most?] AutoLisp expressions can be used in macros, though I believe some cannot, but I don't know which.&amp;nbsp; Try the ones you want, and you'll know quickly enough.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 11:23:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ucsicon-toggle-by-mistake-in-the-macro-in-cui/m-p/7504382#M112781</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-10-31T11:23:18Z</dc:date>
    </item>
  </channel>
</rss>

