<?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: LISP that converts 3D polyline to solid in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11874004#M32702</link>
    <description>&lt;P&gt;I should add to say that after the adjusments it did worked the lisp routine&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 08:59:25 GMT</pubDate>
    <dc:creator>LukasA-HAK</dc:creator>
    <dc:date>2023-04-05T08:59:25Z</dc:date>
    <item>
      <title>LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11844645#M32659</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am a surveyor at a pipe construction company.&lt;BR /&gt;The preliminary design requires data from pipeline traces of other companies that are already in the ground with their pipeline traces&lt;BR /&gt;Test trenches must be dug for this purpose.&lt;BR /&gt;The engineering firm wants this data to be supplied in autocad solids 3D. With the pipe data in the layer name.&lt;BR /&gt;The work process for this is now:&lt;BR /&gt;Create layer name. Place circle with diameter pipe on 3D polyline. Apply command sweep along path. Then I still have to move the solid because the top of the pipes have been measured.&lt;BR /&gt;This must be done manually for each pipe. Sometimes I'm busy for days.&lt;/P&gt;&lt;P&gt;Isn't there an autocad lisp routine that can automate this work??&lt;BR /&gt;It would be nice if this lisp could retrieve the diameter from, say, the layer name.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 10:20:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11844645#M32659</guid>
      <dc:creator>LukasA-HAK</dc:creator>
      <dc:date>2023-03-24T10:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11844715#M32660</link>
      <description>&lt;P&gt;Seems possible. But post a sample dwg, before and after.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 10:55:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11844715#M32660</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-03-24T10:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11844984#M32661</link>
      <description>&lt;P&gt;Something similar to &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-z-axis-orientation-to-two-user-points-to-draw-and-extrude/m-p/3328019/highlight/true#M302292" target="_blank" rel="noopener"&gt;&amp;gt;this&amp;lt;&lt;/A&gt;, perhaps?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 12:42:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11844984#M32661</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-03-24T12:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845095#M32662</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Attached are the example files of the test trenches.&lt;BR /&gt;With the GPS measurement in the start file. And with the end file the end result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope everything is clear for you.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 13:32:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845095#M32662</guid>
      <dc:creator>LukasA-HAK</dc:creator>
      <dc:date>2023-03-24T13:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845128#M32663</link>
      <description>&lt;P&gt;Hello thank you , but I am just starting to learn LISP.&lt;/P&gt;&lt;P&gt;Should the code not begin with defun followed with the name of the routine?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 13:47:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845128#M32663</guid>
      <dc:creator>LukasA-HAK</dc:creator>
      <dc:date>2023-03-24T13:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845143#M32664</link>
      <description>&lt;P&gt;The start drawing does not include any 3dpolylines.&amp;nbsp;Do you draw them manually (it could be part of the routine), or do you have list of points that are part of one pipeline?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 13:58:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845143#M32664</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-03-24T13:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845158#M32665</link>
      <description>&lt;P&gt;This is how I receive the data from the GPS device.&lt;BR /&gt;I have to draw the 3d polyline manually.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:08:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845158#M32665</guid>
      <dc:creator>LukasA-HAK</dc:creator>
      <dc:date>2023-03-24T14:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845186#M32666</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9274851"&gt;@LukasA-HAK&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello thank you , but I am just starting to learn LISP.&lt;/P&gt;
&lt;P&gt;Should the code not begin with defun followed with the name of the routine?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To be defined into a command name, yes -- it's the &lt;EM&gt;steps involved&lt;/EM&gt; to do what they were asking, which can be done independent of "wrapping" them into a command name.&amp;nbsp; That's easily added, when the steps are determined to be what's wanted.&amp;nbsp; BUT FIRST:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your idea that a routine would find all the appropriate pairs to stretch pipes between?&amp;nbsp; Or would you go around and pick them?&amp;nbsp; If the routine is supposed to find them, how would it know which ones go together?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And what about the objects that do&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt;&amp;nbsp;extend between two Blocks as most do [what I changed to red here, viewing in 3D]?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1679666565529.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1193070i9D4CF3D3748CF3EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1679666565529.png" alt="Kent1Cooper_0-1679666565529.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What determines their lengths, and the directions they run?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You also have some that have a Block at only one end [magenta here]:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_1-1679666995182.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1193071i9A58C7B6B71D4925/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_1-1679666995182.png" alt="Kent1Cooper_1-1679666995182.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Again, what&amp;nbsp;determines their lengths, and the directions they run?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And most are single-run pieces between two Blocks, but then there's at least one multi-segment one [yellow]:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_2-1679667186797.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1193073i7A021075DC3D66AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_2-1679667186797.png" alt="Kent1Cooper_2-1679667186797.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What determines that situation, rather than [for example] two singles without the middle segment?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't see anything reliable about Attribute values to distinguish things that are handled differently, but maybe there's something I'm not noticing.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:17:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845186#M32666</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-03-24T14:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845190#M32667</link>
      <description>&lt;P&gt;I will provide a drawing&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:19:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845190#M32667</guid>
      <dc:creator>LukasA-HAK</dc:creator>
      <dc:date>2023-03-24T14:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845228#M32668</link>
      <description>&lt;P&gt;Yes, it is my idea that the program itself searches for the relevant points in order. I just thought it would be easiest to do this with point numbering. That the program recognizes consecutive points. For example from 110,111,112. And a new series: 120,121,122,123.&lt;BR /&gt;It could also be possible by running a 3d polyline over the relevant points. But it is difficult to name the layer name in the field of work.&lt;BR /&gt;But if this is difficult to program then the user has to select these points himself&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:33:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845228#M32668</guid>
      <dc:creator>LukasA-HAK</dc:creator>
      <dc:date>2023-03-24T14:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845243#M32669</link>
      <description>&lt;P&gt;It would be a better idea that the program itself finds the relevant points in order. I just thought it would be easiest to do this with point numbering. That the program recognizes consecutive points. For example from 110,111,112. And a new series: 120,121,122,123.&lt;BR /&gt;It could also be possible by running a 3d polyline over the relevant points. But it is difficult to name the layer name in the field of work.&lt;BR /&gt;But if this is difficult to program then the user has to select these points himself&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:38:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845243#M32669</guid>
      <dc:creator>LukasA-HAK</dc:creator>
      <dc:date>2023-03-24T14:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845257#M32670</link>
      <description>&lt;P&gt;I should explain this.&lt;/P&gt;&lt;P&gt;Sometimes the direction of a cable trace is known because they run parallel to the road. But we don't know where it is. Because it is sometimes difficult to measure multiple points on a pipe or cable, you sometimes only have 1 point. But this can be solved by measuring at least 2 points by using a trick while measuring.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:45:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845257#M32670</guid>
      <dc:creator>LukasA-HAK</dc:creator>
      <dc:date>2023-03-24T14:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845261#M32671</link>
      <description>&lt;P&gt;I would probably tend to do two routines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first will draw a 3dpolylines following point numbering and break by (layer/pipe)types.&lt;/P&gt;
&lt;P&gt;Then must the user step in and fix it - break it where two different pipes of same type are in sequence.. and other things mentioned by Kent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second&amp;nbsp; routine simply converts 3dpylies to solids.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:51:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845261#M32671</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-03-24T14:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845267#M32672</link>
      <description>&lt;P&gt;I think this is a good idea&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:49:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845267#M32672</guid>
      <dc:creator>LukasA-HAK</dc:creator>
      <dc:date>2023-03-24T14:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845276#M32673</link>
      <description>&lt;P&gt;I have 2 days of now. I may nog be able to reply this weekend. I have two little kids.&lt;/P&gt;&lt;P&gt;But thank you already&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:51:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845276#M32673</guid>
      <dc:creator>LukasA-HAK</dc:creator>
      <dc:date>2023-03-24T14:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845414#M32674</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9274851"&gt;@LukasA-HAK&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... That the program recognizes consecutive points. For example from 110,111,112. And a new series: 120,121,122,123.....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;More criteria would be needed.&amp;nbsp; You have, for example, an area of Blocks with &lt;FONT color="#008000"&gt;green&lt;/FONT&gt; Attribute values &lt;FONT size="2"&gt;lb2023-01-09-&lt;/FONT&gt;&lt;STRONG&gt;143&lt;/STRONG&gt; through &lt;STRONG&gt;154&lt;/STRONG&gt; inclusive.&amp;nbsp; &lt;STRONG&gt;151&lt;/STRONG&gt; through &lt;STRONG&gt;154&lt;/STRONG&gt; are a three-segment result [yellow in my previous Reply], but the rest are all one-segment pairs.&amp;nbsp; How could a routine differentiate?&amp;nbsp; Why are not &lt;STRONG&gt;151-152&lt;/STRONG&gt; a pair, and &lt;STRONG&gt;153-154&lt;/STRONG&gt; another pair?&amp;nbsp; If there were&amp;nbsp;&lt;EM&gt;gaps&lt;/EM&gt; in the numbers, and only adjacent numbers would be connected, I could kind of imagine a way to do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The single-run pairs in that area all go from one with a &lt;FONT color="#FF0000"&gt;red&lt;/FONT&gt; Attribute value ending in &lt;STRONG&gt;-d50mm&lt;/STRONG&gt; to one ending in &lt;STRONG&gt;-d50mm&lt;FONT color="#0000FF"&gt;mof&lt;/FONT&gt;&lt;/STRONG&gt;, but in the case of the 3-segment one, from &lt;STRONG&gt;-d50mm&lt;/STRONG&gt; &lt;EM&gt;through&lt;/EM&gt;&amp;nbsp;&lt;STRONG&gt;-d50mm&lt;FONT color="#0000FF"&gt;mf&lt;/FONT&gt;&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;-d50mm&lt;FONT color="#0000FF"&gt;mof&lt;/FONT&gt;&lt;/STRONG&gt; and ending on another&amp;nbsp;&lt;STRONG&gt;-d50mm&lt;/STRONG&gt;.&amp;nbsp; What's a routine to think, if &lt;STRONG&gt;-d50mm&lt;/STRONG&gt; is the start for most, but both the start and end of this one, and&amp;nbsp;&lt;STRONG&gt;-d50mm&lt;FONT color="#0000FF"&gt;mof&lt;/FONT&gt;&lt;/STRONG&gt; is the end for most, but an intermediate within this one?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the question remains about lengths and directions of those connected to only one Block, with the additional question of why some have their one Block in the middle of their length, and some at one end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Etc., etc.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 17:58:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845414#M32674</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-03-24T17:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845684#M32675</link>
      <description>&lt;P&gt;The first part. It draws polylines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:connectpoints ( / *error* lay col doc e l k x y p LM:GetInsideAngle)
  
  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break,end"))
      (princ (strcat "\nError: " errmsg)))
    (if col (setvar 'cecolor col))
    (if lay (setvar 'clayer lay))
    (setvar 'cmdecho 1)
    (vla-endundomark doc)
    (princ))
  
  (defun LM:GetInsideAngle ( p1 p2 p3 ) ;; Lee Mac
    ((lambda ( a ) (min a (- (+ pi pi) a))) (rem (+ pi pi (- (angle p2 p1) (angle p2 p3))) (+ pi pi))))
  
  
  ;; ---------------------------------------------------------------------------------------------------------------------------------------------
  
  (setq lay (getvar 'clayer)
	col (getvar 'cecolor)
	doc (vla-get-activedocument (vlax-get-acad-object)))
  
  (if (and (setq e (car (entsel "\nSelect point block: ")))
	   (setq l (ssget "_X" (list (assoc 2 (entget e)))))
	   (setq l (vl-remove 'nil (mapcar '(lambda (e / x)
					      (if (and (not (vl-catch-all-error-p (setq x (vl-catch-all-apply 'getpropertyvalue (list e "PT#")))))
						       (not (vl-catch-all-error-p (vl-catch-all-apply 'getpropertyvalue (list e "DESC2"))))
						       (not (vl-catch-all-error-p (vl-catch-all-apply 'getpropertyvalue (list e "Position"))))
						       )
						(list x
						      (atoi (substr x (1+ (strlen (vl-string-right-trim "0123456789" x)))))
						      (getpropertyvalue e "DESC2")
						      (getpropertyvalue e "Position"))))
					   (vl-remove-if 'listp (mapcar 'cadr (ssnamex l))))))
	   (setq l (vl-sort l '(lambda (e1 e2) (&amp;lt; (car e1) (car e2)))))
	   (foreach e l
	     (setq k (if (and (setq p (caar k))
			      (= (1+ (cadr p)) (cadr e))
			      (wcmatch (caddr e) (strcat (caddr (last (car k))) "*"))
			      (or (= 1 (length (car k)))
				  (&amp;gt; (LM:GetInsideAngle (last e) (last p) (last (cadr (car k)))) (/ pi 2.2))))
		       (cons (cons e (car k)) (cdr k))
		       (cons (list e) k))))
	   (not (vla-startundomark doc))
	   (setvar 'cmdecho 0)
	   )
    
    (foreach e k
      
      (setq e (reverse e)
	    y (caddr (car e))
	    p (mapcar 'last e))
      
      (while (vl-string-search " " y) (setq y (vl-string-subst "" " " y)))
      (if (snvalid y 0)
	(progn
	  (or (tblsearch "layer" y) (vla-add (vla-get-layers doc) y))
	  (setvar 'clayer y))
	(setvar 'clayer "0"))
      
      (if (= 1 (length p))
	(progn
	  (setq p (list (car p) (mapcar '+ (car p) '(0.02 0.02 0))))
	  (setvar 'cecolor "4"))
	(setvar 'cecolor "256"))
      
      (command "_.3dpoly")
      (foreach x p (command "_non" x))
      (command "")))
  
  (*error* "end")
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 08:18:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11845684#M32675</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-04-06T08:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11846370#M32676</link>
      <description>&lt;P&gt;Being involved in road design yes located lots of stuff under the ground, dug swimming pools on occasion looking for stuff.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So you have jumped to step 2 and skipped step 1,&lt;/STRONG&gt; if you read your data in correct it could be strung and 3d plines made, this is a std function of a civil package, join points based on a code library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have spoken about this many times have been doing this since the 80's, John U where are you, it would be better to start by looking at your GPS file. If its straight forward may be able to string all the points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A typical pt file would be ptnum,X,Y,Z,code &amp;amp; description, one of the things you can do is join a "STRING" of common coded points by using a string number 01PIPEGREEN will not join with 02PIPEGREEN. &lt;STRONG&gt;So post a sample gps file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Re 2nd part draw pipe in 3D yes use extrude path, you can draw a circle based on the top quadrant as this must match the actual top of pipe level as this is what is normally measured, if you want real accurate using rotate3d can align at 90 to a sloping 3d pline.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly a concrete 300 dia pipe is not 300 in size its more like 380 as the walls are 40mm thick so that should be taken into account when extruding along path. So need is it plastic concrete steel etc ? We have slid pipes in between services so knowing the last mm was needed. That 80 mm may have been our clearance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One other thing the add on civil packages draw drainage and some may export out 3d tubes. Only thing is they work to invert.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2023 01:31:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11846370#M32676</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-03-25T01:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11852495#M32677</link>
      <description>&lt;P&gt;I understand the problem now.&lt;BR /&gt;But perhaps it is better to look at it from another angle.&lt;BR /&gt;How and in what form should I supply a measurement file so that a LISP routine can be written as simply as possible to achieve a good end result?&lt;BR /&gt;Or maybe there are already existing routines that I can adapt my work to?&lt;BR /&gt;From the software I work with I can export different file formats.&lt;BR /&gt;But I would prefer to continue working with autocad blocks.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 06:21:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11852495#M32677</guid>
      <dc:creator>LukasA-HAK</dc:creator>
      <dc:date>2023-03-28T06:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: LISP that converts 3D polyline to solid</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11852727#M32678</link>
      <description>&lt;P&gt;This works great. How did you do this??&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 08:18:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-converts-3d-polyline-to-solid/m-p/11852727#M32678</guid>
      <dc:creator>LukasA-HAK</dc:creator>
      <dc:date>2023-03-28T08:18:11Z</dc:date>
    </item>
  </channel>
</rss>

