<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>CAD Forum discussion (EN) : Explode only polyline</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : Explode only polyline]]></description>
  <pubDate>Tue, 19 May 2026 10:59:14 +0000</pubDate>
  <lastBuildDate>Mon, 09 Feb 2015 15:51:18 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.cadforum.cz/forum_en/RSS_post_feed.asp?TID=10966</WebWizForums:feedURL>
  <image>
   <title><![CDATA[CAD Forum discussion (EN)]]></title>
   <url>https://www.cadforum.cz/forum_en/forum_images/web_wiz_forums.png</url>
   <link>https://www.cadforum.cz/forum_en/</link>
  </image>
  <item>
   <title><![CDATA[Explode only polyline :   criecky wrote:hi, use(defun...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29029&amp;title=explode-only-polyline#29029</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=353260">Kent Cooper</a><br /><strong>Subject:</strong> 10966<br /><strong>Posted:</strong> 09.Feb.2015 at 15:51<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by criecky" alt="Originally posted by criecky" style="vertical-align: text-bottom;" /> <strong>criecky wrote:</strong><br /><br />hi, use<BR><BR>(defun c:polyexplo (/ pl)<BR>(setq pl (ssget "X" '((0 . "POLYLINE"))))<BR>(command "_explode" pl)<BR>)<BR><BR></td></tr></table> <DIV>&nbsp;</DIV><DIV>The reason that doesn't work is that the only difference from the code in the first Post &#091;other than the (defun) wrapping&#093; is the entity type in the selection-set filter.&nbsp; It will find "heavy" 2D Polylines and 3D Polylines, but <EM>not</EM> LightWeight Polylines, and it will have the same problem with the Explode command and a multiple-object selection set.</DIV>]]>
   </description>
   <pubDate>Mon, 09 Feb 2015 15:51:18 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29029&amp;title=explode-only-polyline#29029</guid>
  </item> 
  <item>
   <title><![CDATA[Explode only polyline :   Vladimir Michl wrote:But this...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29028&amp;title=explode-only-polyline#29028</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=353260">Kent Cooper</a><br /><strong>Subject:</strong> 10966<br /><strong>Posted:</strong> 09.Feb.2015 at 15:47<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Vladimir Michl" alt="Originally posted by Vladimir Michl" style="vertical-align: text-bottom;" /> <strong>Vladimir Michl wrote:</strong><br /><br />But this is the official way to do that: <DIV>.... (initcommandversion 2) ....</DIV><DIV></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>... if you have a&nbsp;new-enough version of AutoCAD &#091;I'm not sure in which version that was introduced&#093;.&nbsp; Is the 2 there calling for a <EM>newer</EM> version of Explode that, inside a (command) function,&nbsp;can&nbsp;work with&nbsp;a selection set of more than one object?&nbsp; If so, that would also require a new-enough version of AutoCAD.</DIV><span style="font-size:10px"><br /><br />Edited by Kent Cooper - 09.Feb.2015 at 15:52</span>]]>
   </description>
   <pubDate>Mon, 09 Feb 2015 15:47:36 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29028&amp;title=explode-only-polyline#29028</guid>
  </item> 
  <item>
   <title><![CDATA[Explode only polyline :  But this is the official way...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29022&amp;title=explode-only-polyline#29022</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=3">Vladimir Michl</a><br /><strong>Subject:</strong> 10966<br /><strong>Posted:</strong> 08.Feb.2015 at 22:25<br /><br />But this is the official way to do that:<div>&nbsp;</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>(setq pl (ssget "_X" '((0 . "LWPOLYLINE"))))<br>(initcommandversion 2)<br>(command "_explode" pl "")<br></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Sun, 08 Feb 2015 22:25:40 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29022&amp;title=explode-only-polyline#29022</guid>
  </item> 
  <item>
   <title><![CDATA[Explode only polyline :   Kent Cooper wrote:For some...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29021&amp;title=explode-only-polyline#29021</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=510998">marian1autocad</a><br /><strong>Subject:</strong> 10966<br /><strong>Posted:</strong> 08.Feb.2015 at 21:37<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Kent Cooper" alt="Originally posted by Kent Cooper" style="vertical-align: text-bottom;" /> <strong>Kent Cooper wrote:</strong><br /><br />For some reason I've never seen explained, the Explode command in particular cannot Explode more than one thing at a time in a (command) function.&nbsp; There are at least two things you can do:&nbsp; 1) Step through the selection set and Explode each one individually, or 2) Mess around with the mysterious and undocumented QAFLAGS System Variable.&nbsp; If you Search for QAFLAGS in the AutoDesk Customization Forum, <a href="http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_blank" rel="nofollow">http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130</a>, you'll find various threads that talk about it and show you how to change the setting &#091;and be sure to change it back!&#093;.</td></tr></table><br><font size="2"><b><br><br><font color="#FF0000">Kent Cooper</font> gave me the solution</b></font> for my problem, and i want to thank him very much.<br><br>I set QAFLAGS variable to 1 (0 is default value) and after that my syntax works well. <img src="https://www.cadforum.cz/forum_en/smileys/smiley4.gif" border="0" alt="Big smile" title="Big smile" /><br><br><br><br>My syntax now will be:<br><b><br>(setq a (getvar "qaflags"))<br><br>(setq b (setvar "qaflags" 1))<br><br>(setq pl (ssget "X" '((0 . "LWPOLYLINE"))))<br><br>(command "explode" pl "")<br><br>(setvar "qaflags" a)</b><br><br><br>Here (&nbsp;<a href="http://www.manusoft.com/resources/acadexposed/sysvars.html" target="_blank" rel="nofollow">http://www.manusoft.com/resources/acadexposed/sysvars.html</a>&nbsp; ) i found this:<br><br><table height="243" width="627" border="1" cellpadding="2"><t><tr><td valign="top"><font size="1">QAFLAGS</font></td><td valign="top"><font size="1">bitcode</font></td><td valign="top"><font size="1">0 - 32767*</font></td><td valign="top"><font size="1">R11</font></td><td valign="top"><font size="1">bit 0 (1) : ^C in menu macro cancels grips (acts like keyboard &lt;Esc&gt;).<br>bit 1 (2) : no pause during text screen listings.<br>bit 2 (4) : no "alert" dialogs (text display instead).<br>bit 7 (128) : accepts "screen picks" (point lists) via (command) function.<br>*Note that this was an integer with range -32768 - 32767 in R11, then it changed to 0 - 32767 in R12.<span style="font-size: x-small;"><sup>&#091;2&#093;</sup></span></font></td></tr></t></table><br>My problem is now solved and this topic should be closed!<br><b><br>Thank you Kent Cooper for your help!</b> <img src="https://www.cadforum.cz/forum_en/smileys/smiley4.gif" border="0" alt="Big smile" title="Big smile" /><br><div style="display:none;" id="__if72ru4sdfsdfrkjahiuyi_once"></div><div style="display:none;" id="__hggasdgjhsagd_once"></div>]]>
   </description>
   <pubDate>Sun, 08 Feb 2015 21:37:31 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29021&amp;title=explode-only-polyline#29021</guid>
  </item> 
  <item>
   <title><![CDATA[Explode only polyline :   criecky wrote:hi, use(defun...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29019&amp;title=explode-only-polyline#29019</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=510998">marian1autocad</a><br /><strong>Subject:</strong> 10966<br /><strong>Posted:</strong> 08.Feb.2015 at 20:47<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by criecky" alt="Originally posted by criecky" style="vertical-align: text-bottom;" /> <strong>criecky wrote:</strong><br /><br />hi, use<br><br>(defun c:polyexplo (/ pl)<br>(setq pl (ssget "X" '((0 . "POLYLINE"))))<br>(command "_explode" pl)<br>)<br><br></td></tr></table><br><br>I tried your proposal and it did not work. Thank you Criecky!<br><br>Any suggestion are welcom.<br><div style="display:none;" id="__if72ru4sdfsdfrkjahiuyi_once"></div><div style="display:none;" id="__hggasdgjhsagd_once"></div>]]>
   </description>
   <pubDate>Sun, 08 Feb 2015 20:47:03 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29019&amp;title=explode-only-polyline#29019</guid>
  </item> 
  <item>
   <title><![CDATA[Explode only polyline : hi, use(defun c:polyexplo (/ pl)(setq...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29013&amp;title=explode-only-polyline#29013</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=379402">criecky</a><br /><strong>Subject:</strong> 10966<br /><strong>Posted:</strong> 08.Feb.2015 at 09:49<br /><br />hi, use<br /><br />(defun c:polyexplo (/ pl)<br />(setq pl (ssget "X" '((0 . "POLYLINE"))))<br />(command "_explode" pl)<br />)<br /><br />]]>
   </description>
   <pubDate>Sun, 08 Feb 2015 09:49:18 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29013&amp;title=explode-only-polyline#29013</guid>
  </item> 
  <item>
   <title><![CDATA[Explode only polyline : I will search for QAFLAGS in the...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29009&amp;title=explode-only-polyline#29009</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=510998">marian1autocad</a><br /><strong>Subject:</strong> 10966<br /><strong>Posted:</strong> 06.Feb.2015 at 21:08<br /><br />I will search for QAFLAGS in the AutoDesk Customization Forum and i will see what advantage can bring. <img src="https://www.cadforum.cz/forum_en/smileys/smiley4.gif" border="0" alt="Big smile" title="Big smile" /><br><br>Thank you Kent Cooper for your help and for your time spent here for my probleme! I appreciate. <br><font size="2"><b></b></font><div style="display:none;" id="__if72ru4sdfsdfrkjahiuyi_once"></div><div style="display:none;" id="__hggasdgjhsagd_once"></div>]]>
   </description>
   <pubDate>Fri, 06 Feb 2015 21:08:52 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29009&amp;title=explode-only-polyline#29009</guid>
  </item> 
  <item>
   <title><![CDATA[Explode only polyline : For some reason I&amp;#039;ve never...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29008&amp;title=explode-only-polyline#29008</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=353260">Kent Cooper</a><br /><strong>Subject:</strong> 10966<br /><strong>Posted:</strong> 06.Feb.2015 at 19:54<br /><br />For some reason I've never seen explained, the Explode command in particular cannot Explode more than one thing at a time in a (command) function.&nbsp; There are at least two things you can do:&nbsp; 1) Step through the selection set and Explode each one individually, or 2) Mess around with the mysterious and undocumented QAFLAGS System Variable.&nbsp; If you Search for QAFLAGS in the AutoDesk Customization Forum, <a href="http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_blank" rel="nofollow">http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130</A>, you'll find various threads that talk about it and show you how to change the setting &#091;and be sure to change it back!&#093;.]]>
   </description>
   <pubDate>Fri, 06 Feb 2015 19:54:57 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29008&amp;title=explode-only-polyline#29008</guid>
  </item> 
  <item>
   <title><![CDATA[Explode only polyline : Hi everyoane,I have a drawing...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29007&amp;title=explode-only-polyline#29007</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=510998">marian1autocad</a><br /><strong>Subject:</strong> 10966<br /><strong>Posted:</strong> 06.Feb.2015 at 19:38<br /><br />Hi everyoane,<br><br>I have a drawing in Autocad that contains lines, text, block reference, mtext and <u><font size="2" color="#0000FF"><b>polylines</b></font></u>.<br><br>In this drawing with Autolisp i want to do next:<br><br>1. select all polylines<br>2. explode them<br><br>I made, and i run this in Autocad but it doesn't work:<br><br>(setq pl (ssget "X" '((0 . "LWPOLYLINE"))))<br>(command "explode" pl)<br><b><br>What is wrong in my syntax?<br><br>How can i select all polylines from a drawing, and than to explode them?</b><br><br> Any help is appreciated.<br><br>Thank you very much!<br><div style="display:none;" id="__if72ru4sdfsdfrkjahiuyi_once"></div><div style="display:none;" id="__hggasdgjhsagd_once"></div>]]>
   </description>
   <pubDate>Fri, 06 Feb 2015 19:38:46 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10966&amp;PID=29007&amp;title=explode-only-polyline#29007</guid>
  </item> 
 </channel>
</rss>