<?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 Select polyline same lintype and layer in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12126973#M26417</link>
    <description>&lt;P&gt;Hi, i need some help with a lisp, here i go:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a lisp for autocad that can do the following steps:&lt;BR /&gt;1. let me choose a polyline&lt;BR /&gt;2. search in the drawing and select all the polylines according to the same linetype and layer that i chose in point 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I know that Quickselect exist, but i need a shortcut, thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 08:31:54 GMT</pubDate>
    <dc:creator>virgilius99</dc:creator>
    <dc:date>2023-07-26T08:31:54Z</dc:date>
    <item>
      <title>Select polyline same lintype and layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12126973#M26417</link>
      <description>&lt;P&gt;Hi, i need some help with a lisp, here i go:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a lisp for autocad that can do the following steps:&lt;BR /&gt;1. let me choose a polyline&lt;BR /&gt;2. search in the drawing and select all the polylines according to the same linetype and layer that i chose in point 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I know that Quickselect exist, but i need a shortcut, thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 08:31:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12126973#M26417</guid>
      <dc:creator>virgilius99</dc:creator>
      <dc:date>2023-07-26T08:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select polyline same lintype and layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12127242#M26418</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(setq pline_dxf  (entget (car (entsel "\nPick sample pline: "))))
(sssetfirst nil (setq all_qualified_plines (ssget "_x" (vl-remove nil (list (assoc 0 pline_dxf) (assoc 6 pline_dxf) (assoc 8 pline_dxf))))))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 26 Jul 2023 10:39:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12127242#M26418</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-07-26T10:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select polyline same lintype and layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12127249#M26419</link>
      <description>&lt;P&gt;EDITED:&lt;/P&gt;
&lt;P&gt;If you're talking about ones that have a linetype override, then&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;'s approach should work, but I think not if the selected source object is ByLayer in linetype, because there will be no entry for linetype in the entity data to filter for, so it will find all objects of the same type and Layer, &lt;EM&gt;no matter what their linetype&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 12:18:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12127249#M26419</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-07-26T12:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select polyline same lintype and layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12127271#M26420</link>
      <description>&lt;P&gt;It works, but like a command type line, how do i take it to a lisp instead?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 10:59:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12127271#M26420</guid>
      <dc:creator>virgilius99</dc:creator>
      <dc:date>2023-07-26T10:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select polyline same lintype and layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12127279#M26421</link>
      <description>&lt;P&gt;Resolved, thank you for your time!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 11:04:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12127279#M26421</guid>
      <dc:creator>virgilius99</dc:creator>
      <dc:date>2023-07-26T11:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select polyline same lintype and layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12127547#M26422</link>
      <description>&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;If you're talking about ones that have a linetype override, then&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;'s approach should work, but I think not if the selected source object is ByLayer in linetype, because ... it will find all objects of the same type and Layer, &lt;EM&gt;no matter what their linetype&lt;/EM&gt;.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This seems to overcome that issue with a source object of ByLayer Linetype, in limited testing:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:SSTLL (/ edata n ent); = Selection Set of same object Type, Layer &amp;amp; Linetype
  (setq edata (entget (car (entsel "\nSample object: "))))
  (setq SameTypeLayerLtype
    (ssget "_X"
      (if (assoc 6 edata)
        (list (assoc 0 edata) (assoc 8 edata) (assoc 6 edata)); then -- all 3
        (list (assoc 0 edata) (assoc 8 edata)); else -- by Type &amp;amp; Layer only
      ); if
    ); ssget
  ); setq
  (if (not (assoc 6 edata)); if source is ByLayer Linetype, remove any with override
    (repeat (setq n (sslength SameTypeLayerLtype))
      (setq ent (ssname SameTypeLayerLtype (setq n (1- n))))
      (if (assoc 6 (entget ent)) (ssdel ent SameTypeLayerLtype))
    ); repeat
  ); if
  (sssetfirst nil SameTypeLayerLtype); select/grip/highlight
); defun&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And it works for any kind of object.&amp;nbsp; There may be a more concise way to do it -- I was hoping for a relational test with (-4) entries, but didn't find a way.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 12:50:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12127547#M26422</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-07-26T12:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select polyline same lintype and layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12127603#M26423</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 13:03:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-polyline-same-lintype-and-layer/m-p/12127603#M26423</guid>
      <dc:creator>virgilius99</dc:creator>
      <dc:date>2023-07-26T13:03:34Z</dc:date>
    </item>
  </channel>
</rss>

