<?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 Qselect Polyline in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12060582#M28019</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need 3 script as these action repeat on many drawings.&lt;/P&gt;&lt;P&gt;no.1 script:-&lt;BR /&gt;===========&lt;BR /&gt;1, qselect&lt;BR /&gt;2, apply to : Entire drawing&lt;BR /&gt;3, Object type: polyline&lt;BR /&gt;4, properties: Lineweight&lt;BR /&gt;5, Operator: &amp;lt;&amp;gt; Not Equal&lt;BR /&gt;6, value: ByLayer&lt;BR /&gt;7, ok&lt;/P&gt;&lt;P&gt;no.2 script:-&lt;BR /&gt;===========&lt;BR /&gt;1, qselect&lt;BR /&gt;2, apply to : Entire drawing&lt;BR /&gt;3, Object type: polyline&lt;BR /&gt;4, properties: Global width&lt;BR /&gt;5, Operator: &amp;gt; Greater than&lt;BR /&gt;6, value: 0&lt;BR /&gt;7, ok&lt;/P&gt;&lt;P&gt;no.3 script:-&lt;BR /&gt;===========&lt;BR /&gt;1, qselect&lt;BR /&gt;2, apply to : Entire drawing&lt;BR /&gt;3, Object type: polyline&lt;BR /&gt;4, properties: Start segment width&lt;BR /&gt;5, Operator: &amp;gt; Greater than&lt;BR /&gt;6, value: 0&lt;BR /&gt;7, ok&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;help is really in needy &amp;amp; appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 11:22:25 GMT</pubDate>
    <dc:creator>daniellim21st</dc:creator>
    <dc:date>2023-06-26T11:22:25Z</dc:date>
    <item>
      <title>Qselect Polyline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12060582#M28019</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need 3 script as these action repeat on many drawings.&lt;/P&gt;&lt;P&gt;no.1 script:-&lt;BR /&gt;===========&lt;BR /&gt;1, qselect&lt;BR /&gt;2, apply to : Entire drawing&lt;BR /&gt;3, Object type: polyline&lt;BR /&gt;4, properties: Lineweight&lt;BR /&gt;5, Operator: &amp;lt;&amp;gt; Not Equal&lt;BR /&gt;6, value: ByLayer&lt;BR /&gt;7, ok&lt;/P&gt;&lt;P&gt;no.2 script:-&lt;BR /&gt;===========&lt;BR /&gt;1, qselect&lt;BR /&gt;2, apply to : Entire drawing&lt;BR /&gt;3, Object type: polyline&lt;BR /&gt;4, properties: Global width&lt;BR /&gt;5, Operator: &amp;gt; Greater than&lt;BR /&gt;6, value: 0&lt;BR /&gt;7, ok&lt;/P&gt;&lt;P&gt;no.3 script:-&lt;BR /&gt;===========&lt;BR /&gt;1, qselect&lt;BR /&gt;2, apply to : Entire drawing&lt;BR /&gt;3, Object type: polyline&lt;BR /&gt;4, properties: Start segment width&lt;BR /&gt;5, Operator: &amp;gt; Greater than&lt;BR /&gt;6, value: 0&lt;BR /&gt;7, ok&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;help is really in needy &amp;amp; appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 11:22:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12060582#M28019</guid>
      <dc:creator>daniellim21st</dc:creator>
      <dc:date>2023-06-26T11:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Qselect Polyline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12060613#M28020</link>
      <description>&lt;P&gt;Just to clarify:&amp;nbsp; Are you talking about "lightweight" LWPolylines, the ones that the Properties palette calls Polylines and the LIST command calls LWPOLYLINEs?&amp;nbsp; Or "heavy" ones that Properties calls 2D Polylines and LIST calls POLYLINEs?&amp;nbsp; Or both?&amp;nbsp; Maybe 3D Polylines, too?&amp;nbsp; I ask because some of the characteristics you're after are stored in different ways in the different varieties, and width is irrelevant to 3D Polylines.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 11:42:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12060613#M28020</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-06-26T11:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Qselect Polyline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12060628#M28021</link>
      <description>hi, my drawings are 2D. i have try some lisp with LWPOLYLINE and it seems to work but i can't find the criteria that fits me</description>
      <pubDate>Mon, 26 Jun 2023 11:47:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12060628#M28021</guid>
      <dc:creator>daniellim21st</dc:creator>
      <dc:date>2023-06-26T11:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Qselect Polyline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12060644#M28022</link>
      <description>&lt;P&gt;Qselect is a dialog based command that can't be scripted.&amp;nbsp; Use &lt;A title="SSGET help page" href="https://help.autodesk.com/view/ACD/2023/ENU/index.html?guid=GUID-0F37CC5E-1559-4011-B8CF-A3BA0973B2C3" target="_blank" rel="noopener"&gt;ssget&lt;/A&gt; with filters instead.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 11:56:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12060644#M28022</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2023-06-26T11:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Qselect Polyline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12060675#M28023</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/411413"&gt;@dbroad&lt;/a&gt;&amp;nbsp;'s message is the way to go -- QSELECT doesn't have a command-line version as some commands do.&amp;nbsp; And to expand, it's going to involve &lt;A href="https://help.autodesk.com/view/ACD/2023/ENU/?guid=GUID-877CEEA5-0D88-48DF-8450-B9421031A1B7" target="_blank" rel="noopener"&gt;Relational Tests&lt;/A&gt;&amp;nbsp;[read about them -- the &lt;STRONG&gt;(-4)&lt;/STRONG&gt; codes in (ssget) filter lists] comparing values.&amp;nbsp; See the &lt;A href="https://help.autodesk.com/view/ACD/2023/ENU/?guid=GUID-7D07C886-FD1D-4A0C-A7AB-B4D21F18E484" target="_blank" rel="noopener"&gt;DXF Reference&lt;/A&gt; on the codes for entity properties [lineweight is among the "Common Group Codes" item at the top; the width ones are within the LWPOLYLINE entry].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For lineweights other than ByLayer, try this:&lt;BR /&gt;&lt;STRONG&gt;(sssetfirst nil (ssget "_X" '((0 . "LWPOLYLINE") (-4 . "&amp;gt;") (370 . 0))))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;For global widths other than zero [which can only be &lt;EM&gt;greater than&lt;/EM&gt; zero]:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;(sssetfirst nil (ssget "_X" '((0 . "LWPOLYLINE") (-4 . "&amp;gt;") (43 . 0))))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;For starting width other than zero [likewise]:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;(sssetfirst nil (ssget "_X" '((0 . "LWPOLYLINE") (-4 . "&amp;gt;") (40 . 0))))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[I did it for the lineweight by checking for a value greater than zero, because there's no specific value for ByLayer -- the 370 entry isn't even in entity data to look for in that case -- but any value other than that would be numerical and greater than zero.]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use those AutoLisp lines in a Script file.&amp;nbsp; If it's the last or only thing in the file, just add an Enter at the end so the last line in the file is a blank line below the [last] code line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As with QSELECT, those will select/grip/highlight [that's the &lt;STRONG&gt;(sssetfirst nil ...)&lt;/STRONG&gt; part] only what they find&amp;nbsp;&lt;EM&gt;within the current space&lt;/EM&gt;.&amp;nbsp; They will &lt;EM&gt;find&lt;/EM&gt; things elsewhere, and if that's something you need, the total findings can be saved to a variable from which you can get to even those not in the current space.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 12:24:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12060675#M28023</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-06-26T12:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Qselect Polyline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12060896#M28024</link>
      <description>no luck...&lt;BR /&gt;i can select all polyline using:&lt;BR /&gt;(sssetfirst nil (ssget "_X" '((0 . "*POLYLINE"))))&lt;BR /&gt;but when insert filter, won't work</description>
      <pubDate>Mon, 26 Jun 2023 13:29:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12060896#M28024</guid>
      <dc:creator>daniellim21st</dc:creator>
      <dc:date>2023-06-26T13:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Qselect Polyline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12061098#M28025</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14099863"&gt;@daniellim21st&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;no luck...&amp;nbsp; i can select all polyline using:&lt;BR /&gt;(sssetfirst nil (ssget "_X" '((0 . "*POLYLINE"))))&lt;BR /&gt;but when insert filter, won't work&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;They work for me with "LWPOLYLINE" as I posted them and also with "*POLYLINE" to include "heavy" 2D Polylines &lt;EM&gt;with one exception&lt;/EM&gt;.&amp;nbsp; If you want to include those, as I said, some information about them is stored differently.&amp;nbsp; Among the things you're looking for, &lt;EM&gt;they have no code-43 entry for global width&lt;/EM&gt; [if they are the same width throughout], because that's not a function of the &lt;EM&gt;overall&lt;/EM&gt; Polyline, but &lt;EM&gt;each vertex is its own entity name&lt;/EM&gt; that holds its own width information.&amp;nbsp; So the one for non-zero global width does not find a "heavy" 2D Polyline like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post the way you did it, and a small drawing in which it does not work for you.&amp;nbsp; If it isn't just an error in copying/pasting, describe more about what "won't work" &lt;EM&gt;means&lt;/EM&gt; -- what happens that you don't expect, what doesn't happen that you do expect, are there any messages?, etc.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 14:40:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12061098#M28025</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-06-26T14:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Qselect Polyline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12062411#M28026</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;STRONG&gt;Kent Cooper &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;finally i got it working, thank you so much for your help, it save me hours of repeating those 3 step...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 02:28:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/qselect-polyline/m-p/12062411#M28026</guid>
      <dc:creator>daniellim21st</dc:creator>
      <dc:date>2023-06-27T02:28:20Z</dc:date>
    </item>
  </channel>
</rss>

