<?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: LAYERORDER then OKAY in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537728#M128958</link>
    <description>&lt;P&gt;I don't show any UDS app in my add-ins, and I don't remember downloading anything like that. I think @Anonymous found the command in Arch 2016.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really, though, I just want to press that OKAY button via some LISP or other method. Maybe you'd need the code or whatever to do that, but I thought maybe there'd be a LISP routine or something for "press the OKAY button".&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2016 20:47:03 GMT</pubDate>
    <dc:creator>jmartt</dc:creator>
    <dc:date>2016-09-01T20:47:03Z</dc:date>
    <item>
      <title>LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537304#M128953</link>
      <description>&lt;P&gt;I'm aiming to make a button that pops my layers into the display order I want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want a macro or other sort of magic thing that calls the command LAYERORDER and (effectively) presses the OKAY button.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance, oh wisen'd few: I am not one that can summon up fire without flint or tinder.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 17:47:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537304#M128953</guid>
      <dc:creator>jmartt</dc:creator>
      <dc:date>2016-09-01T17:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537368#M128954</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1660580"&gt;@jmartt&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;calls the command LAYERORDER and (effectively) presses the OKAY button.&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's not a native AutoCAD command.&amp;nbsp; Are you using an overlay program?&amp;nbsp; Do you have a custom command definition?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 18:13:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537368#M128954</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-09-01T18:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537402#M128955</link>
      <description>&lt;P&gt;I'm using Civil 3D 2017, SP 1.1&lt;/P&gt;
&lt;P&gt;And I have Sincpac installed, but that command isn't listed in the literature as being a Sincpac command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the C3D forums, someone noted that this command wasn't a C3D command, though, so I don't know how I have it, or how &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/534796"&gt;@bmapper&lt;/a&gt; has it. Well, actually, maybe that user name is a clue! Is it is a Map command?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regardless, I just want a button that launches the command and presses the OKAY button. I tried adjusting ATTDIA and FILEDIA but this particular dialog box seems resistant to those spells. Is there just a catch-all LISP or macro way to "press OKAY button"?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 18:28:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537402#M128955</guid>
      <dc:creator>jmartt</dc:creator>
      <dc:date>2016-09-01T18:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537512#M128956</link>
      <description>&lt;P&gt;I can't answer your question about running this command without a dialog box, but I can confirm that I have this command in Civil3D 2016, but not in Map3D 2016. I tried "-Layerorder" with no luck. Also, it's not found in Help when I do a search for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just FYI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 19:18:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537512#M128956</guid>
      <dc:creator>steve_carson</dc:creator>
      <dc:date>2016-09-01T19:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537716#M128957</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1660580"&gt;@jmartt&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;I don't know how I have it....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I expect it must have come from&lt;A href="https://apps.autodesk.com/ACD/en/Detail/HelpDoc?appId=948036761825135980&amp;amp;appLang=en&amp;amp;os=Win32_64" target="_self"&gt; here&lt;/A&gt;, if that helps people know what to do with it.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 20:38:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537716#M128957</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-09-01T20:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537728#M128958</link>
      <description>&lt;P&gt;I don't show any UDS app in my add-ins, and I don't remember downloading anything like that. I think @Anonymous found the command in Arch 2016.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really, though, I just want to press that OKAY button via some LISP or other method. Maybe you'd need the code or whatever to do that, but I thought maybe there'd be a LISP routine or something for "press the OKAY button".&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 20:47:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537728#M128958</guid>
      <dc:creator>jmartt</dc:creator>
      <dc:date>2016-09-01T20:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537874#M128959</link>
      <description>&lt;P&gt;I'm no Lisp Guru, but this worked in my minimal testing. Modify the quoted layer names to be in the order you want them displayed. You type "LAYORDER" to run it. Let me know if it doesn't work (but like I said, I'm no guru).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;;Send to Front by Layer&lt;BR /&gt;;;&lt;BR /&gt;;;Inspired by this post:&lt;BR /&gt;;;&lt;A href="http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/td-p/6537304" target="_blank"&gt;http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/td-p/6537304&lt;/A&gt;&lt;BR /&gt;;;&lt;BR /&gt;;;By Steve Carson&lt;BR /&gt;;;&lt;/P&gt;&lt;P&gt;(defun C:LAYORDER ( / layerlist SS)&lt;/P&gt;&lt;P&gt;(setq layerlist '(&lt;/P&gt;&lt;P&gt;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;BR /&gt;;;Create List of Layers in the order you want them displayed&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;"Layer1"&lt;BR /&gt;"Layer2"&lt;BR /&gt;"Layer3"&lt;BR /&gt;"Layer4"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;BR /&gt;;;End of Layer List Area&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;(foreach L (reverse Layerlist)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (setq SS (ssget "_X" (list (cons 8 L) (cons 410 (getvar "CTAB")))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "DRAWORDER" SS "" "Front")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;);foreach&lt;/P&gt;&lt;P&gt;(princ)&lt;BR /&gt;);defun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 22:04:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537874#M128959</guid>
      <dc:creator>steve_carson</dc:creator>
      <dc:date>2016-09-01T22:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537987#M128960</link>
      <description>&lt;P&gt;"but like I said, I'm no guru"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I beg to differ. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 23:37:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6537987#M128960</guid>
      <dc:creator>jmartt</dc:creator>
      <dc:date>2016-09-01T23:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6538013#M128961</link>
      <description>&lt;P&gt;You're welcome, glad you like it!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 23:57:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6538013#M128961</guid>
      <dc:creator>steve_carson</dc:creator>
      <dc:date>2016-09-01T23:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6564549#M128962</link>
      <description>&lt;P&gt;My intent was to have some special layers that would jump up in display order and some others that would jump behind. I took your code and edited it so it'd do that. Seems to work thus far. Quite a nice button to have! Posting here in case someone wants the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 15:40:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6564549#M128962</guid>
      <dc:creator>jmartt</dc:creator>
      <dc:date>2016-09-15T15:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6564563#M128963</link>
      <description>&lt;P&gt;Nicely done Jeff!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 15:44:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6564563#M128963</guid>
      <dc:creator>steve_carson</dc:creator>
      <dc:date>2016-09-15T15:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6579457#M128964</link>
      <description>Thanks for this</description>
      <pubDate>Thu, 22 Sep 2016 23:47:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6579457#M128964</guid>
      <dc:creator>As-Built_Sigurd</dc:creator>
      <dc:date>2016-09-22T23:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6645700#M128965</link>
      <description>&lt;P&gt;Any idea how do this lisp with layer wildcards?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have various text&amp;nbsp;layers that have a generic name type&amp;nbsp;&amp;nbsp;"Text *" that&amp;nbsp;we want to be set to the front of all other objects in other layers.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 00:56:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6645700#M128965</guid>
      <dc:creator>nbawden</dc:creator>
      <dc:date>2016-10-26T00:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6645784#M128966</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/525507"&gt;@nbawden&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Any idea how do this lisp with layer wildcards?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have various text&amp;nbsp;layers that have a generic name type&amp;nbsp;&amp;nbsp;"Text *" that&amp;nbsp;we want to be set to the front of all other objects in other layers.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you don't care in what order the&amp;nbsp;things on those Layers go &lt;EM&gt;relative to each other&lt;/EM&gt;, but only relative to things on other Layers, it should be pretty simple, since wildcards work in (ssget) filters:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(command "DRAWORDER"&amp;nbsp;(ssget "_X" '((8 . "Text *")))&amp;nbsp;"" "Front")&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 02:08:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6645784#M128966</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-10-26T02:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: LAYERORDER then OKAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6645832#M128967</link>
      <description>&lt;P&gt;Sweet - works nicely.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 03:12:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layerorder-then-okay/m-p/6645832#M128967</guid>
      <dc:creator>nbawden</dc:creator>
      <dc:date>2016-10-26T03:12:57Z</dc:date>
    </item>
  </channel>
</rss>

