<?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: Extract footprint from volumes, mesh or solids in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9249481#M79921</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/58962"&gt;@devitg&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Please download the LSP . I forgot a defun and the LAY-COLL&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;IN your DWG the regions were in the wrong elevation.&lt;/P&gt;&lt;P&gt;And when I tried out your latest LISP I got an error:&amp;nbsp;; error: no function definition: ACTV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&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;But I find that the boxy Solids Explode into Regions that all seem to be triangles, and the Solids' faces are made of multiple triangles, not rectangles:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Solid-to-Regions.JPG" style="width: 314px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/716355i01AE4A1EE8682D0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Solid-to-Regions.JPG" alt="Solid-to-Regions.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;&amp;nbsp;- yeah, this particular model was originally a [very triangulated] mesh - this is how I received it. In real life, things like this can happen - you receive models that aren't exactly how you wish they were.&lt;BR /&gt;I thought this could be easily repaired in 3dsMax and then exporting back to DWG. It wasn't really that easy, but doable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "good" thing from real life examples (with problems) is that we're forced to investigate other methods. For example the script from&amp;nbsp;CodeDing that worked perfectly nice with clean solids didn't work at all with this triangulated mesh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1166654"&gt;@doaiena&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1092502"&gt;@Haider_of_Sweden&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;please keep in mind that the polylines need to be in their correct elevation in 3D. SOLPROF is a 2D tool for layouts.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are you sure?&lt;BR /&gt;&lt;BR /&gt;If this is the expected result, i might be on to something.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":astonished_face:"&gt;😲&lt;/span&gt;&amp;nbsp;Incredible! I didn't investigate the error message that said "You must be in a Layout to use SOLPROF." more clearly because I assumed it would be a 2d-tool. One might wonder why you have to go to Layout to make it work...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1166654"&gt;@doaiena&lt;/a&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the steps again&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Enter a layout-view&lt;/LI&gt;&lt;LI&gt;Be in TOP-view&lt;/LI&gt;&lt;LI&gt;SOLPROF&lt;OL&gt;&lt;LI&gt;select objects&lt;/LI&gt;&lt;LI&gt;Display hidden profile lines on separate layer? NO (choose YES if the model is complex. You might get more more lines. But then, you might also need to do fixes by hand)&lt;/LI&gt;&lt;LI&gt;Project profile lines onto a plane: NO (if YES; then you get a 2D projection which we do not want in this case)&lt;/LI&gt;&lt;LI&gt;Delete tangential edges? YES (tangential edges are the side edges and we don't need them either)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;We now have a block of all lines. This block needs to be exploded and the lines need to be joined together.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If you need the volumes bottom-footprint as well, follow the above steps but be on the BOTTOM-view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is one of the best solutions since its fast and doesn't require much and it worked with messy "triangulated solids" (mesh that were converted to solids).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Downsides&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If two identical volumes are next to each other, you will end up having overlapping lines where they touch each other side by side. When selecting all lines to join them, the footprint can end up wrong.&lt;/LI&gt;&lt;LI&gt;if we have two volumes with different heights next to eachother, SOLPROF will catch the upper edge and might miss the lower edge if you selected both of them at the same time during the operation. We will need to select them individually and run SOLRPOF individually.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution with LISP&lt;/P&gt;&lt;P&gt;I would be thankful if someone is willing to take a look at this.&amp;nbsp;LISP can solve this&amp;nbsp; by running SOLPROF individually on each of the selected solids, something like this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;go to top view (alternatively layout and then top-view)&lt;/LI&gt;&lt;LI&gt;run this operation on the solids &lt;U&gt;&lt;STRONG&gt;individuall&lt;/STRONG&gt;&lt;/U&gt;:&amp;nbsp;SOLPROF NO NO YES&lt;/LI&gt;&lt;LI&gt;rename layers PH-XXX &amp;gt; TOP-footprint-hidden &amp;amp; PV-XXX &amp;gt; TOP-footprint&lt;/LI&gt;&lt;LI&gt;go to bottom view (alternatively layout and then bottom-view)&lt;/LI&gt;&lt;LI&gt;same as above&lt;/LI&gt;&lt;LI&gt;rename layers to BOTTOM-footprint-hidden &amp;amp; BOTTOM-footprint&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Tue, 14 Jan 2020 13:45:14 GMT</pubDate>
    <dc:creator>Haider_of_Sweden</dc:creator>
    <dc:date>2020-01-14T13:45:14Z</dc:date>
    <item>
      <title>Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9234959#M79901</link>
      <description>&lt;P&gt;Take a look at this screenshot&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="example" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/713960iECF94AF926650F0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="top-side-view.png" alt="example" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;example&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can LISP extract the footprint, for example the top-face and bottom-face of these volumes, which could be meshes or solids?&lt;/P&gt;&lt;P&gt;I have a solution how it can be done in 3dsMax, but I am investigating this to be done directly in AutoCAD environment.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 10:22:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9234959#M79901</guid>
      <dc:creator>Haider_of_Sweden</dc:creator>
      <dc:date>2020-01-07T10:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9235006#M79902</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1092502"&gt;@Haider_of_Sweden&lt;/a&gt;&amp;nbsp; Something like ?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-volume-of-a-solid/td-p/888845" target="_blank"&gt;;;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-volume-of-a-solid/td-p/888845&lt;/A&gt;&lt;BR /&gt;;;Edited by Júnior Nogueira&lt;BR /&gt;&lt;BR /&gt;(defun C:TEST ( / ent hnd vol cen )
    (setq ent (entsel "\nSelect Object: "))
    (if (null ent)
        (progn
            (setq hnd (car ent)
                axo (vlax-ename-&amp;gt;vla-object hnd)
                vol (vla-get-volume axo))
                (princ (strcat "\nVolume: " (rtos vol)))
                (if (vlax-property-available-p axo "Centroid")
                    (progn
                        (setq cen (vlax-get axo "Centroid"))
                        (princ (strcat "\nX: " (rtos (car cen))))
                        (princ (strcat "\nY: " (rtos (cadr cen))))
                        (princ (strcat "\nZ: " (rtos (caddr cen))))
                    )
                )
        )
    )
  (princ)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 10:55:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9235006#M79902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-07T10:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9235162#M79903</link>
      <description>&lt;P&gt;Use (vla-getboundingbox) method to get lower left bottom point and upper right top point... Then you can EXPLODE BOXES and iterate through regions again using (vla-getboundingbox) method... If (equal (caddr ll) (caddr ur) 1e-8) of one of regions then region is top or bottom footprint - now you only need to check if (equal (caddr ll) (caddr llbottom) 1e-8) then REGION is bottom footprint, and if (equal (caddr ll) (caddr urtop) 1e-8) then it's top footprint... Now you can copybase REGIONS with point 0,0,0 and undo everything to before EXPLODE-ing... Exit routine and just pasteclip from clipboard to 0,0,0... Footprints will be extracted and BOXES will be present too... Now you only need to decide what to do with footprints REGIONS...&lt;/P&gt;&lt;P&gt;HTH., M.R.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 12:14:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9235162#M79903</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2020-01-07T12:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9235277#M79904</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1092502"&gt;@Haider_of_Sweden&lt;/a&gt;&amp;nbsp; Something like ?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-volume-of-a-solid/td-p/888845" target="_blank" rel="noopener"&gt;;;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-volume-of-a-solid/td-p/888845&lt;/A&gt;&lt;BR /&gt;;;Edited by Júnior Nogueira&lt;BR /&gt;&lt;BR /&gt;(defun C:TEST ( / ent hnd vol cen )
    (setq ent (entsel "\nSelect Object: "))
    (if (null ent)
        (progn
            (setq hnd (car ent)
                axo (vlax-ename-&amp;gt;vla-object hnd)
                vol (vla-get-volume axo))
                (princ (strcat "\nVolume: " (rtos vol)))
                (if (vlax-property-available-p axo "Centroid")
                    (progn
                        (setq cen (vlax-get axo "Centroid"))
                        (princ (strcat "\nX: " (rtos (car cen))))
                        (princ (strcat "\nY: " (rtos (cadr cen))))
                        (princ (strcat "\nZ: " (rtos (caddr cen))))
                    )
                )
        )
    )
  (princ)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Nothing happened after I selected an object, after it asked me to Select Object. Also, dragging&amp;nbsp; a box over multiple objects is a preferable selection method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Use (vla-getboundingbox) method to get lower left bottom point and upper right top point... Then you can EXPLODE BOXES and iterate through regions again using (vla-getboundingbox) method... If (equal (caddr ll) (caddr ur) 1e-8) of one of regions then region is top or bottom footprint - now you only need to check if (equal (caddr ll) (caddr llbottom) 1e-8) then REGION is bottom footprint, and if (equal (caddr ll) (caddr urtop) 1e-8) then it's top footprint... Now you can copybase REGIONS with point 0,0,0 and undo everything to before EXPLODE-ing... Exit routine and just pasteclip from clipboard to 0,0,0... Footprints will be extracted and BOXES will be present too... Now you only need to decide what to do with footprints REGIONS...&lt;/P&gt;&lt;P&gt;HTH., M.R.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Could you please help me by rewriting this to script?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 13:13:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9235277#M79904</guid>
      <dc:creator>Haider_of_Sweden</dc:creator>
      <dc:date>2020-01-07T13:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9237744#M79905</link>
      <description>&lt;P&gt;If they're always and only simple shapes with vertical side planes as in your image, you can draw another rectangle or Circle or any closed shape that completely surrounds them, and use BOUNDARY, picking a point inside that surrounding shape but outside any of the objects.&amp;nbsp; Eliminate the surrounding shape and the resulting Polyline or Region that coincides with it, and the remaining resulting Polylines or Regions will be the footprints of the objects [though only&amp;nbsp;&lt;EM&gt;one&lt;/EM&gt;&amp;nbsp; per object, not top &lt;EM&gt;and&lt;/EM&gt;&amp;nbsp; bottom planes].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the objects have "simple" complications, like &lt;EM&gt;taper&amp;nbsp;&lt;/EM&gt;&amp;nbsp;but with top and bottom planes parallel to the drawing plane [such as from a simple EXTRUDE with a taper angle], Boundary makes results that duplicate the shapes of&amp;nbsp;&lt;EM&gt;both&lt;/EM&gt;&amp;nbsp; the top and bottom surfaces, though both at Elevation = 0.&amp;nbsp; I haven't experimented with what happens when they have further complications such as &lt;EM&gt;sloped&lt;/EM&gt;&amp;nbsp; top surfaces, more complex notches cut out, holes through them, etc. -- I leave that to you if you have those kinds of configurations to deal with.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 14:27:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9237744#M79905</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-01-08T14:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9238077#M79906</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;- I've got a huge amount of volumes, so it gotta be automated.&lt;/P&gt;&lt;P&gt;Also,I missed to mention a crucial part. The extracted footprints need to have the same elevation as the surfaces they were extracted from.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 08 Jan 2020 16:19:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9238077#M79906</guid>
      <dc:creator>Haider_of_Sweden</dc:creator>
      <dc:date>2020-01-08T16:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9238181#M79907</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1092502"&gt;@Haider_of_Sweden&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;.... The extracted footprints need to have the same elevation as the surfaces they were extracted from.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And what exactly do you mean by "extracted"?&amp;nbsp; If you just want to &lt;EM&gt;have&lt;/EM&gt;&amp;nbsp; them in the drawing as separate drawn objects from the source objects, can you simply EXPLODE each source object [or a copy of it]?&amp;nbsp; You'll get Regions for all the faces from a Solid, or 3DFaces from a Mesh, and they'll be at the right elevations, orientations, etc.&amp;nbsp; If you mean you want only &lt;EM&gt;certain ones&lt;/EM&gt;&amp;nbsp; among those, as Message 1 implies, then some coordinate evaluation as already suggested by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt;&amp;nbsp; would help identify the right ones, &lt;EM&gt;depending on the complexity of the shapes&lt;/EM&gt;.&amp;nbsp; If, on the other hand, "extract" involves something else, such as putting information about them into an external file, that's another level....&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 16:53:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9238181#M79907</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-01-08T16:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9238288#M79908</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1092502"&gt;@Haider_of_Sweden&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To give my bare-bones interpretation, I believe this could be accomplished with the following workflow:&lt;/P&gt;&lt;PRE&gt;- Use XEDGES to create linework outlining object
- Create selection set of new lines created from XEDGES
- FLATTEN new selection set (ss)
- Create REGION around ss
- Save entity (ent) created by region
- Delete items in ss (since we don't need them anymore)
- Bring ent to correct elevation&lt;BR /&gt;*Do stuff with region*&lt;/PRE&gt;&lt;P&gt;...I just don't have any of this coded Lol. Thoughts anybody?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 17:26:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9238288#M79908</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2020-01-08T17:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9239916#M79909</link>
      <description>&lt;P&gt;Please take a look at the screenshot, a scene could look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Sample Scene" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/714770iD9FB248733571E67/image-size/large?v=v2&amp;amp;px=999" role="button" title="Buildings.png" alt="Sample Scene" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Sample Scene&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also provided some sample DWGs:&lt;BR /&gt;Buildings Footprint 3D solids.DWG - buildings in 3D. They all have the same height. In a real model, the buildings would most likely have different heights.&lt;BR /&gt;Buildings Footprint 3D mesh.DWG - as stated before, my question was also about mesh-objects, whether a LISP could handle mesh surfaces and not only solids.&lt;BR /&gt;Buildings Footprint 2D top level - this one was made in 3dsMax. The footprints are generated based on the top-faces of the volumes. &lt;U&gt;THIS is the result I am looking for&lt;/U&gt;, but &lt;U&gt;in AutoCAD&lt;/U&gt;. Why? Because I want options. I don't want to be dependent on 3dsMax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both the BOUNDARY and XEDGES commands were cool and useful (no matter how good I think I am in AutoCAD, there are still commands I didn't know of &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; ). So thanks for those tips, but still, they are not relevant in this case.&lt;BR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;- with "extract" I mean have.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The project could be much larger than the sample file, therefore exploding and manually doing this will simply not work. This is why I hope this thread will result in a scripted/automated solution.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 11:40:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9239916#M79909</guid>
      <dc:creator>Haider_of_Sweden</dc:creator>
      <dc:date>2020-01-09T11:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9240592#M79910</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1092502"&gt;@Haider_of_Sweden&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will probably not be your final solution, but it is a start.&lt;/P&gt;&lt;P&gt;Here is the workflow:&lt;/P&gt;&lt;P&gt;- get all 3D SOLIDS&lt;/P&gt;&lt;P&gt;- loop through each solid entity&lt;/P&gt;&lt;P&gt;- explode entity into regions&lt;/P&gt;&lt;P&gt;- explode regions into lines&lt;/P&gt;&lt;P&gt;- find lowest elevation of lines (to use as base elevation)&lt;/P&gt;&lt;P&gt;- select only lines at lowest elevation&lt;/P&gt;&lt;P&gt;- extract vertices at lowest lines&lt;/P&gt;&lt;P&gt;- erase lines&lt;/P&gt;&lt;P&gt;- create polyline (I can't figure the best way to close the polyline, it works though)&lt;/P&gt;&lt;P&gt;- (optional) bring back 3DSOLID entity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PLEASE NOTE:&lt;/P&gt;&lt;P&gt;- This ONLY works on 3DSOLIDs&lt;/P&gt;&lt;P&gt;- This ONLY works from a "top-down" perspective&lt;/P&gt;&lt;P&gt;- This ASSUMES there are NO other Lines and NO other Regions in your model space&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps. It's the furthest I can get at the moment.&lt;/P&gt;&lt;PRE&gt;(defun c:TEST ( / osm cmd cnt tmp e3D ss3D ssR ssL ssLF elev eL sZ eZ eList pList)
&lt;FONT color="#FF6600"&gt;;helper function(s)&lt;/FONT&gt;
  (defun ElevLWPoly (lst cls elev)
    (entmakex (append (list (cons 0 "LWPOLYLINE") (cons 100 "AcDbEntity") (cons 100 "AcDbPolyline")
                            (cons 90 (length lst)) (cons 70 cls) (cons 38 elev))
                      (mapcar (function (lambda (p) (cons 10 p))) lst)))
  );defun
&lt;FONT color="#FF6600"&gt;;begin work&lt;/FONT&gt;
(if (setq ss3D (ssget '((0 . "3DSOLID") (410 . "Model"))))
  (progn
    (setq osm (getvar 'OSMODE) cmd (getvar 'CMDECHO))
    (setvar 'OSMODE (logior 16384 osm)) (setvar 'CMDECHO 0)
    (repeat (setq cnt (sslength ss3D))
      (setq e3D (ssname ss3D (setq cnt (1- cnt))))
      (command "_.EXPLODE" e3D)
      (setq ssR (ssget "_P" '((0 . "REGION") (410 . "Model"))))
      (setvar 'QAFLAGS 1) (command "_.EXPLODE" ssR "") (setvar 'QAFLAGS 0)
      (setq ssL (ssget "_P" '((0 . "LINE") (410 . "Model"))))
      (setq elev nil)
      &lt;FONT color="#FF6600"&gt;;find our bottom elevation&lt;/FONT&gt;
      (repeat (setq cnt2 (sslength ssL))
	(setq eL (ssname ssL (setq cnt2 (1- cnt2))))
	(setq sZ (getpropertyvalue eL "StartPoint/Z")
	      eZ (getpropertyvalue eL "EndPoint/Z"))
	(if elev
	  (setq elev (min elev sZ eZ))
	  (setq elev (min sZ eZ))
	);if
      );repeat
      &lt;FONT color="#FF6600"&gt;;create new sel set with only bottom elevation lines&lt;/FONT&gt;
      (setq ssLF (ssget "_P" (list '(0 . "LINE") '(410 . "Model")
				   '(-4 . "*,*,=") (cons 10 (list 0.0 0.0 elev))
				   '(-4 . "*,*,=") (cons 11 (list 0.0 0.0 elev)))))
      &lt;FONT color="#FF6600"&gt;;get coordinates from final lines&lt;/FONT&gt;
      (setq eList nil)
      (setq pList (mapcar '(lambda (x) (cdr (assoc 10 x)))
			  (mapcar 'entget (repeat (setq cnt2 (sslength ssLF))
						  (setq tmp (ssname ssLF (setq cnt2 (1- cnt2))))
						  (if eList (setq eList (cons tmp eList)) (setq eList (list tmp)))))))
      (command "_.ERASE" ssL "");delete unnecessary lines
      (ElevLWPoly pList 0 elev);create PLINE
      ;(entdel e3D);Bring back 3D Solid, if desired
      (setq ssR nil ssL nil ssLF nil eList nil pList nil)
    );repeat
    (setvar 'OSMODE osm) (setvar 'CMDECHO cmd)
  );progn
;else
  (prompt "\n...No 3D Solids found in Model space.")
);if
(princ)
);defun&lt;/PRE&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:08:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9240592#M79910</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2020-01-09T16:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9241446#M79911</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5680873"&gt;@CodeDing&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;This will probably not be your final solution, but it is a start.&lt;/P&gt;&lt;P&gt;- find lowest elevation of lines (to use as base elevation)&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think its a great start! Wonderful job. And I so love the lisp working itself through the objects &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it possible to find the heighest elevation of lines?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5680873"&gt;@CodeDing&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;- explode entity into regions&lt;/P&gt;&lt;P&gt;- explode regions into lines&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;1) When I exploded the polyline, I noticed that there were two lines where I thought there should be one. Why is that?&lt;/P&gt;&lt;P&gt;2) I will use this tool in Civil3D to explort SHP files. I just checked and the MAPEXPORT tool supports Polygon which appears to be the same thing as regions. What alteration do we need to do have it stop at regions, ie not doing the whole polyline conversion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5680873"&gt;@CodeDing&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;- create polyline (I can't figure the best way to close the polyline, it works though)&lt;/P&gt;&lt;P&gt;- (optional) bring back 3DSOLID entity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PLEASE NOTE:&lt;/P&gt;&lt;P&gt;- This ASSUMES there are NO other Lines and NO other Regions in your model space&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;1) thanks for informing about non-closed polylines. I will select them all and close them that way. &lt;STRONG&gt;If anyone who reads this has a solution, please share your knowledge to the community. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) I am curious, how could it bring back the 3D Solids? Wheren't they deleted the first place?&lt;/P&gt;&lt;P&gt;3) Just for the record. Out of curiosity, I tested with lines in the model space. Works without any problems with lines, ie, nothing halts or crashes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last but not least.&amp;nbsp;I noticed a &lt;STRONG&gt;strange behaviour&lt;/STRONG&gt;. Initially, I wanted to stress-test the script to see if it would mess things up if two volumes share the same edge/border.&lt;/P&gt;&lt;P&gt;To do so, I created two boxes and placed them next to each other. In other words, they were made in AutoCAD and not like the other volumes in the sample file. The box are also 3D Solids, but had their handles left.&lt;/P&gt;&lt;P&gt;So what happened was that the face/footprint was triangulated. Why did this happen?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 20:55:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9241446#M79911</guid>
      <dc:creator>Haider_of_Sweden</dc:creator>
      <dc:date>2020-01-09T20:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9241468#M79912</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1092502"&gt;@Haider_of_Sweden&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very sorry, but I will be very busy through the rest of today and the weekend. I will have to reply in detail next week. If somebody else decides to help you or explain further, that would be great! Enjoy your weekend!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 21:07:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9241468#M79912</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2020-01-09T21:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9241486#M79913</link>
      <description>&lt;P&gt;Ah, thank you for replying! I never expected to get a reply this fast anyway. &lt;STRONG&gt;Wish you a great weekend as well&lt;/STRONG&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meanwhile, I'd like to add something else to what you said before, regarding closed polylines.&lt;/P&gt;&lt;P&gt;I know that LISP can run regular AutoCAD commands. Also, I am assuming (not sure though) that the lisp can remember the entity it was doing something with before going further to the next one - if so, then this is what we can do with an entity:&lt;/P&gt;&lt;P&gt;- Explode region&lt;/P&gt;&lt;P&gt;- PEDIT &amp;gt; Multiple &amp;gt; Select all the lines created above &amp;gt; Join &amp;gt; 0 &amp;gt; Close &amp;gt; ENTER&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this can be run in LISP, then there we got the solution. Also, we prevent the double lines in the polyline...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;: Using P when asked for a selection selects the last selected item, which in this case was the Region. Not sure if works from within Lisp...&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 21:20:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9241486#M79913</guid>
      <dc:creator>Haider_of_Sweden</dc:creator>
      <dc:date>2020-01-09T21:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9241698#M79914</link>
      <description>&lt;P&gt;I think you should look at the "solprof" command. There is a high possibility that you could achieve your desired result, without the need for autolisp automation. Have in mind, that this will work for 3dSolids only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. soprof all solids&lt;/P&gt;&lt;P&gt;2. explode the resulting block&lt;/P&gt;&lt;P&gt;3. join all lines into polylines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That operation took me a few seconds to do by hand on your drawing.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 23:31:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9241698#M79914</guid>
      <dc:creator>doaiena</dc:creator>
      <dc:date>2020-01-09T23:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9241714#M79915</link>
      <description>&lt;P&gt;Please clear if each block or building have a regular&amp;nbsp; or equal Z value for its bottom. and if all are prismatic, say the same area at top and bottom.&amp;nbsp; &amp;nbsp;And for better understand,&amp;nbsp; upload a REAL DWG where you need to apply the LISP&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 23:42:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9241714#M79915</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-01-09T23:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9246696#M79916</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1166654"&gt;@doaiena&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I think you should look at the "solprof" command. There is a high possibility that you could achieve your desired result, without the need for autolisp automation. Have in mind, that this will work for 3dSolids only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. soprof all solids&lt;/P&gt;&lt;P&gt;2. explode the resulting block&lt;/P&gt;&lt;P&gt;3. join all lines into polylines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That operation took me a few seconds to do by hand on your drawing.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;please keep in mind that the polylines need to be in their correct elevation in 3D. SOLPROF is a 2D tool for layouts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/58962"&gt;@devitg&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Please clear if each block or building have a regular&amp;nbsp; or equal Z value for its bottom. and if all are prismatic, say the same area at top and bottom.&amp;nbsp; &amp;nbsp;And for better understand,&amp;nbsp; upload a REAL DWG where you need to apply the LISP&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Each building have different elevation/z-value for bottom and top.&lt;/P&gt;&lt;P&gt;The provided DWG is real &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; - however, I provided yet another scene, that has buildings from a real place. File unit is meter, coordinate system is SWEREF 99 18 00. It is located in central Stocholm, Sweden.&lt;/P&gt;&lt;P&gt;As you notice, the buldings have different roof height, different bottom elevation and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This LISP need to be able to create polylines that represent the exact same face locations as the original solids.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I also provided a MESH-version of the same site. If anyone knows a solution that works on mesh too, then please share the solution with us. I had to go through Rhino to convert the mesh to solids. I don't mind using multiple software, but if there are solutions that work in one single software, I would like to know it.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 11:02:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9246696#M79916</guid>
      <dc:creator>Haider_of_Sweden</dc:creator>
      <dc:date>2020-01-13T11:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9246731#M79917</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1092502"&gt;@Haider_of_Sweden&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;please keep in mind that the polylines need to be in their correct elevation in 3D. SOLPROF is a 2D tool for layouts.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are you sure?&lt;BR /&gt;&lt;BR /&gt;If this is the expected result, i might be on to something.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 11:20:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9246731#M79917</guid>
      <dc:creator>doaiena</dc:creator>
      <dc:date>2020-01-13T11:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9248001#M79918</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1092502"&gt;@Haider_of_Sweden&lt;/a&gt;&amp;nbsp;wrote:
&lt;P class="1578948563402"&gt;&lt;SPAN style="font-family: inherit;"&gt;....&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;This LISP need to be able to create polylines that represent the exact same face locations as the original solids .....&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was thinking one could Explode a Solid into Regions, Explode the Regions into Lines, Join the Lines into Polylines, assuming they would be rectangles, and then compare the coordinates of their corners to decide whether they lie in a horizontal or a vertical plane.&amp;nbsp; If a rectangle has two corners at one Z coordinate value and the other two at another, it's one that came from the side of a Solid, and could be eliminated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I find that the boxy Solids Explode into Regions that all seem to be triangles, and the Solids' faces are made of multiple triangles, not rectangles:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Solid-to-Regions.JPG" style="width: 314px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/716355i01AE4A1EE8682D0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Solid-to-Regions.JPG" alt="Solid-to-Regions.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I guess there could still be some analysis of which of them should be eliminated and which kept, but I'm not sure it would be possible to come up with [for example] the rectangle that represents the top of that box.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 20:59:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9248001#M79918</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-01-13T20:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9248292#M79919</link>
      <description>&lt;P&gt;I use other way , to get the section at the down point[dl] from Boundingbox , But some building have&amp;nbsp; the DL&amp;nbsp; a bit downward than the building . I do not not why, but it is.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So&amp;nbsp; If there is no section at such down point I iterate by 0.01 up to get the section, so the section will be at most 0.01 m from the original footprint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it will no matter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See attached dwg and LISP&lt;/P&gt;&lt;P&gt;I have to say that I do LISP , as&amp;nbsp; Fred&amp;nbsp; Flintstone.&amp;nbsp; NO NOTHING , error , vars , and so on&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See dwg attached&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 23:22:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9248292#M79919</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-01-13T23:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Extract footprint from volumes, mesh or solids</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9248415#M79920</link>
      <description>&lt;P&gt;Please download the LSP . I forgot a defun and the LAY-COLL&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 01:09:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-footprint-from-volumes-mesh-or-solids/m-p/9248415#M79920</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-01-14T01:09:39Z</dc:date>
    </item>
  </channel>
</rss>

