<?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>Python, DeformCalcType of Phases in Input and Output</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/233179/python-deformcalctype-of-phases-in-input-and-output</link><description>Hi, 
 I am using python to iterate through phases. there are phases using the plastic calculation and fases using the safety calculation. 
 for the input side: 
 for phase in g_i.Phases[:]: if phase.DeformCalcType == phase.DeformCalcType.safety: print</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Python, DeformCalcType of Phases in Input and Output</title><link>https://communities.bentley.com/thread/723928?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 09:12:46 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f9beb1ba-bc93-469a-a2bd-708eaf21914e</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Great to hear that you can use that.&lt;/p&gt;
&lt;p&gt;Nobody likes a bug and we will try to find the best way to solve it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python, DeformCalcType of Phases in Input and Output</title><link>https://communities.bentley.com/thread/723927?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 09:11:10 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a08ea66b-d7df-42c2-a895-67cf39a59a97</guid><dc:creator>Falko Schmidt</dc:creator><description>&lt;p&gt;thanks, yes there was an example at the end.&lt;/p&gt;
&lt;p&gt;For the ones interested I sorted that out with that snippet to identify the phase types in the output till a bug fix comes out:&lt;/p&gt;
&lt;p&gt;for phase in g_o.Phases[:]:&lt;br /&gt;&amp;nbsp; inputPhase = g_i.get_equivalent(phase)&lt;br /&gt;&amp;nbsp; if inputPhase.DeformCalcType == inputPhase.DeformCalcType.safety:&lt;br /&gt;&amp;nbsp; &amp;nbsp; print(&amp;#39;I_FoS : &amp;#39;,phase.InputSettings.DeformCalcType)&lt;br /&gt;&amp;nbsp; if inputPhase.DeformCalcType == inputPhase.DeformCalcType.plastic:&lt;br /&gt;&amp;nbsp; &amp;nbsp; print(&amp;#39;I_Plastic : &amp;#39;,phase.InputSettings.DeformCalcType)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python, DeformCalcType of Phases in Input and Output</title><link>https://communities.bentley.com/thread/723908?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 07:41:37 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c9a28705-044d-416f-b55f-64f0e125b35c</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;In the Scripting reference, there is a specific example about matching the phases from Input and Output. That is exactly what I mentioned that you can use.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What other example do you want me to provide?&lt;/p&gt;
&lt;p&gt;Note that there are examples for both Input and Output for this function.&lt;/p&gt;
&lt;p&gt;Practically it matches the objects on different modes of Input (Geometry vs. Staged construction) and between applications (Input vs. Output).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python, DeformCalcType of Phases in Input and Output</title><link>https://communities.bentley.com/thread/723905?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 07:39:43 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:bbc4255d-9253-421e-8cba-fa8372eabb94</guid><dc:creator>Falko Schmidt</dc:creator><description>&lt;p&gt;Thank You for the reply.&lt;/p&gt;
&lt;p&gt;Could You please dig in, or give an example for the get_equivalent function? Cannot find something useful in the notebook.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python, DeformCalcType of Phases in Input and Output</title><link>https://communities.bentley.com/thread/723542?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 12:40:31 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:65361078-b162-44b0-99eb-922383c7b2da</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Falko,&lt;/p&gt;
&lt;p&gt;Indeed, this appears to be a bug in Output&amp;#39;s code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Temporarily, I would suggest using the information from Input regarding the calculation type until we fix this.&lt;/p&gt;
&lt;p&gt;Note that you can always match the Phase object that belongs to Input and Output using the get_equivalent function. For more details please check our Scripting reference for Output in the extra examples:&amp;nbsp;&lt;a href="https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/45447/scripting-reference-and-how-to-use-it"&gt;communities.bentley.com/.../scripting-reference-and-how-to-use-it&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>