<?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 Betreff: SSGET Error &amp;quot;*Invalid Selection*&amp;quot; in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ssget-error-quot-invalid-selection-quot/m-p/8868304#M87253</link>
    <description>&lt;P&gt;The message comes from the started command (ERASE)&lt;BR /&gt;and only when no valid selection has been made.&lt;/P&gt;
&lt;P&gt;No&lt;BR /&gt;1. TEXTS and MTEXT exist&lt;BR /&gt;2. on unlocked layers&lt;BR /&gt;3. in the current space&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;offtopic&lt;BR /&gt;Should the command automatically delete (M) text? Then you forgot to finish the object selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Better, but still without layer handling&lt;/P&gt;
&lt;P&gt;(defun removetext (/ ss)&lt;BR /&gt;(if (setq ss (ssget "_X" (list '(0 . "TEXT,MTEXT")(cons 410 (getvar 'CTAB)))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (progn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.ERASE" ss "")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ "\nText removed from drawing")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;(princ)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;handle layer (locked/unlocked) an use ENTDEL would be the next evolution..&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2019 12:28:59 GMT</pubDate>
    <dc:creator>cadffm</dc:creator>
    <dc:date>2019-06-24T12:28:59Z</dc:date>
    <item>
      <title>SSGET Error "*Invalid Selection*"</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ssget-error-quot-invalid-selection-quot/m-p/8868249#M87252</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I am suddenly getting an error when I use the following function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun removetext ()&lt;BR /&gt;(command "_.erase" (ssget "X" '((0 . "TEXT,MTEXT"))))&lt;BR /&gt;(princ "\nText removed from drawing")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;The error is:&lt;/P&gt;&lt;P&gt;*Invalid selection*&lt;BR /&gt;Expects a point or Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon/Group/Add/Remove/Multiple/Previous/Undo/AUto/SIngle/SUbobject/Object&lt;BR /&gt;1 found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe it to be the ssget function. It had worked before but now it only seems to work in a specific drawing. Any idea why it is suddenly generating this error?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 12:06:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ssget-error-quot-invalid-selection-quot/m-p/8868249#M87252</guid>
      <dc:creator>drew_dewit</dc:creator>
      <dc:date>2019-06-24T12:06:40Z</dc:date>
    </item>
    <item>
      <title>Betreff: SSGET Error "*Invalid Selection*"</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ssget-error-quot-invalid-selection-quot/m-p/8868304#M87253</link>
      <description>&lt;P&gt;The message comes from the started command (ERASE)&lt;BR /&gt;and only when no valid selection has been made.&lt;/P&gt;
&lt;P&gt;No&lt;BR /&gt;1. TEXTS and MTEXT exist&lt;BR /&gt;2. on unlocked layers&lt;BR /&gt;3. in the current space&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;offtopic&lt;BR /&gt;Should the command automatically delete (M) text? Then you forgot to finish the object selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Better, but still without layer handling&lt;/P&gt;
&lt;P&gt;(defun removetext (/ ss)&lt;BR /&gt;(if (setq ss (ssget "_X" (list '(0 . "TEXT,MTEXT")(cons 410 (getvar 'CTAB)))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (progn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.ERASE" ss "")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ "\nText removed from drawing")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;(princ)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;handle layer (locked/unlocked) an use ENTDEL would be the next evolution..&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 12:28:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ssget-error-quot-invalid-selection-quot/m-p/8868304#M87253</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-06-24T12:28:59Z</dc:date>
    </item>
  </channel>
</rss>

