<?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: Identifying different object types after using crossing Selection in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6763299#M247060</link>
    <description>&lt;P&gt;Couple months ago I tried to demonstrate that using QSELECT is quite fast, see&amp;nbsp;&lt;A href="https://knowledge.autodesk.com/community/screencast/be191823-db3e-4dac-9ff3-de16f40403b5" target="_self"&gt;SCREENCAST HERE&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2016 15:09:00 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2016-12-21T15:09:00Z</dc:date>
    <item>
      <title>Identifying different object types after using crossing Selection</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6762855#M247057</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used a crossing polygon to select some blocks, text and polylines. I want to manipulate only the text in my selection, but the properties window doesn't offer any selection options. If I use quick select to define a selection using a crossing polygon I can select only the text, but this is quite inconvenient. Does anyone know how to select just text after the crossing polygon selection method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 12:15:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6762855#M247057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T12:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying different object types after using crossing Selection</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6762903#M247058</link>
      <description>&lt;P&gt;Can you upload the file for us to try?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 12:47:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6762903#M247058</guid>
      <dc:creator>carl.coghill</dc:creator>
      <dc:date>2016-12-21T12:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying different object types after using crossing Selection</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6763108#M247059</link>
      <description>&lt;P&gt;Welcome to these Forums!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this, when you have a pre-selection highlighted:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(sssetfirst nil (ssget "_I" '((0 . "TEXT"))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "_I" stands for "Implied" selection, what AutoLisp uses to refer to things selected when no command is active.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will leave you with only the Text object(s) among the selection highlighted/gripped, and in the Properties box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If by "text" you mean to &lt;EM&gt;include Mtext&lt;/EM&gt;, you can cover both possibilities with a &lt;FONT color="#ff0000"&gt;wildcard&lt;/FONT&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(sssetfirst nil (ssget "_I" '((0 . "&lt;FONT color="#ff0000"&gt;*&lt;/FONT&gt;TEXT"))))&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 14:02:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6763108#M247059</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-12-21T14:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying different object types after using crossing Selection</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6763299#M247060</link>
      <description>&lt;P&gt;Couple months ago I tried to demonstrate that using QSELECT is quite fast, see&amp;nbsp;&lt;A href="https://knowledge.autodesk.com/community/screencast/be191823-db3e-4dac-9ff3-de16f40403b5" target="_self"&gt;SCREENCAST HERE&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 15:09:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6763299#M247060</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2016-12-21T15:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying different object types after using crossing Selection</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6763325#M247061</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;I have used a crossing polygon to select some blocks, text and polylines. I want to manipulate only the text in my selection, but the properties window doesn't offer any selection options.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, it does. At the top of the box is a drop down list. You can choose each type of entity in the selection set and make changes without losing your selection set.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 15:19:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6763325#M247061</guid>
      <dc:creator>RobDraw</dc:creator>
      <dc:date>2016-12-21T15:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying different object types after using crossing Selection</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6763454#M247062</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/569689"&gt;@RobDraw&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;.... I want to manipulate only the text in my selection, but the properties window doesn't offer any selection options.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;.... At the top of the box is a drop down list. You can choose each type of entity in the selection set and make changes without losing your selection set.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Depending on &lt;EM&gt;what you want to do&lt;/EM&gt; with the things, you may need to be careful doing it that way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Say you want to &lt;EM&gt;change the Layer&lt;/EM&gt; of all Text objects in&amp;nbsp;a pre-selection that includes Text objects but &lt;EM&gt;also&lt;/EM&gt; other kinds of things.&amp;nbsp; You can have the Properties box limit what it's &lt;EM&gt;showing&lt;/EM&gt; the properties of, with that drop-down list, without un-selecting the remainder of the selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you then use the drop-down list for Layer&lt;EM&gt; in the Propertiex box&lt;/EM&gt;, you can change the Layer of the Text objects only, &lt;EM&gt;without&lt;/EM&gt; affecting anything else in the selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you happen to use the Layer drop-down list&lt;EM&gt; in the Layer panel in the Ribbon&lt;/EM&gt; [an easy thing to do by mistake if you're not conscious of the difference], even with the Properties box restricted to showing properties of the Text only, it will still&amp;nbsp;&lt;EM&gt;change the Layer of all objects of all types&lt;/EM&gt; in the selection.&amp;nbsp; The same can be true for other things you might want to do with the selected objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The (sssetfirst) approach will let you use &lt;EM&gt;either&lt;/EM&gt; Layer list to change the Layer of the Text objects only, without risk of affecting other things in the selection.&amp;nbsp; But&amp;nbsp;giving you that option&amp;nbsp;&lt;EM&gt;will&lt;/EM&gt; remove all the other kinds of things from the selection, so you need to choose an approach that suits the particular kind(s) of manipulation(s) you need to make, and the level of awareness of Users.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 15:56:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6763454#M247062</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-12-21T15:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying different object types after using crossing Selection</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6766064#M247063</link>
      <description>&lt;P&gt;Just little playing with the idea of making selection filtering by entity type little bit faster than with QSELECT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure if the following is really faster for single entity type selection or deselection... but it allows selecting more than one type of entity.&lt;/P&gt;
&lt;P&gt;Read header of the code.&amp;nbsp;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_self"&gt;HERE&lt;/A&gt;&amp;nbsp;is the tutorial how to use a lisp (code).&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;;|

FILTER OF CURRENT SELECTION BY ENTITY TYPE

Select or preselect objects any method you want.
Either hit enter for DESELECTION  or  Pick an entity / pick on command line / type into command line of type you want to KEEP. 
You can pick another one, if you want to...

|;

(vl-load-com)

(defun c:XE ( / i ls2 lst pik ss ss2 typ dsl nxt)

  (defun :lst2comma (lst / str)
    (setq str "")
    (foreach e lst
      (setq str (strcat str (substr e 1 1) (strcase (substr e 2) T) " ")))
    (vl-string-trim " " str))

  ;-----------------------------------------------------------------------------------------------------------
  ;-----------------------------------------------------------------------------------------------------------
  
  (if (not (setq ss (ssget "_I")))
    (progn
      (command "_.SELECT")
      (while (&amp;gt; (getvar 'CMDACTIVE) 0)
        (command PAUSE))
      (setq ss (ssget "_I"))))
  (if ss
    (progn
      (repeat (setq i (sslength ss))
        (if (not (member (setq typ (cdr (assoc 0 (entget (ssname ss (setq i (1- i))))))) lst))
          (setq lst (cons typ lst))))
      (setq lst (vl-sort lst '&amp;lt;))
      (while (progn
               (initget (:lst2comma lst))
               (cond ((setq pik (entsel (strcat "\r&amp;gt;&amp;gt; FILTER SELECTION: Select entity [" (vl-string-translate " " "/" (:lst2comma lst)) "] &amp;lt;"(if nxt "done" "DESELECT") "&amp;gt;: "))))
                     (nxt
                      nil)
                     ((setq pik "DESELECT"))))
        (setq pik (if (= 'STR (type pik))
                    (strcase pik)
                    (cdr (assoc 0 (entget (car pik)))))
              ls2 (cond ((= pik "DESELECT")
                         lst)
                        ((not ls2)
                         (if dsl
                           (member pik lst)
                           (list pik)))
                        ((member pik ls2)
                          (if dsl
                            (member pik ls2)
                            (vl-remove pik ls2)))
                        (T
                         (if dsl
                           (progn
                             (princ (strcat "\n" pic ": already not part of current selection."))
                             ls2)
                           (cons pik ls2))))
              ss2 (acet-ss-ssget-filter ss (list (cons 0 (strcase (vl-string-translate " " "," (:lst2comma ls2)))))))
        (sssetfirst nil nil)
        (sssetfirst nil ss2)
        (setq nxt T)
        )))
  (princ (strcat "\nLeft in selection: " (vl-string-translate " " "," (:lst2comma ls2))))
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Dec 2016 17:15:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/identifying-different-object-types-after-using-crossing/m-p/6766064#M247063</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2016-12-22T17:15:34Z</dc:date>
    </item>
  </channel>
</rss>

