<?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>tema Re: [macro]  - Select previous and select last en AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9967900#M1039430</link>
    <description>&lt;P&gt;Perfect, finally got it working now. Thanks a lot!&lt;BR /&gt;And it's nice to be able to edit the alias in the future in case I change my mind.&lt;BR /&gt;This isn't really the most user friendly way to create aliases to macros, I'd say it's Autocad's age that is to blame. &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@59C40FF4A66238AB63B8D5D30F650901/emoticons/1f609.png" alt=":cara_guiñando_un_ojo:" title=":cara_guiñando_un_ojo:" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2020 17:36:39 GMT</pubDate>
    <dc:creator>Intuos5</dc:creator>
    <dc:date>2020-12-29T17:36:39Z</dc:date>
    <item>
      <title>[macro]  - Select previous and select last</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9923822#M1037788</link>
      <description>&lt;P&gt;This may have been asked before, but I haven't found the answer yet.&lt;BR /&gt;Are the select last and select previous commands available to assign a macro to? I see them listed under CUI for shortcuts, but they do not appear under the listed aliases. Or do I need a LISP for this?&lt;BR /&gt;I need this rather than typing "p" or "l" within a command, since I need to reselect dynamic blocks to have the grips appear.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 15:01:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9923822#M1037788</guid>
      <dc:creator>Intuos5</dc:creator>
      <dc:date>2020-12-08T15:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: [macro]  - Select previous and select last</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9923933#M1037794</link>
      <description>&lt;P&gt;you can try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(sssetfirst (setq myss (ssadd (entlast) (ssget "P") )))(sssetfirst nil myss)&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 15:37:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9923933#M1037794</guid>
      <dc:creator>SeeMSixty7</dc:creator>
      <dc:date>2020-12-08T15:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: [macro]  - Select previous and select last</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9932472#M1038140</link>
      <description>&lt;P&gt;Sorry for the somewhat late reply, I didn't have the time to check how I could turn this into a saveable LISP script. Now that I did look into the matter, I wasn't fortunate enough to stumble upon a solution. Could you save it as LISP or post a link to a guide so I can have a try?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 13:04:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9932472#M1038140</guid>
      <dc:creator>Intuos5</dc:creator>
      <dc:date>2020-12-11T13:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: [macro]  - Select previous and select last</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9932502#M1038141</link>
      <description>&lt;P&gt;This is enough, in my trial:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;(sssetfirst nil (ssget "_P"))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I put it into a Tool Palette button, and just picking on it selects/grips/highlights the Previous selection.&amp;nbsp; And likewise for the Last item:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;(sssetfirst nil (ssget "_L"))&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 13:15:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9932502#M1038141</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-12-11T13:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: [macro]  - Select previous and select last</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9934982#M1038240</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;This is enough, in my trial:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;(sssetfirst nil (ssget "_P"))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put it into a Tool Palette button, and just picking on it selects/grips/highlights the Previous selection.&amp;nbsp; And likewise for the Last item:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;(sssetfirst nil (ssget "_L"))&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Apologies for asking yet another thing, this is all new to me. Okay, so for creating the new command, in which box do I paste the script portion? I presume the macro one for the command? Then I can use &lt;A title="https://www.cad-notes.com/make-your-own-commands-in-autocad/amp/" href="https://www.cad-notes.com/make-your-own-commands-in-autocad/amp/" target="_blank" rel="noopener"&gt;this&lt;/A&gt; guide to assign the actual alias to the command, which looks doable.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 15:21:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9934982#M1038240</guid>
      <dc:creator>Intuos5</dc:creator>
      <dc:date>2020-12-12T15:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: [macro]  - Select previous and select last</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9935069#M1038244</link>
      <description>&lt;P&gt;You never said how you want to run the macro/lisp. By typing some letters?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 16:25:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9935069#M1038244</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-12-12T16:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: [macro]  - Select previous and select last</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9935442#M1038265</link>
      <description>&lt;P&gt;Now that you mention it I indeed didn't mention it in the OP, my apologies. I want to type in an alias (so just letters).&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 21:48:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9935442#M1038265</guid>
      <dc:creator>Intuos5</dc:creator>
      <dc:date>2020-12-12T21:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: [macro]  - Select previous and select last</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9935454#M1038266</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2003073"&gt;@Intuos5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This is enough, in my trial:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;(sssetfirst nil (ssget "_P"))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I put it into a Tool Palette button, and just picking on it selects/grips/highlights the Previous selection.&amp;nbsp; And likewise for the Last item:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;(sssetfirst nil (ssget "_L"))&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Apologies for asking yet another thing, this is all new to me. Okay, so for creating the new command, in which box do I paste the script portion? I presume the macro one for the command? Then I can use &lt;A title="https://www.cad-notes.com/make-your-own-commands-in-autocad/amp/" href="https://www.cad-notes.com/make-your-own-commands-in-autocad/amp/" target="_blank" rel="noopener"&gt;this&lt;/A&gt; guide to assign the actual alias to the command, which looks doable.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In the procedure in that guide, yes, put the code into the "Macro" slot, and the letters you want to type into the "Name" slot.&amp;nbsp; There are other ways, but that should do it.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 22:02:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9935454#M1038266</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-12-12T22:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: [macro]  - Select previous and select last</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9967515#M1039410</link>
      <description>&lt;P&gt;Okay now that I had some time to configure this, I got the command working using a keyboard shortcut, however I couldn't figure out how to add it as an alias. I tried the method of typing the command in the .pgp file, but it doesn't show up in the alias menu, nor does the alias I specified activate the command. Could someone lend me a hand to configure select last and select previous to have "sell" and "selp" as alias? I can always change it later, if only I knew how it works.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 14:22:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9967515#M1039410</guid>
      <dc:creator>Intuos5</dc:creator>
      <dc:date>2020-12-29T14:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: [macro]  - Select previous and select last</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9967647#M1039411</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2003073"&gt;@Intuos5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;... how to add it as an alias. .... Could someone lend me a hand to configure select last and select previous to have "sell" and "selp" as alias? ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Aliases in the .pgp file are for native AutoCAD commands.&amp;nbsp; For this, you would want to &lt;FONT color="#FF00FF"&gt;define&lt;/FONT&gt; little custom &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;c&lt;/STRONG&gt;&lt;/FONT&gt;ommand names:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;(&lt;FONT color="#FF00FF"&gt;defun&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;C:&lt;/FONT&gt;SELL&lt;/STRONG&gt; ()&amp;nbsp;(sssetfirst nil (ssget "_L")))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;(&lt;FONT color="#FF00FF"&gt;defun&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;C:&lt;/FONT&gt;SELP&lt;/STRONG&gt; ()&amp;nbsp;(sssetfirst nil (ssget "_P")))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could put those lines into your&amp;nbsp;&lt;FONT color="#000000"&gt;acaddoc.lsp&lt;/FONT&gt;&amp;nbsp;file [make one if you don't have one, even if they are all that's in it, in a place where AutoCAD knows to look] and they'll be loaded and available in every drawing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Those can be used "plain" at the command prompt to select/highlight/grip the appropriate thing(s) as pre-selection for use with a subsequently-invoked command, but &lt;EM&gt;they can also be used &lt;STRONG&gt;transparently&lt;/STRONG&gt;&lt;/EM&gt;, i.e. &lt;EM&gt;within&lt;/EM&gt; a command that's asking for object selection, mixed in among other selection options, by typing them &lt;FONT color="#FF0000"&gt;with an apostrophe prefix&lt;/FONT&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Command: &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;MOVE&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Select objects: &lt;EM&gt;&lt;FONT color="#00CCFF"&gt;{picked something other than the last object}&lt;/FONT&gt;&lt;/EM&gt; 1 found&lt;/P&gt;
&lt;P&gt;Select objects: &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;FONT size="4" color="#FF0000"&gt;'&lt;/FONT&gt;SELL&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;(nil &amp;lt;Selection set: 174&amp;gt;)&lt;BR /&gt;1 found, 2 total&lt;/P&gt;
&lt;P&gt;Select objects:&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;&lt;FONT color="#00CCFF"&gt;{continue selecting things...}&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[though in that kind of usage, a simple L or P will do the same, but you could put them into Tool Palette buttons if you find picking one of those preferable to typing a letter.]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 15:45:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9967647#M1039411</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-12-29T15:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: [macro]  - Select previous and select last</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9967900#M1039430</link>
      <description>&lt;P&gt;Perfect, finally got it working now. Thanks a lot!&lt;BR /&gt;And it's nice to be able to edit the alias in the future in case I change my mind.&lt;BR /&gt;This isn't really the most user friendly way to create aliases to macros, I'd say it's Autocad's age that is to blame. &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@59C40FF4A66238AB63B8D5D30F650901/emoticons/1f609.png" alt=":cara_guiñando_un_ojo:" title=":cara_guiñando_un_ojo:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 17:36:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/macro-select-previous-and-select-last/m-p/9967900#M1039430</guid>
      <dc:creator>Intuos5</dc:creator>
      <dc:date>2020-12-29T17:36:39Z</dc:date>
    </item>
  </channel>
</rss>

