<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Finding a BoreholePolygon with coordination with Python in Plaxis2D</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/234157/finding-a-boreholepolygon-with-coordination-with-python-in-plaxis2d</link><description>Hello, 
 
 Is there any way to find a borehole polygon (made using boreholes) corresponding to some coordination? 
 
 
 Basically I want to make the code below automated instead of having an specific name (i.e. BoreholePolygon_1_2 in this case) in it</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Finding a BoreholePolygon with coordination with Python in Plaxis2D</title><link>https://communities.bentley.com/thread/727345?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 13:19:33 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:17f8897a-6558-44a3-b129-8577316ed9a7</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Farbod,&lt;/p&gt;
&lt;p&gt;In Staged construction, the geometry information of any point, line or polygon is no longer available as geometry cannot change.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, you can use the &lt;em&gt;.BoundingBox&lt;/em&gt; property:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;echo BoreholePolygon_1_2.BoundingBox&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Otherwise, you can&amp;nbsp;create a variable during creation of the polygon, and use it later, e.g.:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;pol, soil = g_i.polygon(0, 0, 0, 1, 1, 1, 1, 0)&amp;nbsp; # this creates&amp;nbsp;Polygon_1 and Soil_1&lt;/em&gt;&lt;br /&gt;&lt;em&gt;g_i.gotostages()&lt;/em&gt;&lt;br /&gt;&lt;em&gt;g_i.activate(pol, g_i.Phases[-1])&amp;nbsp; # this will activate Polygon_1, which includes&amp;nbsp;Polygon_1_1&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Note that normally polygons get intersected so if you need to activate only Polygon_1_2, then you will need some extra information (.BoundingBox) and add an extra for-loop to do the (de)activation.&lt;/p&gt;
&lt;p&gt;Some users also find it better to have direct control so they create the geometry already intersected and then they know exactly what polygon to deactivate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>