<?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 Deleting small faces/polygons in multipatch datasetts and issues with multipatch footprint in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/deleting-small-faces-polygons-in-multipatch/m-p/1135346#M50238</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I've noticed that several times when i use the CAD to Geodatabase tool and get a multipatch feature it works quite well, utill i use the "Multipatch footprint" tool to create a 2D version of said multipatch feature.&lt;BR /&gt;&lt;BR /&gt;What happens is that the tool sometimes create squares (extent areas?) around certain features, normally when they are really thin (See figure):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndreasLorentzen_1-1642668760844.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31869iEE43CE5C9F6BE733/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndreasLorentzen_1-1642668760844.png" alt="AndreasLorentzen_1-1642668760844.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in cad file:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndreasLorentzen_0-1642668457722.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31868iF34120F2D69F6105/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndreasLorentzen_0-1642668457722.png" alt="AndreasLorentzen_0-1642668457722.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Possible Culprit:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It seems like the culprit is small/ vertical (?) poly-faces that bugs up in the tool. I have no other ideas.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;BR /&gt;The best solution would be to remove all multipatch-features or poly-faces smaller or thinner that some critical value. However, i do not know of any tool, method of doing this, &lt;STRONG&gt;does anyone have an idea?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am also open for arcpy-solutions.&lt;BR /&gt;&lt;BR /&gt;Another solution is of-course to remove all square features later by analyzing either squareness or Areal to border ratio. However, i hope there is a somewhat better method.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Another question:&lt;BR /&gt;&lt;/STRONG&gt;Is there any word of when we can get the possibility to write and read&amp;nbsp; multipatch-geometry in arcpy? or any help-files on this topic?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jan 2022 09:03:56 GMT</pubDate>
    <dc:creator>AndreasLorentzen</dc:creator>
    <dc:date>2022-01-20T09:03:56Z</dc:date>
    <item>
      <title>Deleting small faces/polygons in multipatch datasetts and issues with multipatch footprint</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/deleting-small-faces-polygons-in-multipatch/m-p/1135346#M50238</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I've noticed that several times when i use the CAD to Geodatabase tool and get a multipatch feature it works quite well, utill i use the "Multipatch footprint" tool to create a 2D version of said multipatch feature.&lt;BR /&gt;&lt;BR /&gt;What happens is that the tool sometimes create squares (extent areas?) around certain features, normally when they are really thin (See figure):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndreasLorentzen_1-1642668760844.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31869iEE43CE5C9F6BE733/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndreasLorentzen_1-1642668760844.png" alt="AndreasLorentzen_1-1642668760844.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in cad file:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndreasLorentzen_0-1642668457722.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31868iF34120F2D69F6105/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndreasLorentzen_0-1642668457722.png" alt="AndreasLorentzen_0-1642668457722.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Possible Culprit:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It seems like the culprit is small/ vertical (?) poly-faces that bugs up in the tool. I have no other ideas.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;BR /&gt;The best solution would be to remove all multipatch-features or poly-faces smaller or thinner that some critical value. However, i do not know of any tool, method of doing this, &lt;STRONG&gt;does anyone have an idea?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am also open for arcpy-solutions.&lt;BR /&gt;&lt;BR /&gt;Another solution is of-course to remove all square features later by analyzing either squareness or Areal to border ratio. However, i hope there is a somewhat better method.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Another question:&lt;BR /&gt;&lt;/STRONG&gt;Is there any word of when we can get the possibility to write and read&amp;nbsp; multipatch-geometry in arcpy? or any help-files on this topic?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 09:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/deleting-small-faces-polygons-in-multipatch/m-p/1135346#M50238</guid>
      <dc:creator>AndreasLorentzen</dc:creator>
      <dc:date>2022-01-20T09:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting small faces/polygons in multipatch datasetts and issues with multipatch footprint</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/deleting-small-faces-polygons-in-multipatch/m-p/1142523#M51228</link>
      <description>&lt;P&gt;As nobody replied, i had to fix it.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;What causes the problem?:&lt;/STRONG&gt;&lt;BR /&gt;thin/vertical elements in the multipatch dateset. When using multipatch footprint, the tool cant create a polygon with vertices on top of each other, and therefore creates a bounding box.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;How to implement a fix&lt;/STRONG&gt;&lt;BR /&gt;So the solution is to remove all squares, taking advantage that bounding-boxes always has the two first vertices share X coordinate and the second and third share Y-coordinate.&lt;BR /&gt;Note that you cant use the "group by" option for this to work.&lt;BR /&gt;&lt;BR /&gt;Code&lt;/P&gt;&lt;PRE&gt;number_of_squares_removed = &lt;SPAN&gt;0&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;with &lt;/SPAN&gt;arcpy.da.UpdateCursor(&lt;SPAN&gt;in_table&lt;/SPAN&gt;=in_features&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;field_names&lt;/SPAN&gt;=[&lt;SPAN&gt;"SHAPE@"&lt;/SPAN&gt;]) &lt;SPAN&gt;as &lt;/SPAN&gt;cur:&lt;BR /&gt;    &lt;SPAN&gt;for &lt;/SPAN&gt;row &lt;SPAN&gt;in &lt;/SPAN&gt;cur:&lt;BR /&gt;        &lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;            array = row[&lt;SPAN&gt;0&lt;/SPAN&gt;].getPart(&lt;SPAN&gt;0&lt;/SPAN&gt;)&lt;BR /&gt;            &lt;SPAN&gt;if &lt;/SPAN&gt;&lt;SPAN&gt;len&lt;/SPAN&gt;(array) == 5: # the fifth is the first again...&lt;BR /&gt;                &lt;SPAN&gt;#print(str([f"({x.X},{x.Y})" for x in array]))&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;if &lt;/SPAN&gt;&lt;SPAN&gt;round&lt;/SPAN&gt;(array[&lt;SPAN&gt;0&lt;/SPAN&gt;].X&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;) == &lt;SPAN&gt;round&lt;/SPAN&gt;(array[&lt;SPAN&gt;1&lt;/SPAN&gt;].X&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;) &lt;SPAN&gt;and &lt;/SPAN&gt;&lt;SPAN&gt;round&lt;/SPAN&gt;(array[&lt;SPAN&gt;1&lt;/SPAN&gt;].Y&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;) == &lt;SPAN&gt;round&lt;/SPAN&gt;(array[&lt;SPAN&gt;2&lt;/SPAN&gt;].Y&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;):&lt;BR /&gt;                    number_of_squares_removed += &lt;SPAN&gt;1&lt;BR /&gt;&lt;/SPAN&gt;                    &lt;SPAN&gt;#print("Deleted")&lt;BR /&gt;&lt;/SPAN&gt;                    cur.deleteRow()&lt;BR /&gt;        &lt;SPAN&gt;except&lt;/SPAN&gt;:&lt;BR /&gt;            print(&lt;SPAN&gt;"WARNING: COULD NOT CHECK AND DELETE FROM SQUARE"&lt;/SPAN&gt;)&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Feb 2022 07:06:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/deleting-small-faces-polygons-in-multipatch/m-p/1142523#M51228</guid>
      <dc:creator>AndreasLorentzen</dc:creator>
      <dc:date>2022-02-10T07:06:42Z</dc:date>
    </item>
  </channel>
</rss>

