<?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>Copy phase sequence</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/196346/copy-phase-sequence</link><description>Dear Support Team , 
 For example, I have five phases of embankment staged construction with Plastic calculations: 
 
 After successful calculation I would like to calculate the same p hase sequence (the same five stages), but with Consolidation type</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/760727?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 09:58:11 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c1922c57-549c-477a-be26-68e82b1b88dd</guid><dc:creator>Hung Ho Manh</dc:creator><description>&lt;p&gt;&lt;a href="https://communities.bentley.com/products/geotech-analysis/f/forum/243710/create-a-number-of-phases-using-a-single-command-or-python-scripting-in-plaxis/760706"&gt;communities.bentley.com/.../760706&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/760576?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 10:07:50 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:24758db0-1018-4b2d-a186-93ddf57fb9dd</guid><dc:creator>Muhammad Abdur Rahman</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I am writing the following code to create 10 stages with Dynamic consolidation and a Dynamic time interval of 0.5 sec. However, after creating the stages, I am getting the Dynamic time interval as zero. Can you please help?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;for _ in range(1):&lt;br /&gt; newphase = g_i.phase(g_i.Phases[-1])&lt;br /&gt; newphase.DeformCalcType = newphase.DeformCalcType.dynamicwithconsolidation&lt;br /&gt; newphase.DeformTimeIntervalSeconds = newphase.DeformTimeIntervalSeconds=0.5&lt;br /&gt; newphase.MaxStepsStored = newphase.MaxStepsStored=10&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/615223?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 13:28:25 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8c6e58dd-b05a-4d85-98e3-d3c137145ce2</guid><dc:creator>bansalrehana bansalrehana</dc:creator><description>&lt;div class="content full threaded-reply-content user-defined-markup"&gt;
&lt;div class="content"&gt;
&lt;p&gt;I suppose, there are not so many users in our country who use command line in PLAXIS (all the more Python). On the other hand I realise that it is powerful instrument for optimisation and automatisation of routine process. In this case PLAXIS has a great advantage in comparasing to other&amp;nbsp;competitors. That&amp;#39;s why I try to&amp;nbsp;provide this information to our clients.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="signature"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="badges"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/612751?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 09:22:57 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7e0e5607-da31-42d4-89a0-36d737e55beb</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Bahia,&lt;/p&gt;
&lt;p&gt;For this, you need to perform an iteration as the one described below. As you can see here this is done with the range function, but you can extend this process in a function you create by making the number of iterations as a variable.&lt;/p&gt;
&lt;p&gt;The example below will run 10 times and will create 5 sequences of two phases, ensuring the correct parent phase is set. Note that the two reference phases should be correctly configured, before running the code below.&lt;/p&gt;
&lt;p&gt;If you need more assistance with this please submit a service request:&amp;nbsp;&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="background:#ffffff;border:solid grey;border-width:.1em .1em .1em .8em;overflow:auto;padding:.2em .6em;width:auto;"&gt;
&lt;pre style="color:#000;font-family:&amp;#39;Lucida Console&amp;#39;,Consolas, Inconsolata,&amp;#39;DejaVu Sans Mono&amp;#39;, Monaco, &amp;#39;Courier New&amp;#39;, monospace;font-size:13px;line-height:120%;margin:5px;padding:2px;"&gt;&lt;span&gt;&lt;/span&gt;&lt;span style="color:#ff5600;"&gt;for&lt;/span&gt; &lt;span style="color:#000000;"&gt;i&lt;/span&gt; &lt;span style="color:#ff5600;"&gt;in&lt;/span&gt; &lt;span style="color:#a535ae;"&gt;range&lt;/span&gt;(10):
    &lt;span style="color:#000000;"&gt;g_i&lt;/span&gt;&lt;span style="color:#ff5600;"&gt;.&lt;/span&gt;&lt;span style="color:#000000;"&gt;phase&lt;/span&gt;(&lt;span style="color:#000000;"&gt;g_i&lt;/span&gt;&lt;span style="color:#ff5600;"&gt;.&lt;/span&gt;&lt;span style="color:#000000;"&gt;Phases&lt;/span&gt;[&lt;span style="color: #ff5600;"&gt;-&lt;/span&gt;2])
    &lt;span style="color:#000000;"&gt;g_i&lt;/span&gt;&lt;span style="color:#ff5600;"&gt;.&lt;/span&gt;&lt;span style="color:#000000;"&gt;Model&lt;/span&gt;&lt;span style="color:#ff5600;"&gt;.&lt;/span&gt;&lt;span style="color:#000000;"&gt;CurrentPhase&lt;/span&gt; &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; &lt;span style="color:#000000;"&gt;g_i&lt;/span&gt;&lt;span style="color:#ff5600;"&gt;.&lt;/span&gt;&lt;span style="color:#000000;"&gt;Phases&lt;/span&gt;[&lt;span style="color: #ff5600;"&gt;-&lt;/span&gt;1]
    &lt;span style="color:#000000;"&gt;g_i&lt;/span&gt;&lt;span style="color:#ff5600;"&gt;.&lt;/span&gt;&lt;span style="color:#000000;"&gt;Phases&lt;/span&gt;[&lt;span style="color: #ff5600;"&gt;-&lt;/span&gt;1]&lt;span style="color:#ff5600;"&gt;.&lt;/span&gt;&lt;span style="color:#000000;"&gt;PreviousPhase&lt;/span&gt; &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; &lt;span style="color:#000000;"&gt;g_i&lt;/span&gt;&lt;span style="color:#ff5600;"&gt;.&lt;/span&gt;&lt;span style="color:#000000;"&gt;Phases&lt;/span&gt;[&lt;span style="color: #ff5600;"&gt;-&lt;/span&gt;2]
&lt;/pre&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/612490?ContentTypeID=1</link><pubDate>Sun, 04 Oct 2020 11:31:43 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8b2b4100-b3d3-4a76-b35d-ae193692e12d</guid><dc:creator>Bahia ElRefai</dc:creator><description>&lt;p&gt;I have a horizontal moving load,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the first phase should be inward and 2nd phase should be outward. so I activated the inward load in phase 1 and deactivate the outward load in phase, and in phase 2 the contrary activates outward and deactivate inward&lt;/p&gt;
&lt;p&gt;and I have to repeat these loading cases for 500 times.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/612357?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 12:32:50 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:1f0a5735-82e5-47d7-b0bd-992a033e1c31</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Bahia,&lt;/p&gt;
&lt;p&gt;From your description, it is not entirely clear what the parent of Phase_1 will be each time.&lt;/p&gt;
&lt;p&gt;Are all duplicate phases of Phase_1 starting from InitialPhase or you want the new_Phase_1 to start from previous_Phase_2?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/611239?ContentTypeID=1</link><pubDate>Sat, 26 Sep 2020 12:35:59 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:88460eb2-d7b7-47e8-9c9f-1485be6f35af</guid><dc:creator>Bahia ElRefai</dc:creator><description>&lt;p&gt;i have a squence of 2 phases &lt;/p&gt;
&lt;p&gt;and i want to repeat this sequance for 500 time&lt;/p&gt;
&lt;p&gt;exemple phase 1&lt;/p&gt;
&lt;p&gt;phase 2&lt;/p&gt;
&lt;p&gt;and again phase 1 then phase 2.&lt;/p&gt;
&lt;p&gt;how can i do so please?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/594620?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2020 09:22:22 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0befe1f1-2c78-4949-b5e7-654dd0510a99</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Yusha,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you create a phase starting from another phase any geometry settings are copied from the parent phase. Any phase configurations are set depending on the case, i.e. default is Plastic phase with the available options this type offers.&lt;/p&gt;
&lt;p&gt;However, with Python you can easily, query the settings of the parent phase and set them accordingly to any child phase.&lt;/p&gt;
&lt;p&gt;If you still have issues with this process, please&amp;nbsp;submit a service request.&lt;/p&gt;
&lt;p&gt;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><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/593571?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 07:09:49 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:89d20157-008e-4b74-987c-e18d8a7c8b20</guid><dc:creator>Yusha Shi</dc:creator><description>&lt;p&gt;Dear Stefanos:&lt;/p&gt;
&lt;p&gt;Yes it works! However, the new generated phases are empty and I still need to input the parameters manually. the computer did not &amp;quot;copy&amp;quot; the phases I already created, instead just creating a new phase sequence.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/592870?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 16:37:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2b87d0ca-7556-47bc-b941-c080589d0673</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Yusha Shi,&lt;/p&gt;
&lt;p&gt;Then, I would use a different approach as your question is indeed different from the topic here.&lt;/p&gt;
&lt;p&gt;In your case, you need to know how many phases you want to create. Then you can use the simple &lt;em&gt;range&lt;/em&gt; function and for creating a phase starting from the lastly created phase you can use the&amp;nbsp;&lt;span&gt;&lt;em&gt;g_i.phase(g_i.Phases[-1])&lt;/em&gt; command.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For instance, you can create ten phases using the following code:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;for n in range(10):&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;g_i.phase(g_i.Phases[-1])&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/592603?ContentTypeID=1</link><pubDate>Sat, 13 Jun 2020 12:10:40 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9760c08e-92e4-49d2-b247-2a608c2c33a4</guid><dc:creator>Yusha Shi</dc:creator><description>&lt;p&gt;Hi Stefanos,&lt;/p&gt;
&lt;p&gt;Thanks for the help, I have successfully run the script.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, this is not what I expected.&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343671/Capture.PNG" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I wish the new generated phase could be following phase 39 and the same for the rest, not subphase individually after each phase.&lt;/p&gt;
&lt;p&gt;how should I edit my code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot!&lt;/p&gt;
&lt;p&gt;Yusha Shi&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/592518?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 12:13:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7c6b28ec-5f09-47b6-88e5-112ac8d6602c</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Yusha,&lt;/p&gt;
&lt;p&gt;Yes, you can. &lt;br /&gt;Be careful with using&amp;nbsp;the proper object names as Python does not accept typos: &lt;em&gt;g_i.Phases&lt;/em&gt;&amp;nbsp;, is the correct object name of the phases group.&lt;/p&gt;
&lt;p&gt;The code that I added has some if-statements to check for a calculation type, but if you remove those, you end up with the code you suggest, too.&lt;/p&gt;
&lt;p&gt;Note that the best is to try your code directly in a simple project. If you have problems with that, please&amp;nbsp;submit a service request.&lt;/p&gt;
&lt;p&gt;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><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/592261?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 07:20:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6aef2ab9-d128-4dc3-9aed-62439e3f40bb</guid><dc:creator>Yusha Shi</dc:creator><description>&lt;p&gt;Dear Stefanos,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got the same question and I simply want to create a new phase sequence.&lt;/p&gt;
&lt;p&gt;can I directly create a file as follows:&lt;/p&gt;
&lt;p&gt;for parent in g_i.phases[:]:&lt;/p&gt;
&lt;p&gt;newphase = g_i.phase(parent)&lt;/p&gt;
&lt;p&gt;thanks a lot!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/583969?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 12:59:47 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6f0e521c-b644-47b1-b7f2-9fc20926e6e4</guid><dc:creator>Rushan Gizzatullin</dc:creator><description>&lt;p&gt;Dear &lt;strong&gt;Stefanos&lt;/strong&gt;,&lt;/p&gt;
&lt;p&gt;Wow, it looks like a magic for me. &lt;br /&gt;Thank you very much for an example and for your help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;P. S. &lt;br /&gt;Great thanks for your article about &lt;a href="/products/geotech-analysis/w/plaxis-soilvision-wiki/48420/swept-meshing-in-plaxis-3d"&gt;Swept meshing option&lt;/a&gt;. &lt;br /&gt;It has clarified&amp;nbsp;the meaning of the option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/583967?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 12:55:57 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:1b2fa26c-c842-4eb8-a936-96899580abb3</guid><dc:creator>Rushan Gizzatullin</dc:creator><description>&lt;p&gt;Dear &lt;strong&gt;Stefanos&lt;/strong&gt;,&lt;/p&gt;
&lt;p&gt;Thank you for the&amp;nbsp;clarifying information.&lt;br /&gt;Python scirpting is the next step for me =) &lt;/p&gt;
&lt;p&gt;For now I try to use only command reference.&lt;br /&gt;I suppose, there are not so many users in our country who use command line in PLAXIS (all the more Python). On the other hand I realise that it is powerful instrument for optimisation and automatisation of routine process. In this case PLAXIS has a great advantage in comparasing to other&amp;nbsp;competitors. That&amp;#39;s why I try to&amp;nbsp;provide this information to our clients.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/583962?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 12:40:18 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:61870916-6d4e-4c2e-b1b4-c1bca1ddff6e</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;And to give you an example with Python scripting, the code I shared can be made as a script to run easily from Expert menu.&lt;/p&gt;
&lt;p&gt;Before the main Python code, you can add the following boilerplate and the script will run for any user:&lt;/p&gt;
&lt;p&gt;from plxscripting.easy import *&lt;br /&gt;s_i, g_i = new_server()&lt;/p&gt;
&lt;p&gt;# add rest of code here&lt;/p&gt;
&lt;p&gt;This file can be saved as a Python script, e.g. add_consolidation_phases.py and placed in (default location):&lt;br /&gt;&lt;em&gt;C:\Program Files\Bentley\Geotechnical\PLAXIS 2D CONNECT Edition V20\pytools\input&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Then, in Input go to Expert &amp;gt; Run Python tool &amp;gt;&amp;nbsp;&lt;span&gt;add_consolidation_phases&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/583959?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 12:34:32 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:46eb9bd6-c7f3-4943-948f-a506efc04ad9</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Rushan,&lt;/p&gt;
&lt;p&gt;The groupfiltered command is great, however, it only works if the condition is met.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This means that all phases that are set to be calculated will be included in the group. If the parent phases are already calculated, it will work perfectly.&lt;/p&gt;
&lt;p&gt;The example I gave is if you start a project from scratch but your way will also work!&lt;/p&gt;
&lt;p&gt;The challenge is to have the same for 50, 70, 100 phases. Then, Python scripting with 4 lines of code wins!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/583958?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 12:28:05 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:50d0e415-5ab2-437c-b2e0-db82134ece2e</guid><dc:creator>Rushan Gizzatullin</dc:creator><description>&lt;p&gt;Dear &lt;strong&gt;Stefanos&lt;/strong&gt;,&lt;/p&gt;
&lt;p&gt;Thank you very much for the idea about&amp;nbsp;&lt;em&gt;set Phases[-1].PreviousPhase Phases[-2].&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So, e.g. I can make command log like this:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;phase Phase_1&lt;/em&gt;&lt;br /&gt;&lt;em&gt;set Model.CurrentPhase Phases[-1]&lt;/em&gt;&lt;br /&gt;&lt;em&gt;phase Phase_2&lt;/em&gt;&lt;br /&gt;&lt;em&gt;set Model.CurrentPhase Phases[-1]&lt;/em&gt;&lt;br /&gt;&lt;em&gt;set Phases[-1].PreviousPhase Phases[-2]&lt;/em&gt;&lt;br /&gt;&lt;em&gt;phase Phase_3&lt;/em&gt;&lt;br /&gt;&lt;em&gt;set Model.CurrentPhase Phases[-1]&lt;/em&gt;&lt;br /&gt;&lt;em&gt;set Phases[-1].PreviousPhase Phases[-2]&lt;/em&gt;&lt;br /&gt;&lt;em&gt;phase Phase_4&lt;/em&gt;&lt;br /&gt;&lt;em&gt;set Model.CurrentPhase Phases[-1]&lt;/em&gt;&lt;br /&gt;&lt;em&gt;set Phases[-1].PreviousPhase Phases[-2]&lt;/em&gt;&lt;br /&gt;&lt;em&gt;phase Phase_5&lt;/em&gt;&lt;br /&gt;&lt;em&gt;set Model.CurrentPhase Phases[-1]&lt;/em&gt;&lt;br /&gt;&lt;em&gt;set Phases[-1].PreviousPhase Phases[-2]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Then make a group filter:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;groupfiltered Phases &amp;quot;ShouldCalculate=True&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;After that apply to all grouped phases Consolidation type of calculation:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;apply groups[-1] &lt;span&gt;&amp;quot;sps&amp;quot; &amp;quot;DeformCalcType&amp;quot; &amp;quot;Consolidation&amp;quot;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;and finally ungroup it:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;ungroup Groups[-1]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In such case the only manual thing is to change Phase_#.&lt;/p&gt;
&lt;p&gt;Could you please inform me is it correct?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/583936?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 10:09:40 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:47a84a42-128d-4272-b174-a3d7256e2c5e</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Rushan,&lt;/p&gt;
&lt;p&gt;The icon to create a phase is creating a new phase and copying all settings from the parent phase.&lt;/p&gt;
&lt;p&gt;For instance, the generated command is: &lt;br /&gt;&lt;em&gt;phase Phase_1&lt;/em&gt;&lt;br /&gt;this means that a new phase will be created and it will copy all settings for all features from Phase_1 to a new phase.&lt;/p&gt;
&lt;p&gt;You can also use the following syntax that will create a phase from the lastly created phase using indexing:&lt;br /&gt;&lt;em&gt;phase Phases[-1]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This means that you can make a command log that will create all plastic phases, then create new phases from the previous and assign them as consolidation ensuring the correct order.&lt;/p&gt;
&lt;p&gt;However, there is no for-loop via the command line, therefore, the size of the command log depends on the number of reference phases, which can be written manually. That is why Python is the easiest solution for this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;An example starting from Tutorial 3 that has 6 plastic phases would be:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;phase Phases[1] # creates Phase_7 from Phase_1&lt;br /&gt;set Model.CurrentPhase Phases[-1] # sets current phase to initialise the settings&lt;br /&gt;set Phases[-1].DeformCalcType &amp;quot;Consolidation&amp;quot; # sets Phase_7 to Consolidation&lt;br /&gt;phase Phases[2] # creates Phase_8 from Phase_2&lt;br /&gt;set Model.CurrentPhase Phases[-1]&lt;br /&gt;set Phases[-1].DeformCalcType &amp;quot;Consolidation&amp;quot; # sets Phase_8 to Consolidation&lt;br /&gt;set Phases[-1].PreviousPhase Phases[-2]&lt;br /&gt;phase Phases[3] # creates Phase_9 from Phase_3&lt;br /&gt;set Model.CurrentPhase Phases[-1]&amp;nbsp;&lt;br /&gt;set Phases[-1].DeformCalcType &amp;quot;Consolidation&amp;quot; # sets Phase_9 to Consolidation&lt;br /&gt;set Phases[-1].PreviousPhase Phases[-2]&lt;br /&gt;phase Phases[4] # creates Phase_10 from Phase_4&lt;br /&gt;set Model.CurrentPhase Phases[-1]&lt;br /&gt;set Phases[-1].DeformCalcType &amp;quot;Consolidation&amp;quot; # sets Phase_10 to Consolidation&lt;br /&gt;set Phases[-1].PreviousPhase Phases[-2]&lt;br /&gt;phase Phases[5] # creates Phase_11 from Phase_5&lt;br /&gt;set Model.CurrentPhase Phases[-1]&lt;br /&gt;set Phases[-1].DeformCalcType &amp;quot;Consolidation&amp;quot; # sets Phase_11 to Consolidation&lt;br /&gt;set Phases[-1].PreviousPhase Phases[-2]&lt;br /&gt;phase Phases[6] # creates Phase_12 from Phase_6&lt;br /&gt;set Model.CurrentPhase Phases[-1]&amp;nbsp;&lt;br /&gt;set Phases[-1].DeformCalcType &amp;quot;Consolidation&amp;quot; # sets Phase_12 to Consolidation&lt;br /&gt;set Phases[-1].PreviousPhase Phases[-2]&lt;/p&gt;
&lt;p&gt;In the above example, I can create 6 new consolidation phases, from the existing plastic phases, however, you see that there is no abstract way when creating each phase, e.g. command &lt;em&gt;p&lt;/em&gt;&lt;span&gt;&lt;em&gt;hase Phases[6]&lt;/em&gt;&amp;nbsp;needs to be manually edited based on the number of phases.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In any case, you can extend this command log to any size based on the number of reference phases.&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: Copy phase sequence</title><link>https://communities.bentley.com/thread/583925?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 09:36:09 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c0b97ad0-9a9a-49f8-9c96-5057f6f695c9</guid><dc:creator>Rushan Gizzatullin</dc:creator><description>&lt;p&gt;Dear &lt;strong&gt;Stefanos&lt;/strong&gt;,&lt;/p&gt;
&lt;p&gt;Thank you for the Python script.&lt;/p&gt;
&lt;p&gt;Correct if I am wrong.&lt;br /&gt; Is it correct, that in common way it is not possible to copy phase(s) via command line directly?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy phase sequence</title><link>https://communities.bentley.com/thread/583918?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 09:17:04 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b6f61722-bbfb-4ce4-8ae4-bd0585a83bf6</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Rushan,&lt;/p&gt;
&lt;p&gt;This case can be easily handled using Python scripting.&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;An example of code can be found below (hopefully it will be uploaded with correct indentation):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;# for every phase in the project&lt;br /&gt;&lt;span&gt;for parent in g_i.Phases[:]:&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; # if it&amp;#39;s a plastic phase&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; if parent.DeformCalcType == parent.DeformCalcType.plastic:&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # create new child phase&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newphase = g_i.phase(parent)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # set it to safety&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newphase.DeformCalcType = newphase.DeformCalcType.consolidation&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>