<?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: Select Previous in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6203604#M134029</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/75977"&gt;@hmsilva&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;^C^C_.pselect;_p;;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;BR /&gt;Henrique&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If I simply added another semi colon to the end of my macro it doesn't work - but your&amp;nbsp;macro&amp;nbsp;does thanks&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2016 23:02:02 GMT</pubDate>
    <dc:creator>nbawden</dc:creator>
    <dc:date>2016-03-07T23:02:02Z</dc:date>
    <item>
      <title>Select Previous</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6201720#M134024</link>
      <description>&lt;P&gt;I regularly use the select previous command manually (i.e. type "select" &amp;lt;enter&amp;gt; &amp;nbsp;at the command prompt then type "p" &amp;lt;enter&amp;gt;&amp;lt;enter&amp;gt;) to recreate&amp;nbsp;the last selection set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you run this command you are shown a highlighted preview of the previous selection set after the first &amp;lt;enter&amp;gt; after typing "p"&amp;nbsp;&amp;nbsp;and after the&amp;nbsp;last &amp;lt;enter&amp;gt; you are left with this&amp;nbsp;active selection set (i.e. grips&amp;nbsp;appear etc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To speed things up I wanted to add this sequence of commands to the Shorcut Menu "Context menu&amp;nbsp;for default mode" by creating a new command I called "Select Previous" with the macro &lt;STRONG&gt;^C^Cselect;p;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this command from the shortcut menu I get the preview highlight just like the manual&amp;nbsp;method but when I then hit &amp;lt;enter&amp;gt; I am not given&amp;nbsp;this previous selection set as an active selection - I am left with no selected&amp;nbsp;objects at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I notice that Acad had an existing Select Previous command with the macro &lt;STRONG&gt;$M=$(if,$(getvar,cmdactive),,_select;)_p&lt;/STRONG&gt;&amp;nbsp;which has the exact same problem as my more basic macro when I try it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know the cause of this difference in functionality between manually typing the command and using either of the two&amp;nbsp;macros?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 05:37:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6201720#M134024</guid>
      <dc:creator>nbawden</dc:creator>
      <dc:date>2016-03-07T05:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select Previous</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6201745#M134025</link>
      <description>&lt;PRE&gt;(defun c:selp (/ ss)
  (setq ss (ssget "_p"))
  (sssetfirst nil ss)
  (princ)
)&lt;/PRE&gt;&lt;P&gt;Familiar in how to load lisps? this seems to work in the way i think you want it to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just in case you don't know how load lisps, copy and paste lisp into a notepad and save it as whateveryouwant.lsp, then follow this to make it load on startup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cad-notes.com/how-to-load-autolisp-program/" target="_blank"&gt;loading a lisp to the startup suite.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 06:22:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6201745#M134025</guid>
      <dc:creator>Satoews</dc:creator>
      <dc:date>2016-03-07T06:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select Previous</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6202011#M134026</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;^C^C_.pselect;_p;;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 09:56:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6202011#M134026</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-03-07T09:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select Previous</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6202205#M134027</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;....&amp;nbsp;I wanted to add this sequence of commands to the Shorcut Menu&amp;nbsp;... by creating a new command I called "Select Previous" with the macro &lt;STRONG&gt;^C^Cselect;p;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run this command from the shortcut menu I get the preview highlight just like the manual&amp;nbsp;method but when I then hit &amp;lt;enter&amp;gt; I am not given&amp;nbsp;this previous selection set as an active selection - I am left with no selected&amp;nbsp;objects at all. ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I also was going to suggest including the &lt;EM&gt;two&lt;/EM&gt; semicolons at the end of that macro, though I'm not sure that would function any differently than having only &lt;EM&gt;one&lt;/EM&gt; and then hitting Enter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But another thing you can try in your macro:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;^C^C(sssetfirst nil (ssget "_P"))&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 12:41:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6202205#M134027</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-03-07T12:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select Previous</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6202539#M134028</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;I regularly use the select previous command manually (i.e. type "select" &amp;lt;enter&amp;gt; &amp;nbsp;at the command prompt then type "p" &amp;lt;enter&amp;gt;&amp;lt;enter&amp;gt;) to recreate&amp;nbsp;the last selection set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you run this command you are shown a highlighted preview of the previous selection set after the first &amp;lt;enter&amp;gt; after typing "p"&amp;nbsp;&amp;nbsp;and after the&amp;nbsp;last &amp;lt;enter&amp;gt; you are left with this&amp;nbsp;active selection set (i.e. grips&amp;nbsp;appear etc)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To speed things up I wanted to add this sequence of commands to the Shorcut Menu "Context menu&amp;nbsp;for default mode" by creating a new command I called "Select Previous" with the macro &lt;STRONG&gt;^C^Cselect;p;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run this command from the shortcut menu I get the preview highlight just like the manual&amp;nbsp;method but when I then hit &amp;lt;enter&amp;gt; I am not given&amp;nbsp;this previous selection set as an active selection - I am left with no selected&amp;nbsp;objects at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I notice that Acad had an existing Select Previous command with the macro &lt;STRONG&gt;$M=$(if,$(getvar,cmdactive),,_select;)_p&lt;/STRONG&gt;&amp;nbsp;which has the exact same problem as my more basic macro when I try it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know the cause of this difference in functionality between manually typing the command and using either of the two&amp;nbsp;macros?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Take the best of suggested:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$M=$(if,$(getvar,cmdactive),,_pselect;)_p;;&lt;/PRE&gt;
&lt;P&gt;...you can apply the previous selection no matter where... Before the command (noun/verb selection) or inside the command (verb/noun selection)-&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 15:07:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6202539#M134028</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2016-03-07T15:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select Previous</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6203604#M134029</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/75977"&gt;@hmsilva&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;^C^C_.pselect;_p;;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;BR /&gt;Henrique&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If I simply added another semi colon to the end of my macro it doesn't work - but your&amp;nbsp;macro&amp;nbsp;does thanks&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 23:02:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6203604#M134029</guid>
      <dc:creator>nbawden</dc:creator>
      <dc:date>2016-03-07T23:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select Previous</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6204180#M134030</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;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/75977"&gt;@hmsilva&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;^C^C_.pselect;_p;;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;BR /&gt;Henrique&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If I simply added another semi colon to the end of my macro it doesn't work - but your&amp;nbsp;macro&amp;nbsp;does thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're welcome, nbawden!&lt;BR /&gt;Glad I could help&lt;BR /&gt;&lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 09:20:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/6204180#M134030</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-03-08T09:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select Previous</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/9144467#M134031</link>
      <description>&lt;P&gt;Gracias, Henrique.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 16:49:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/9144467#M134031</guid>
      <dc:creator>prousseauCQJ6U</dc:creator>
      <dc:date>2019-11-13T16:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select Previous</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/9280819#M134032</link>
      <description>&lt;P&gt;exact same problem, this worked for me .&lt;/P&gt;&lt;PRE&gt;^C^C_.pselect;_p;;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jan 2020 21:39:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/9280819#M134032</guid>
      <dc:creator>JJUDD_RAAE</dc:creator>
      <dc:date>2020-01-28T21:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select Previous</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/9792467#M134033</link>
      <description>&lt;P&gt;I also used to be able to select previous objects, but not all of a sudden, the selection doesn't become editable after I hit enter. (SELECT --&amp;gt; P --&amp;gt; Enter button)&lt;/P&gt;&lt;P&gt;This might be a workaround:&lt;/P&gt;&lt;P&gt;Type the command PSELECT. At the "Select objects:" prompt, type P (for Previous) and hit enter.&lt;/P&gt;&lt;P&gt;(PSELECT --&amp;gt; P --&amp;gt; Enter button)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 20:05:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/9792467#M134033</guid>
      <dc:creator>lynnetteu</dc:creator>
      <dc:date>2020-10-08T20:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select Previous</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/9792532#M134034</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4968674"&gt;@lynnetteu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you don't need to post this message every wherem specially not in threads where it is already answered&lt;/P&gt;
&lt;P&gt;AND your workflow is wrong, as you can also read above,&lt;/P&gt;
&lt;P&gt;the workflow is&lt;/P&gt;
&lt;P&gt;PSELECT&amp;lt;enter&amp;gt;P&amp;lt;enter&amp;gt;&amp;lt;enter&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Above you can see how to create a command and/or a button for Previous Highlighting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An more about SELECT and PSELECT i wrote to one of your other posts: &lt;A href="https://forums.autodesk.com/t5/autocad-forum/quot-select-previous-quot-command/m-p/9792506#M1032876" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;HERE&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 20:41:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/9792532#M134034</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2020-10-08T20:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select Previous</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/9792550#M134035</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745"&gt;@cadffm&lt;/a&gt;&amp;nbsp;Hahah, let a man dream!&lt;BR /&gt;&lt;BR /&gt;(I saw the other post where this guy replied to a 14 years old message :P)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 20:51:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-previous/m-p/9792550#M134035</guid>
      <dc:creator>prousseauCQJ6U</dc:creator>
      <dc:date>2020-10-08T20:51:56Z</dc:date>
    </item>
  </channel>
</rss>

