<?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>Export data plots from PLAXIS Output using Python</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/226899/export-data-plots-from-plaxis-output-using-python</link><description>Hello, I would like to know how to obtain all the data of all the phases at a specific point, in order to be able to later extract this data in a &amp;quot;.txt&amp;quot; file and be able to generate this type of graph: 
 
 This is part of the code that I generated, but</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Export data plots from PLAXIS Output using Python</title><link>https://communities.bentley.com/thread/701051?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 11:26:35 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:5012f46f-090b-4f61-87f8-da1cbf19c23e</guid><dc:creator>Andr&amp;#233;s Gavidia</dc:creator><description>&lt;p&gt;Again, thank you very much&lt;/p&gt;
&lt;p&gt;This photo helped me a lot, I was able to solve the problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export data plots from PLAXIS Output using Python</title><link>https://communities.bentley.com/thread/701035?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 10:26:18 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d5f29d43-81f2-4968-b1cd-03eaac2fff4a</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;You should check in your code what is done at each step (basic debugging). From your code, I cannot really tell what does the &lt;em&gt;phaseorder&lt;/em&gt; variable contain.&amp;nbsp;&lt;span style="font-family:inherit;"&gt;This has to have PLAXIS Output phase objects, e.g. g_o.Phase_1, g_o.Phase_2, etc.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In my case it works fine:&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343671/pastedimage1647253654189v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export data plots from PLAXIS Output using Python</title><link>https://communities.bentley.com/thread/701033?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 10:17:56 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7cf1e251-9682-4cc3-b78a-0c2fb760861d</guid><dc:creator>Andr&amp;#233;s Gavidia</dc:creator><description>&lt;p&gt;Epsyy_o = []&lt;br /&gt; SigyyE_o = []&lt;br /&gt; &lt;br /&gt; for phase in phaseorder:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for step in phase.Steps:&lt;br /&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;Epsyy_o.append(g_o.getcurveresults(punto, step, g_o.ResultTypes.Soil.Epsyy))&lt;br /&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;SigyyE_o.append(g_o.getcurveresults(punto, step, g_o.ResultTypes.Soil.SigyyE))&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry, but tell me:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span class="ansi-red-intense-fg ansi-bold"&gt;&amp;quot;AttributeError&lt;/span&gt;: Requested attribute &amp;#39;Steps&amp;#39; is not present&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export data plots from PLAXIS Output using Python</title><link>https://communities.bentley.com/thread/701023?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 09:35:01 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fdd93f60-c673-4ac3-8d46-a0e6e2dae66e</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Andr&amp;eacute;s,&lt;/p&gt;
&lt;p&gt;The Steps object is part of the Phases object. Therefore you can add an extra loop as follows:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;for phase in phaseorder:&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; for step in phase.Steps:&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # rest of code&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export data plots from PLAXIS Output using Python</title><link>https://communities.bentley.com/thread/700827?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 15:58:46 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:ef360947-0e6a-443f-a4c2-a6c547abcd65</guid><dc:creator>Andr&amp;#233;s Gavidia</dc:creator><description>&lt;p&gt;Dear Stefanos Papavasileiou,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for helping me, this link helped me a lot, but the results are only at the end in the phase, I want results about each step in the phase.&lt;br /&gt;&lt;br /&gt;Again, I share part of my code (corrected):&lt;/p&gt;
&lt;p&gt;x_i= 0&lt;br /&gt; y_i= medio&lt;br /&gt; &lt;br /&gt; punto = g_o.addcurvepoint(&amp;quot;stress point&amp;quot;, (x_i, y_i))&lt;br /&gt; punto.Identification = &amp;quot;Central&amp;quot;&lt;br /&gt; g_o.update()&lt;br /&gt; &lt;br /&gt; g_i.calculate()&lt;br /&gt; g_i.view(shear_phase)&lt;br /&gt; &lt;br /&gt; curvepoints_central = g_o.CurvePoints.StressPoints&lt;br /&gt; print(g_o.tabulate(curvepoints_central, &amp;quot;x y&amp;quot;))&lt;br /&gt; &lt;br /&gt; Epsyy_o = []&lt;br /&gt; SigyyE_o = []&lt;br /&gt; &lt;br /&gt; for phase in phaseorder:&lt;br /&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;Epsyy_o.append(g_o.getcurveresults(punto, phase, g_o.ResultTypes.Soil.Epsyy))&lt;br /&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;SigyyE_o.append(g_o.getcurveresults(punto, phase, g_o.ResultTypes.Soil.SigyyE))&lt;br /&gt; &lt;br /&gt; with open(&amp;quot;ey - Sy&amp;#39;&amp;quot; + &amp;quot;.txt&amp;quot;, &amp;quot;w&amp;quot;) as file:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; file.writelines(["{}\t{}\n".format("Epsyy", "SigyyE_kPa")])&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; file.writelines(["{:.5f}\t{:.2f}\n".format(Epsyy, SigyyE)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for Epsyy, SigyyE in zip(Epsyy_o, SigyyE_o)])&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export data plots from PLAXIS Output using Python</title><link>https://communities.bentley.com/thread/700755?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 08:12:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:026df5f6-8c30-4f07-8852-808ced52c8f4</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Andres,&lt;/p&gt;
&lt;p&gt;You are on the right path. You select a point but then you use the &lt;em&gt;getresults&lt;/em&gt; command which returns results for all stress points. Instead, you should use the &lt;em&gt;getcurveresults&lt;/em&gt; command.&lt;/p&gt;
&lt;p&gt;You can check an example here:&amp;nbsp;&lt;a href="/products/geotech-analysis/w/plaxis-soilvision-wiki/45450/output-scripting-example-create-curve-data"&gt;https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/45450/output-scripting-example-create-curve-data&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>