<?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>Unlock the Colour Legend from Plaxis Output by Python</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/221006/unlock-the-colour-legend-from-plaxis-output-by-python</link><description>Hi, I am trying to generate the outputs by python. However, the max and min value of the colour legend is always locked. How can I unlock it? Thanks,</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Unlock the Colour Legend from Plaxis Output by Python</title><link>https://communities.bentley.com/thread/677832?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 08:58:51 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:625aaf9c-c4a8-439a-95a0-2a61ae96e021</guid><dc:creator>Douglas Tun</dc:creator><description>&lt;p&gt;Thanks Mate.&lt;br /&gt;It is very helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unlock the Colour Legend from Plaxis Output by Python</title><link>https://communities.bentley.com/thread/677829?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 08:47:41 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c2f08ce0-676a-4835-bcef-5e8d5f29b6a4</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;If you intend to get the values per phase, you will need a loop over all (or some of the) phases. For example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="python"&gt;for phase in g_o.Phases:
    results = g_o.getresults(phase, g_o.ResultTypes.Soil.Utot, &amp;quot;node&amp;quot;)
    max_result = max(results)
    min_result = min(results)
    print(phase.Name)
    print(max_result, min_result)&lt;/pre&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Of course, the above code is only printing it and not storing it in a list as this will update the min and max per case.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unlock the Colour Legend from Plaxis Output by Python</title><link>https://communities.bentley.com/thread/677810?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 08:03:59 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:11fb9750-6f18-4a1c-bce7-637af20ecd81</guid><dc:creator>Douglas Tun</dc:creator><description>&lt;p&gt;Thanks Mate,&lt;br /&gt;Also, for min and max deformation or displacement, do I have to use the loop command?&lt;br /&gt;Or can I directly use&amp;nbsp;&lt;span&gt;getresults&amp;nbsp;special command to pick the maximum value?&lt;br /&gt;Do you have the code for that?&lt;br /&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unlock the Colour Legend from Plaxis Output by Python</title><link>https://communities.bentley.com/thread/677806?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 07:54:58 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c3218939-96c2-41fa-8896-f91733bfc1dc</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;I am not sure that I understand what you want to do.&lt;/p&gt;
&lt;p&gt;Are you referring to the little lock icon next to the coloured legend? That can only be locked manually but if you unlock it, it stays unlocked (default option).&lt;/p&gt;
&lt;p&gt;By the way, the min and max values per phase can be extracted using the getresults command, which returns a list and from the list, you can always find a min and max value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unlock the Colour Legend from Plaxis Output by Python</title><link>https://communities.bentley.com/thread/677803?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 07:47:56 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9e241bb2-264c-4926-a2ac-418746ba6329</guid><dc:creator>Douglas Tun</dc:creator><description>&lt;p&gt;Thanks Stefanos,&lt;br /&gt;I don&amp;#39;t know the max and min value of each stages.&lt;br /&gt;They are significantly changing.&lt;br /&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unlock the Colour Legend from Plaxis Output by Python</title><link>https://communities.bentley.com/thread/677799?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 07:38:29 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f3bd4d6d-d4b1-47e3-8b13-169ac1c0dd95</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Hello Douglas,&lt;/p&gt;
&lt;p&gt;I guess you have found the following article:&lt;br /&gt;&lt;a href="/products/geotech-analysis/w/plaxis-soilvision-wiki/55949/export-and-format-plots-from-plaxis-output-using-python"&gt;https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/55949/export-and-format-plots-from-plaxis-output-using-python&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The moment you edit the MinValue or MaxValue the field becomes editable. For instance, try running the following:&lt;/p&gt;
&lt;div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;span&gt;g_o&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;Plots&lt;/span&gt;[&lt;span&gt;-&lt;/span&gt;1]&lt;span&gt;.&lt;/span&gt;&lt;span&gt;LegendSettings&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;MinValue&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; 5&lt;br /&gt;&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343671/pastedimage1634715640674v1.png" alt=" " /&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>