<?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) : convert 3d polyline to polyline</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : convert 3d polyline to polyline]]></description>
  <pubDate>Fri, 04 Sep 2026 13:23:12 +0000</pubDate>
  <lastBuildDate>Fri, 03 Apr 2009 04:58:04 +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=1875</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[convert 3d polyline to polyline :  Thanks, i got it from   http://cadtips.cadalyst.com ...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1875&amp;PID=5183&amp;title=convert-3d-polyline-to-polyline#5183</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=44212">seashell2day</a><br /><strong>Subject:</strong> 1875<br /><strong>Posted:</strong> 03.Apr.2009 at 04:58<br /><br /><a href="http://cadtips.cadalyst.com" target="_blank"><DIV>Thanks, i got it from </DIV><DIV><FONT color=#333333></FONT>&nbsp;</DIV><DIV>http://cadtips.cadalyst.com</A></DIV><DIV></DIV>]]>
   </description>
   <pubDate>Fri, 03 Apr 2009 04:58:04 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1875&amp;PID=5183&amp;title=convert-3d-polyline-to-polyline#5183</guid>
  </item> 
  <item>
   <title><![CDATA[convert 3d polyline to polyline : if you have Civil 3D autoCAD you...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1875&amp;PID=5182&amp;title=convert-3d-polyline-to-polyline#5182</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=30236">msplcdykee69</a><br /><strong>Subject:</strong> 1875<br /><strong>Posted:</strong> 03.Apr.2009 at 04:08<br /><br />if you have Civil 3D autoCAD you can go to Surface&gt;Utilities&gt;Convert 3D poly to 2D poly.&nbsp; If you do not.. Here is a lisp program you can use to convert it.&nbsp; Also if your 3D poly has "Z" elevations you need to get rid of I have a lisp to Flatten the "Z" value to 0. It is below as well <DIV>&nbsp;</DIV><DIV><FONT color=#ff0000><strong><U>Convert 3D to 2D Poly</U></strong></FONT></DIV><DIV>&nbsp;</DIV><DIV>;;CADALYST 09/03 AutoLISP Solutions<BR>;;; PLINE-3D-2D.LSP - a program to convert<BR>;;; 3D polylines to 2D<BR>;;; Program by Tony Hotchkiss</DIV><DIV>(defun pline-3d-2d ()<BR>&nbsp; (vl-load-com)<BR>&nbsp; (setq&nbsp;*thisdrawing* (vla-get-activedocument<BR>&nbsp;&nbsp;&nbsp;(vlax-get-acad-object)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ) ;_ end of vla-get-activedocument<BR>&nbsp;*modelspace*&nbsp; (vla-get-ModelSpace *thisdrawing*)<BR>&nbsp; ) ;_ end of setq<BR>&nbsp; (setq&nbsp;3d-pl-list<BR>&nbsp; (get-3D-pline)<BR>&nbsp; ) ;_ end of setq<BR>&nbsp; (if 3d-pl-list<BR>&nbsp;&nbsp;&nbsp; (progn<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq vert-array-list (make-list 3d-pl-list))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq n (- 1))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (repeat (length vert-array-list)<BR>&nbsp;(setq vert-array (nth (setq n (1+ n)) vert-array-list))<BR>&nbsp;(setq lyr (vlax-get-property (nth n 3d-pl-list) 'Layer))<BR>&nbsp;(setq obj (vla-AddPolyline *modelspace* vert-array))<BR>&nbsp;(vlax-put-property obj 'Layer lyr)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ) ;_ end of repeat<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (foreach obj 3d-pl-list (vla-delete obj))<BR>&nbsp;&nbsp;&nbsp; ) ;_ end of progn<BR>&nbsp; ) ;_ end of if<BR>) ;_ end of pline-3d-2d</DIV><DIV>(defun get-3D-pline ()<BR>&nbsp; (setq&nbsp;pl3dobj-list nil<BR>&nbsp;obj&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nil<BR>&nbsp;3d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "AcDb3dPolyline"<BR>&nbsp; ) ;_ end of setq<BR>&nbsp; (setq selsets (vla-get-selectionsets *thisdrawing*))<BR>&nbsp; (setq ss1 (vlax-make-variant "ss1"))<BR>&nbsp; (if (= (vla-get-count selsets) 0)<BR>&nbsp;&nbsp;&nbsp; (setq ssobj (vla-add selsets ss1))<BR>&nbsp; ) ;_ end of if<BR>&nbsp; (vla-clear ssobj)<BR>&nbsp; (setq Filterdata (vlax-make-variant "POLYLINE"))<BR>&nbsp; (setq no-ent 1)<BR>&nbsp; (while no-ent<BR>&nbsp;&nbsp;&nbsp; (vla-Selectonscreen ssobj)<BR>&nbsp;&nbsp;&nbsp; (if&nbsp;(&gt; (vla-get-count ssobj) 0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (progn<BR>&nbsp;(setq no-ent nil)<BR>&nbsp;(setq i (- 1))<BR>&nbsp;(repeat&nbsp;(vla-get-count ssobj)<BR>&nbsp;&nbsp; (setq<BR>&nbsp;&nbsp;&nbsp;&nbsp; obj&nbsp;(vla-item ssobj<BR>&nbsp;&nbsp;&nbsp;&nbsp; (vlax-make-variant (setq i (1+ i)))<BR>&nbsp;&nbsp;) ;_ end of vla-item<BR>&nbsp;&nbsp; ) ;_ end of setq<BR>&nbsp;&nbsp; (cond<BR>&nbsp;&nbsp;&nbsp;&nbsp; ((= (vlax-get-property obj "ObjectName") 3d)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq pl3dobj-list<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (append pl3dobj-list (list obj))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ) ;_ end of setq<BR>&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp; ) ;_ end-of cond<BR>&nbsp;) ;_ end of repeat<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ) ;_ end of progn<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (prompt "\nNo entities selected, try again.")<BR>&nbsp;&nbsp;&nbsp; ) ;_ end of if<BR>&nbsp;&nbsp;&nbsp; (if&nbsp;(and (= nil no-ent) (= nil pl3dobj-list))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (progn<BR>&nbsp;(setq no-ent 1)<BR>&nbsp;(prompt "\nNo 3D-polylines selected.")<BR>&nbsp;(quit)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ) ;_ end of progn<BR>&nbsp;&nbsp;&nbsp; ) ;_ end of if<BR>&nbsp; ) ;_ end of while&nbsp; <BR>&nbsp; (vla-delete (vla-item selsets 0))<BR>&nbsp; pl3dobj-list<BR>) ;_ end of get-3D-pline</DIV><DIV><BR>(defun get-3D-pline-old ()<BR>&nbsp; (setq no-ent 1)<BR>&nbsp; (setq&nbsp;filter '((-4 . "&lt;AND")<BR>&nbsp;&nbsp; (0 . "POLYLINE")<BR>&nbsp;&nbsp; (70 . 8)<BR>&nbsp;&nbsp; (-4 . "AND&gt;")<BR>&nbsp;&nbsp;)<BR>&nbsp; ) ;_ end of setq<BR>&nbsp; (while no-ent<BR>&nbsp;&nbsp;&nbsp; (setq ss&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ssget filter)<BR>&nbsp;&nbsp; k&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (- 1)<BR>&nbsp;&nbsp; pl3dobj-list nil<BR>&nbsp;&nbsp; obj&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nil<BR>&nbsp;&nbsp; 3d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "AcDb3dPolyline"<BR>&nbsp;&nbsp;&nbsp; ) ;_ end-of setq<BR>&nbsp;&nbsp;&nbsp; (if&nbsp;ss<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (progn<BR>&nbsp;(setq no-ent nil)<BR>&nbsp;(repeat&nbsp;(sslength ss)<BR>&nbsp;&nbsp; (setq&nbsp;ent (ssname ss (setq k (1+ k)))<BR>&nbsp;&nbsp;obj (vlax-ename-&gt;vla-object ent)<BR>&nbsp;&nbsp; ) ;_ end-of setq<BR>&nbsp;&nbsp; (cond<BR>&nbsp;&nbsp;&nbsp;&nbsp; ((= (vlax-get-property obj "ObjectName") 3d)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq pl3dobj-list<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (append pl3dobj-list (list obj))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ) ;_ end of setq<BR>&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp; ) ;_ end-of cond<BR>&nbsp;) ;_ end-of repeat<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ) ;_ end-of progn<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (prompt "\nNo 3D-polylines selected, try again.")<BR>&nbsp;&nbsp;&nbsp; ) ;_ end-of if<BR>&nbsp; ) ;_ end-of while<BR>&nbsp; pl3dobj-list<BR>) ;_ end of get-3D-pline-old</DIV><DIV>(defun make-list (p-list)<BR>&nbsp; (setq&nbsp;i (- 1)<BR>&nbsp;vlist nil<BR>&nbsp;calist nil<BR>&nbsp; ) ;_ end of setq<BR>&nbsp; (repeat (length p-list)<BR>&nbsp;&nbsp;&nbsp; (setq obj&nbsp; (nth (setq i (1+ i)) p-list)<BR>&nbsp;&nbsp; coords (vlax-get-property obj "coordinates")<BR>&nbsp;&nbsp; ca&nbsp; (vlax-variant-value coords)<BR>&nbsp;&nbsp;&nbsp; ) ;_ end-of setq<BR>&nbsp;&nbsp;&nbsp; (setq calist (append calist (list ca)))<BR>&nbsp; ) ;_ end-of repeat<BR>) ;_ end-of make-list</DIV><DIV>(defun c:pl32 ()<BR>&nbsp; (pline-3d-2d)<BR>&nbsp; (princ)<BR>) ;_ end of pl32</DIV><DIV>(prompt "Enter PL32 to start: ")</DIV><DIV>&nbsp;</DIV><DIV><strong><U><FONT color=#ff0000>Flatten "Z" Coordinates</FONT></U></strong></DIV><DIV><strong><U><FONT color=#ff0000></FONT></U></strong>&nbsp;</DIV><DIV>;;<BR>;;&nbsp; Flatten.lsp - Converts 3d geometry to 2d geometry.<BR>;;<BR>;;&nbsp; Copyright © 1999 by Autodesk, Inc.<BR>;;<BR>;;&nbsp; Your use of this software is governed by the terms and conditions<BR>;;&nbsp; of the License Agreement you accepted prior to installation of this<BR>;;&nbsp; software.&nbsp; Please note that pursuant to the License Agreement for this<BR>;;&nbsp; software, "&#091;c&#093;opying of this computer program or its documentation<BR>;;&nbsp; except as permitted by this License is copyright infringement under<BR>;;&nbsp; the laws of your country.&nbsp; If you copy this computer program without<BR>;;&nbsp; permission of Autodesk, you are violating the law."<BR>;;<BR>;;&nbsp; AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.<BR>;;&nbsp; AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF<BR>;;&nbsp; MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.&nbsp; AUTODESK, INC.<BR>;;&nbsp; DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE<BR>;;&nbsp; UNINTERRUPTED OR ERROR FREE.<BR>;;<BR>;;<BR>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<BR>(defun c:flatten ( / ss ans )<BR>&nbsp;(acet-error-init (list nil 1))<BR>&nbsp;<BR>&nbsp;(princ "\nSelect objects to convert to 2d...")<BR>&nbsp;(if (not acet:flatn-hide)<BR>&nbsp;&nbsp;&nbsp;&nbsp; (setq acet:flatn-hide "No")<BR>&nbsp;);if<BR>&nbsp;<BR>&nbsp;(if (and (setq ss (ssget "_:l" '((-4 . "&lt;NOT") (0 . "VIEWPORT") (-4 . "NOT&gt;"))));setq<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq ss (car (acet-ss-filter (list ss nil T))))<BR>&nbsp;&nbsp;&nbsp;&nbsp; );and<BR>&nbsp;&nbsp;&nbsp;&nbsp; (progn<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (initget "Yes No")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq ans (getkword <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (acet-str-format "\nRemove hidden lines? &lt;%1&gt;: "<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; acet:flatn-hide<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );getkword<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );setq<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (if (not ans)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq ans acet:flatn-hide)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq acet:flatn-hide ans) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );if<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (if (equal ans "No")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (acet-flatn ss nil)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (acet-flatn ss T)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );if<BR>&nbsp;&nbsp;&nbsp;&nbsp; );progn then<BR>&nbsp;);if<BR>&nbsp;(acet-error-restore)<BR>);defun c:flatten</DIV><DIV><BR>(acet-autoload2&nbsp;'("FLATTENSUP.LSP"&nbsp;(acet-flatn ss hide)))<BR>(princ)</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff size=4><strong>I hope these Help.....</strong></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 03 Apr 2009 04:08:40 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1875&amp;PID=5182&amp;title=convert-3d-polyline-to-polyline#5182</guid>
  </item> 
  <item>
   <title><![CDATA[convert 3d polyline to polyline : I have a 3Dpolyline &amp;amp; want...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1875&amp;PID=5181&amp;title=convert-3d-polyline-to-polyline#5181</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=44212">seashell2day</a><br /><strong>Subject:</strong> 1875<br /><strong>Posted:</strong> 03.Apr.2009 at 01:23<br /><br />I have a 3Dpolyline &amp; want to convert it to a normal polyline without exploding &amp; getting a million lines. Can anyone help?]]>
   </description>
   <pubDate>Fri, 03 Apr 2009 01:23:28 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1875&amp;PID=5181&amp;title=convert-3d-polyline-to-polyline#5181</guid>
  </item> 
 </channel>
</rss>