<?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/"><channel><title>Wei Ern Hoon's Activities</title><link>https://communities.bentley.com/members/cb1889a3_2d00_9136_2d00_484e_2d00_a6ae_2d00_01f3860d8f29</link><description>Wei Ern Hoon's recent activity</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><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><pubDate>Thu, 15 Oct 2020 05:31:51 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a56aaf71-101e-4348-b334-8d9760957069</guid><dc:creator>Wei Ern Hoon</dc:creator><description>&lt;p&gt;Hi, I have a question regarding the extraction of material information from Plaxis Output.&lt;/p&gt;
&lt;p&gt;Following the&amp;nbsp;example given by this article:&amp;nbsp;&lt;a href="/products/geotech-analysis/w/plaxis-soilvision-wiki/45443/material-lists-in-plaxis-python"&gt;https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/45443/material-lists-in-plaxis-python&lt;/a&gt;&amp;nbsp;, I tried to extract a list of soil material names in the model by modifying the code like so:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Soil_list&amp;nbsp;=&amp;nbsp;[mat.MaterialName.value&amp;nbsp;&lt;/span&gt;&lt;span&gt;for&lt;/span&gt;&lt;span&gt;&amp;nbsp;mat&amp;nbsp;&lt;/span&gt;&lt;span&gt;in&lt;/span&gt;&lt;span&gt;&amp;nbsp;g_i.Materials[:]&amp;nbsp;&lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt;&amp;nbsp;mat.TypeName.value&amp;nbsp;==&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;#39;SoilMat&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This worked perfectly in Plaxis Input. However, when I tried to apply the same code with Plaxis Output scripting, the error &amp;quot;Requested attribute &amp;#39;TypeName&amp;#39; is not present&amp;quot; occurred. I further tried other ways like:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Soil_list =&amp;nbsp;&lt;/span&gt;[mat.Name&amp;nbsp;for mat in&amp;nbsp;g_o.Soils]&lt;/p&gt;
&lt;p&gt;But this only returned a list of ['Soil_1', 'Soil_2', ...], which is not what I want.&lt;/p&gt;
&lt;p&gt;So my question is: Is there any python code I can use to extract material names from Plaxis Output?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question I</title><link>https://communities.bentley.com/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Thu, 15 Oct 2020 05:32:06 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3c832fa0-9df7-4b3b-a6af-f800955c8008</guid><dc:creator /><description>Ask a question in a forum.</description></item></channel></rss>