<?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>Extracting Material Names from Plaxis Output using Python</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/204532/extracting-material-names-from-plaxis-output-using-python</link><description>Hi, I have a question regarding the extraction of material information from Plaxis Output. 
 Following the example given by this article: https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/45443/material-lists-in-plaxis</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Extracting Material Names from Plaxis Output using Python</title><link>https://communities.bentley.com/thread/618450?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2020 15:48:04 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d59713b0-4c7e-4ac1-8586-c7001cec685a</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Wei Ern Hoon,&lt;/p&gt;
&lt;p&gt;Thank you for clarifying that as this is an issue that was fixed with PLAXIS 2D 2019 version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extracting Material Names from Plaxis Output using Python</title><link>https://communities.bentley.com/thread/616580?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 08:29:09 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9e5278af-d4ab-43b2-b8df-0035aae98cc1</guid><dc:creator>Wei Ern Hoon</dc:creator><description>&lt;p&gt;Dear Stefanos,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your reply, I am currently using Plaxis 2018 - Basic VIP.&lt;/p&gt;
[quote userid="940121" url="~/products/geotech-analysis/f/plaxis-soilvision-forum/204532/extracting-material-names-from-plaxis-output-using-python/615984"]Soil_list = [soil.Material.MaterialName.value for soil_group in g_o.Soils for soil in soil_group][/quote]
&lt;p&gt;I tried the code that you suggested in Plaxis Output, but a similar error will still occur:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343671/error-plaxis.png" /&gt;&lt;/p&gt;
&lt;p&gt;Any help would be welcome.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extracting Material Names from Plaxis Output using Python</title><link>https://communities.bentley.com/thread/615984?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 08:07:01 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:aa5ad4ae-abf7-4ab9-8a92-2e41e28678b2</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Wei,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It is not clear from your message which version you are using. I am currently using our latest PLAXIS 2D CONNECT Edition V20.04 and the list you create works just fine, as you can see below:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343671/2783.pastedimage1603440051173v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Note that a material object is typically assigned to the property Material that belongs to the Soil object.&amp;nbsp;Output though gets information from Input, so Soils starting from Structures (Soil_1, Soil_2, etc.) get intersected when after Mesh mode to multiple objects (Soil_1_1, Soil_2_1, Soil_2_2, etc.)&lt;/p&gt;
&lt;p&gt;Therefore you need to extend your loops in the list comprehension even further to achieve what you want:&lt;br /&gt;Soil_list = [soil.Material.MaterialName.value for soil_group in g_o.Soils for soil in soil_group]&lt;/p&gt;
&lt;p&gt;Note that for more questions, you can also submit a service request.&amp;nbsp;Then, one of our support engineers can help you in detail:&lt;br /&gt; &lt;a href="https://apps.bentley.com/srmanager/ProductSupport"&gt;https://apps.bentley.com/srmanager/ProductSupport&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>