<?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 Last Created Object Macro in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9312846#M113703</link>
    <description>&lt;P&gt;It cannot be done without rewriting the fiber lisp. Who the author is, are we allowed to do that?&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2020 13:33:43 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2020-02-12T13:33:43Z</dc:date>
    <item>
      <title>Select Last Created Object Macro</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9312700#M113700</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a macro that would select the last created object. The intent is that when you use this commanded instead of having to select the object that was just created, it would automatically select it. I am also open to inserting the function into the lisp file for this command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 12:40:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9312700#M113700</guid>
      <dc:creator>jpskipper97EKZRZ</dc:creator>
      <dc:date>2020-02-12T12:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select Last Created Object Macro</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9312732#M113701</link>
      <description>&lt;P&gt;There's a command called PSELECT which allows you to select either the Last object created, or, the Previous selection set (i.e. the last group of objects that were selected)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a LSP routine that automatically loads with the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;;;;SELECT-OBJECT-GRIPS.lsp written by Murray Clack, April 4, 2005&lt;BR /&gt;;;;Tested on AutoCAD 2005&lt;BR /&gt;;;;This routine allows you to select either the Previous selection set&lt;BR /&gt;;;;or Last object created with its grips highlighted.&lt;/P&gt;&lt;P&gt;(prompt "\nSELECT-OBJECT-GRIPS.lsp loaded ")&lt;BR /&gt;(prompt "\nEnter PSP to select Previous selection set with grips highlighted...")&lt;BR /&gt;(prompt "\n...or PSL to select Last object created with grips highlighted ")&lt;/P&gt;&lt;P&gt;(defun c:PSP ()&lt;BR /&gt;(command ".pselect" "p" "")&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;(defun c:PSL ()&lt;BR /&gt;(command ".pselect" "l" "")&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 12:57:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9312732#M113701</guid>
      <dc:creator>murray-clack</dc:creator>
      <dc:date>2020-02-12T12:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select Last Created Object Macro</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9312806#M113702</link>
      <description>&lt;P&gt;Thank you! Although I'm having some trouble achieving my desired product (very little lisp experience). The end goal is this command automatically selecting the last created object and opening the dialogue window without the need to select the object manually. Would you be able to help figure out how to make this happen?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 13:23:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9312806#M113702</guid>
      <dc:creator>jpskipper97EKZRZ</dc:creator>
      <dc:date>2020-02-12T13:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select Last Created Object Macro</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9312846#M113703</link>
      <description>&lt;P&gt;It cannot be done without rewriting the fiber lisp. Who the author is, are we allowed to do that?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 13:33:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9312846#M113703</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-02-12T13:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select Last Created Object Macro</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9312859#M113704</link>
      <description>&lt;P&gt;I'm perfectly fine with it being re-written, just trying to optimize it so its as easy as possible.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 13:37:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9312859#M113704</guid>
      <dc:creator>jpskipper97EKZRZ</dc:creator>
      <dc:date>2020-02-12T13:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select Last Created Object Macro</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9313119#M113705</link>
      <description>&lt;P&gt;Replace this line&lt;/P&gt;
&lt;PRE&gt;	(setq e (entget (car (entsel)) '("AFRALISP")))&lt;/PRE&gt;
&lt;P&gt;with this one:&lt;/P&gt;
&lt;PRE&gt;	(setq e (entget (if (ssget "_I") (ssname (ssget "_I") 0) (car (entsel))) '("AFRALISP")))&lt;/PRE&gt;
&lt;P&gt;The macro for selection the last item... use simply:&lt;/P&gt;
&lt;PRE&gt;(sssetfirst nil (ssget "_L"))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 14:46:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9313119#M113705</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-02-12T14:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select Last Created Object Macro</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9313146#M113706</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8494919"&gt;@jpskipper97EKZRZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really the (one) LAST Object?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Change the commandname, because you edit the program, "fiberl" for example - fiber-last&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; change c:fiber to c:fiberl&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. The last Objekt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Change (car (entsel)) to (entlast)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/34475"&gt;@murray-clack&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pselect is a special thing and not always available! And for LT-readers: Not available in LT versions.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;(perhaps you didn't notice it because your properties palette is always loaded)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;If you can use Lisp -you do- use (sssetfirst nil (ssget "_p"))&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>Wed, 12 Feb 2020 14:53:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-last-created-object-macro/m-p/9313146#M113706</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2020-02-12T14:53:05Z</dc:date>
    </item>
  </channel>
</rss>

