<?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>Tunnel advancement script for PLAXIS 3D</title><link>https://communities.bentley.com/products/geotech-analysis/w/wiki/45448/tunnel-advancement-script-for-plaxis-3d</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Tunnel advancement script for PLAXIS 3D</title><link>https://communities.bentley.com/products/geotech-analysis/w/wiki/45448/tunnel-advancement-script-for-plaxis-3d</link><pubDate>Tue, 15 Feb 2022 11:11:02 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a7b060a3-85a0-4310-a220-892cd946f0a3</guid><dc:creator>Stefanos Papavasileiou</dc:creator><comments>https://communities.bentley.com/products/geotech-analysis/w/wiki/45448/tunnel-advancement-script-for-plaxis-3d#comments</comments><description>Current Revision posted to GeoStudio | PLAXIS Wiki by Stefanos Papavasileiou on 2/15/2022 11:11:02 AM&lt;br /&gt;
&lt;div class="content-scrollable-wrapper" style="border-collapse:collapse;overflow:auto;padding-bottom:30px;"&gt;
&lt;table style="background-color:#fffff;border:#56aa1c 0px solid;border-width:1px 0px 0px 0px;width:500px;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:right;"&gt;&lt;strong&gt;Application&lt;/strong&gt;&lt;/td&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:left;"&gt;PLAXIS 3D&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:right;"&gt;&lt;strong&gt;Version&lt;/strong&gt;&lt;/td&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:left;"&gt;PLAXIS 3D&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:right;"&gt;&lt;strong&gt;Date created&lt;/strong&gt;&lt;/td&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:left;"&gt;13 December 2016&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:right;"&gt;&lt;strong&gt;Date modified&lt;/strong&gt;&lt;/td&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:left;"&gt;13 December 2016&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;tbody&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;!--–– end of Bentley header ––--&gt;
&lt;p&gt;With the introduction of the tunnel designer with sequencing options, it is now possible to define a repetitive tunnel construction sequence to model tunnel advancement procedures for the calculation phases.&lt;br /&gt;When the tunnel needs to be moved one step forward in this sequence in a phase, you need to select the Tunnel from the model explorer, right-click and select the option &lt;em&gt;Advance to next tunnel step&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img class="size-full wp-image-18927 aligncenter" alt="tunnel_advancement_script_for_PLAXIS_3D_GIF" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-05-58/tunnel_5F00_advancement_5F00_script_5F00_for_5F00_PLAXIS_5F00_3D_5F00_GIF.gif" /&gt;&lt;br /&gt;Doing this for many phases is a lot of manual and tedious work, and chances are that in a large tunnel project one could easily miss one step by mistake.&lt;br /&gt;Using the command line would give you more certainty that all the steps are performed for all the phase.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The command to advance the tunnel one step in its sequence in a phase is:&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, courier new;font-size:13px;line-height:105%;margin:2px;overflow:auto;padding:2px;white-space:pre;"&gt;&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_1&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;h3&gt;Commands Runner&lt;/h3&gt;
&lt;p&gt;Using the Commands runner, you could specify this easily for a few phases:&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, courier new;font-size:13px;line-height:105%;margin:2px;overflow:auto;padding:2px;white-space:pre;"&gt;&lt;span style="color:navy;"&gt;phase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_1&lt;/span&gt;
&lt;span style="color:navy;"&gt;setcurrentphase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_2&lt;/span&gt;
&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_2&lt;/span&gt;
&lt;span style="color:navy;"&gt;phase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_2&lt;/span&gt;
&lt;span style="color:navy;"&gt;setcurrentphase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_3&lt;/span&gt;
&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_3&lt;/span&gt;
&lt;span style="color:navy;"&gt;phase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_3&lt;/span&gt;
&lt;span style="color:navy;"&gt;setcurrentphase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_4&lt;/span&gt;
&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_4&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;When dealing with a lot more phases, this can be a lot of effort to make it work for all the phases until you reach the final tunnel construction.&lt;/p&gt;
&lt;h3&gt;Python solution&lt;/h3&gt;
&lt;p&gt;It would be nice if we could just repeat this procedure of tunnel advancement several times. Using the Plaxis Remote Scripting feature and the Python wrapper, we can do this easily by defining a for loop to repeat this tunnel advancement for a predefined number of times.&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:2px;overflow:auto;padding:2px;white-space:pre;"&gt;advancementsteps &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; &lt;strong&gt;10&lt;/strong&gt;

tunnel &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; g_i.Tunnel_1
lastphase &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; g_i.Phase_1

&lt;span style="color:#ff5600;"&gt;for&lt;/span&gt; i &lt;span style="color:#ff5600;"&gt;in&lt;/span&gt; &lt;span style="color:#a535ae;"&gt;range&lt;/span&gt;(advancementsteps):
    lastphase &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; g_i.phase(lastphase)
    g_i.setcurrentphase(lastphase)
    g_i.advance(tunnel, lastphase)
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;This can be further extended to also include a nice GUI window (using the &lt;span style="color:navy;font-family:&amp;#39;Lucida Console&amp;#39;,consolas, courier new;line-height:105%;"&gt;easygui&lt;/span&gt; module) to fill in the number of steps. Below you can find this Python script file.&lt;/p&gt;
&lt;p&gt;&lt;img class="aligncenter size-full wp-image-19574" alt="PLAXIS 3D CONNECT Edition V20 - Tunnel advancement script in action" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-05-58/plaxis3dcev20_5F00_tunnel_5F00_advancement_5F00_script.gif" /&gt;&lt;/p&gt;
&lt;h2&gt;Usage instructions for Python script&lt;/h2&gt;
&lt;p&gt;To use this file:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Download the file (use &lt;em&gt;Save As...&lt;/em&gt;);&lt;/li&gt;
&lt;li&gt;Unpack the zip file and copy the tunnel_advancement.py file to this folder:&lt;br /&gt;&amp;lt;PLAXIS 3D installation folder&amp;gt;\pytools\input&lt;br /&gt;By default the installation folder for PLAXIS 3D is:&lt;br /&gt;C:\Program Files\Bentley\Geotechnical\PLAXIS 3D CONNECT Edition V20\&lt;br /&gt;For older versions, this would be:&lt;br /&gt;C:\Program Files\Plaxis\Plaxis 3D\&lt;/li&gt;
&lt;li&gt;Restart PLAXIS 3D and open a Plaxis file with a tunnel with sequencing defined&lt;/li&gt;
&lt;li&gt;Make sure you are in &lt;em&gt;Staged construction&lt;/em&gt; mode&lt;/li&gt;
&lt;li&gt;In the Expert menu, go to Python &amp;gt; Run script &amp;gt; Tools. Here you should see the name of Python file. When selecting it, it will execute the script to advance your tunnel for the specified number of steps.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When you do not have access rights to add the script in this folder, alternatively, you can choose to use Expert menu &amp;gt; Python &amp;gt; Run script &amp;gt; Open... to manually open and run the file.&lt;/p&gt;
&lt;div&gt;
&lt;h4&gt;Downloads&lt;/h4&gt;
&lt;ul style="color:#56aa1c;list-style-type:square;padding-bottom:5px;"&gt;
&lt;li&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-05-58/tunnel_5F00_advancement_5F00_tool.py"&gt;[Python script] PLAXIS 3D Tunnel advancement tool&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h4&gt;See also&lt;/h4&gt;
&lt;div style="padding-left:20px;" id="plxrelated"&gt;
&lt;div id="plxrelateditem"&gt;
&lt;p&gt;&lt;a style="font-size:110%;" href="/products/geotechnical1/w/wiki/45903/how-to-define-an-excavation-sequence-in-tunnel-designer"&gt;How to define an excavation sequence in Tunnel Designer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:90%;"&gt;[Videos]&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: PLAXIS 3D, python, pytool, API, NATM tunnel, py cookbook, App, PLAXIS, cookbook, python cookbook, Tunnel, tool, sequencing, pyapp, tunnel designer&lt;/div&gt;
</description></item><item><title>Tunnel advancement script for PLAXIS 3D</title><link>https://communities.bentley.com/products/geotech-analysis/w/wiki/45448/tunnel-advancement-script-for-plaxis-3d/revision/3</link><pubDate>Tue, 07 Jul 2020 11:39:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a7b060a3-85a0-4310-a220-892cd946f0a3</guid><dc:creator>Micha van der Sloot</dc:creator><comments>https://communities.bentley.com/products/geotech-analysis/w/wiki/45448/tunnel-advancement-script-for-plaxis-3d#comments</comments><description>Revision 3 posted to GeoStudio | PLAXIS Wiki by Micha van der Sloot on 7/7/2020 11:39:44 AM&lt;br /&gt;
&lt;div class="content-scrollable-wrapper" style="border-collapse:collapse;overflow:auto;padding-bottom:30px;"&gt;
&lt;table style="background-color:#fffff;border:#56aa1c 0px solid;border-width:1px 0px 0px 0px;width:500px;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:right;"&gt;&lt;strong&gt;Application&lt;/strong&gt;&lt;/td&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:left;"&gt;PLAXIS 3D&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:right;"&gt;&lt;strong&gt;Version&lt;/strong&gt;&lt;/td&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:left;"&gt;PLAXIS 3D&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:right;"&gt;&lt;strong&gt;Date created&lt;/strong&gt;&lt;/td&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:left;"&gt;13 December 2016&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:right;"&gt;&lt;strong&gt;Date modified&lt;/strong&gt;&lt;/td&gt;
&lt;td style="border-bottom:#56aa1c 1px solid;padding:4px 5px 4px 50px;text-align:left;"&gt;13 December 2016&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;tbody&gt;&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;!--–– end of Bentley header ––--&gt;
&lt;p&gt;With the introduction of the tunnel designer with sequencing options, it is now possible to define a repetitive tunnel construction sequence to model tunnel advancement procedures for the calculation phases.&lt;br /&gt;When the tunnel needs to be moved one step forward in this sequence in a phase, you need to select the Tunnel from the model explorer, right-click and select the option &lt;em&gt;Advance to next tunnel step&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img class="size-full wp-image-18927 aligncenter" alt="tunnel_advancement_script_for_PLAXIS_3D_GIF" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-05-58/tunnel_5F00_advancement_5F00_script_5F00_for_5F00_PLAXIS_5F00_3D_5F00_GIF.gif" /&gt;&lt;br /&gt;Doing this for many phases is a lot of manual and tedious work, and chances are that in a large tunnel project one could easily miss one step by mistake.&lt;br /&gt;Using the command line would give you more certainty that all the steps are performed for all the phase.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The command to advance the tunnel one step in its sequence in a phase is:&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, courier new;font-size:13px;line-height:105%;margin:2px;overflow:auto;padding:2px;white-space:pre;"&gt;&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_1&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;h3&gt;Commands Runner&lt;/h3&gt;
&lt;p&gt;Using the Commands runner, you could specify this easily for a few phases:&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, courier new;font-size:13px;line-height:105%;margin:2px;overflow:auto;padding:2px;white-space:pre;"&gt;&lt;span style="color:navy;"&gt;phase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_1&lt;/span&gt;
&lt;span style="color:navy;"&gt;setcurrentphase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_2&lt;/span&gt;
&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_2&lt;/span&gt;
&lt;span style="color:navy;"&gt;phase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_2&lt;/span&gt;
&lt;span style="color:navy;"&gt;setcurrentphase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_3&lt;/span&gt;
&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_3&lt;/span&gt;
&lt;span style="color:navy;"&gt;phase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_3&lt;/span&gt;
&lt;span style="color:navy;"&gt;setcurrentphase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_4&lt;/span&gt;
&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_4&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;When dealing with a lot more phases, this can be a lot of effort to make it work for all the phases until you reach the final tunnel construction.&lt;/p&gt;
&lt;h3&gt;Python solution&lt;/h3&gt;
&lt;p&gt;It would be nice if we could just repeat this procedure of tunnel advancement several times. Using the Plaxis Remote Scripting feature and the Python wrapper, we can do this easily by defining a for loop to repeat this tunnel advancement for a predefined number of times.&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:2px;overflow:auto;padding:2px;white-space:pre;"&gt;advancementsteps &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; &lt;strong&gt;10&lt;/strong&gt;

tunnel &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; g_i.Tunnel_1
lastphase &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; g_i.Phase_1

&lt;span style="color:#ff5600;"&gt;for&lt;/span&gt; i &lt;span style="color:#ff5600;"&gt;in&lt;/span&gt; &lt;span style="color:#a535ae;"&gt;range&lt;/span&gt;(advancementsteps):
    lastphase &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; g_i.phase(lastphase)
    g_i.setcurrentphase(lastphase)
    g_i.advance(tunnel, lastphase)
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;This can be further extended to also include a nice GUI window (using the &lt;span style="color:navy;font-family:&amp;#39;Lucida Console&amp;#39;,consolas, courier new;line-height:105%;"&gt;easygui&lt;/span&gt; module) to fill in the number of steps. Below you can find this Python script file.&lt;/p&gt;
&lt;p&gt;&lt;img class="aligncenter size-full wp-image-19574" alt="PLAXIS 3D CONNECT Edition V20 - Tunnel advancement script in action" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-05-58/plaxis3dcev20_5F00_tunnel_5F00_advancement_5F00_script.gif" /&gt;&lt;/p&gt;
&lt;h2&gt;Usage instructions for Python script&lt;/h2&gt;
&lt;p&gt;To use this file:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Download the file (use &lt;em&gt;Save As...&lt;/em&gt;);&lt;/li&gt;
&lt;li&gt;Unpack the zip file and copy the tunnel_advancement.py file to this folder:&lt;br /&gt;&amp;lt;PLAXIS 3D installation folder&amp;gt;\pytools\input&lt;br /&gt;By default the installation folder for PLAXIS 3D is:&lt;br /&gt;C:\Program Files\Bentley\Geotechnical\PLAXIS 3D CONNECT Edition V20\&lt;br /&gt;For older versions, this would be:&lt;br /&gt;C:\Program Files\Plaxis\Plaxis 3D\&lt;/li&gt;
&lt;li&gt;Restart PLAXIS 3D and open a Plaxis file with a tunnel with sequencing defined&lt;/li&gt;
&lt;li&gt;Make sure you are in &lt;em&gt;Staged construction&lt;/em&gt; mode&lt;/li&gt;
&lt;li&gt;In the Expert menu, go to Python &amp;gt; Run script &amp;gt; Tools. Here you should see the name of Python file. When selecting it, it will execute the script to advance your tunnel for the specified number of steps.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When you do not have access rights to add the script in this folder, alternatively, you can choose to use Expert menu &amp;gt; Python &amp;gt; Run script &amp;gt; Open... to manually open and run the file.&lt;/p&gt;
&lt;div&gt;
&lt;h4&gt;Downloads&lt;/h4&gt;
&lt;ul style="color:#56aa1c;list-style-type:square;padding-bottom:5px;"&gt;
&lt;li&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-05-58/tunnel_5F00_advancement_5F00_tool.py"&gt;[Python script] PLAXIS 3D Tunnel advancement tool&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h4&gt;See also&lt;/h4&gt;
&lt;div style="padding-left:20px;" id="plxrelated"&gt;
&lt;div id="plxrelateditem"&gt;
&lt;p&gt;&lt;a style="font-size:110%;" href="/products/geotechnical1/w/wiki/45903/how-to-define-an-excavation-sequence-in-tunnel-designer"&gt;How to define an excavation sequence in Tunnel Designer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:90%;"&gt;[Videos]&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Plaxis 3D, python, pytool, API, NATM tunnel, py cookbook, App, PLAXIS, cookbook, python cookbook, Tunnel, tool, sequencing, pyapp, tunnel designer&lt;/div&gt;
</description></item><item><title>Tunnel advancement script for PLAXIS 3D</title><link>https://communities.bentley.com/products/geotech-analysis/w/wiki/45448/tunnel-advancement-script-for-plaxis-3d/revision/2</link><pubDate>Tue, 24 Dec 2019 11:13:55 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a7b060a3-85a0-4310-a220-892cd946f0a3</guid><dc:creator>Micha van der Sloot</dc:creator><comments>https://communities.bentley.com/products/geotech-analysis/w/wiki/45448/tunnel-advancement-script-for-plaxis-3d#comments</comments><description>Revision 2 posted to GeoStudio | PLAXIS Wiki by Micha van der Sloot on 12/24/2019 11:13:55 AM&lt;br /&gt;
&lt;div class="content-scrollable-wrapper" style="overflow:auto;border-collapse:collapse;padding-bottom:30px;"&gt;
&lt;table border="0" style="width:500px;background-color:#fffff;border:rgb(86, 170, 28) 0px solid;border-width:1px 0px 0px 0px;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;border-bottom:rgb(86, 170, 28) 1px solid;padding:4px 5px 4px 50px;"&gt;&lt;strong&gt;Application&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:left;padding:4px 5px 4px 50px;border-bottom:rgb(86, 170, 28) 1px solid;"&gt;PLAXIS 3D&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;border-bottom:rgb(86, 170, 28) 1px solid;padding:4px 5px 4px 50px;"&gt;&lt;strong&gt;Version&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:left;padding:4px 5px 4px 50px;border-bottom:rgb(86, 170, 28) 1px solid;"&gt;PLAXIS 3D&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;border-bottom:rgb(86, 170, 28) 1px solid;padding:4px 5px 4px 50px;"&gt;&lt;strong&gt;Date created&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:left;padding:4px 5px 4px 50px;border-bottom:rgb(86, 170, 28) 1px solid;"&gt;13 December 2016&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;border-bottom:rgb(86, 170, 28) 1px solid;padding:4px 5px 4px 50px;"&gt;&lt;strong&gt;Date modified&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:left;padding:4px 5px 4px 50px;border-bottom:rgb(86, 170, 28) 1px solid;"&gt;13 December 2016&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;tbody&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;!--–– end of Bentley header ––--&gt;
&lt;p&gt;With the introduction of the tunnel designer with sequencing options, it is now possible to define a repetitive tunnel construction sequence to model tunnel advancement procedures for the calculation phases.&lt;br /&gt;When the tunnel needs to be moved one step forward in this sequence in a phase, you need to select the Tunnel from the model explorer, right-click and select the option &lt;em&gt;Advance to next tunnel step&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img alt="tunnel_advancement_script_for_PLAXIS_3D_GIF" class="size-full wp-image-18927 aligncenter" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-05/tunnel_5F00_advancement_5F00_script_5F00_for_5F00_PLAXIS_5F00_3D_5F00_GIF.gif" /&gt;&lt;br /&gt;Doing this for many phases is a lot of manual and tedious work, and chances are that in a large tunnel project one could easily miss one step by mistake.&lt;br /&gt;Using the command line would give you more certainty that all the steps are performed for all the phase.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The command to advance the tunnel one step in its sequence in a phase is:&lt;/p&gt;
&lt;div style="background:#ffffff;overflow:auto;width:auto;border:solid grey;border-width:.1em .1em .1em .8em;padding:.2em .6em;"&gt;&lt;pre style="color:#000;font-size:13px;font-family:&amp;#39;Lucida Console&amp;#39;,consolas, courier new;padding:2px;margin:2px;line-height:105%;overflow:auto;white-space:pre;"&gt;&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_1&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Commands Runner&lt;/h3&gt;
&lt;p&gt;Using the Commands runner, you could specify this easily for a few phases:&lt;/p&gt;
&lt;div style="background:#ffffff;overflow:auto;width:auto;border:solid grey;border-width:.1em .1em .1em .8em;padding:.2em .6em;"&gt;&lt;pre style="color:#000;font-size:13px;font-family:&amp;#39;Lucida Console&amp;#39;,consolas, courier new;padding:2px;margin:2px;line-height:105%;overflow:auto;white-space:pre;"&gt;&lt;span style="color:navy;"&gt;phase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_1&lt;/span&gt;
&lt;span style="color:navy;"&gt;setcurrentphase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_2&lt;/span&gt;
&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_2&lt;/span&gt;
&lt;span style="color:navy;"&gt;phase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_2&lt;/span&gt;
&lt;span style="color:navy;"&gt;setcurrentphase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_3&lt;/span&gt;
&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_3&lt;/span&gt;
&lt;span style="color:navy;"&gt;phase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_3&lt;/span&gt;
&lt;span style="color:navy;"&gt;setcurrentphase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_4&lt;/span&gt;
&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_4&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;When dealing with a lot more phases, this can be a lot of effort to make it work for all the phases until you reach the final tunnel construction.&lt;/p&gt;
&lt;h3&gt;Python solution&lt;/h3&gt;
&lt;p&gt;It would be nice if we could just repeat this procedure of tunnel advancement several times. Using the Plaxis Remote Scripting feature and the Python wrapper, we can do this easily by defining a for loop to repeat this tunnel advancement for a predefined number of times.&lt;/p&gt;
&lt;div style="background:#ffffff;overflow:auto;width:auto;border:solid grey;border-width:.1em .1em .1em .8em;padding:.2em .6em;"&gt;&lt;pre style="color:#000;font-size:13px;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;padding:2px;margin:2px;line-height:120%;overflow:auto;white-space:pre;"&gt;advancementsteps &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; &lt;strong&gt;10&lt;/strong&gt;

tunnel &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; g_i.Tunnel_1
lastphase &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; g_i.Phase_1

&lt;span style="color:#ff5600;"&gt;for&lt;/span&gt; i &lt;span style="color:#ff5600;"&gt;in&lt;/span&gt; &lt;span style="color:#a535ae;"&gt;range&lt;/span&gt;(advancementsteps):
    lastphase &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; g_i.phase(lastphase)
    g_i.setcurrentphase(lastphase)
    g_i.advance(tunnel, lastphase)
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This can be further extended to also include a nice GUI window (using the &lt;span style="color:navy;font-family:&amp;#39;Lucida Console&amp;#39;,consolas, courier new;line-height:105%;"&gt;easygui&lt;/span&gt; module) to fill in the number of steps. Below you can find this Python script file.&lt;/p&gt;
&lt;p&gt;&lt;img alt="PLAXIS 3D CONNECT Edition V20 - Tunnel advancement script in action" class="aligncenter size-full wp-image-19574" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-05/plaxis3dcev20_5F00_tunnel_5F00_advancement_5F00_script.gif" /&gt;&lt;/p&gt;
&lt;h2&gt;Usage instructions for Python script&lt;/h2&gt;
&lt;p&gt;To use this file:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Download the file (use &lt;em&gt;Save As...&lt;/em&gt;);&lt;/li&gt;&lt;li&gt;Unpack the zip file and copy the tunnel_advancement.py file to this folder:&lt;br /&gt;&amp;lt;PLAXIS 3D installation folder&amp;gt;\pytools\input&lt;br /&gt;By default the installation folder for PLAXIS 3D is:&lt;br /&gt;C:\Program Files\Bentley\Geotechnical\PLAXIS 3D CONNECT Edition V20\&lt;br /&gt;For older versions, this would be:&lt;br /&gt;C:\Program Files\Plaxis\Plaxis 3D\&lt;/li&gt;&lt;li&gt;Restart PLAXIS 3D and open a Plaxis file with a tunnel with sequencing defined&lt;/li&gt;&lt;li&gt;Make sure you are in &lt;em&gt;Staged construction&lt;/em&gt; mode&lt;/li&gt;&lt;li&gt;In the Expert menu, go to Python &amp;gt; Run script &amp;gt; Tools. Here you should see the name of Python file. When selecting it, it will execute the script to advance your tunnel for the specified number of steps.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;When you do not have access rights to add the script in this folder, alternatively, you can choose to use Expert menu &amp;gt; Python &amp;gt; Run script &amp;gt; Open... to manually open and run the file.&lt;/p&gt;
&lt;div&gt;
&lt;h4&gt;Downloads&lt;/h4&gt;
&lt;ul style="list-style-type:square;color:rgb(86, 170, 28);padding-bottom:5px;"&gt;
&lt;li&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-05/tunnel_5F00_advancement_5F00_tool.py"&gt;[Python script] PLAXIS 3D Tunnel advancement tool&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h4&gt;See also&lt;/h4&gt;
&lt;div id="plxrelated" style="padding-left:20px;"&gt;
&lt;div id="plxrelateditem"&gt;
&lt;p&gt;&lt;a href="https://communities.bentley.com/products/geotechnical1/w/wiki/45903/how-to-define-an-excavation-sequence-in-tunnel-designer" style="font-size:110%;"&gt;How to define an excavation sequence in Tunnel Designer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:90%;"&gt;[Videos]&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Plaxis 3D, python, pytool, API, NATM tunnel, py cookbook, App, PLAXIS, cookbook, python cookbook, Tunnel, tool, sequencing, pyapp, tunnel designer&lt;/div&gt;
</description></item><item><title>Tunnel advancement script for PLAXIS 3D</title><link>https://communities.bentley.com/products/geotech-analysis/w/wiki/45448/tunnel-advancement-script-for-plaxis-3d/revision/1</link><pubDate>Wed, 18 Dec 2019 14:34:22 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a7b060a3-85a0-4310-a220-892cd946f0a3</guid><dc:creator>Micha van der Sloot</dc:creator><comments>https://communities.bentley.com/products/geotech-analysis/w/wiki/45448/tunnel-advancement-script-for-plaxis-3d#comments</comments><description>Revision 1 posted to GeoStudio | PLAXIS Wiki by Micha van der Sloot on 12/18/2019 2:34:22 PM&lt;br /&gt;
&lt;div class="content-scrollable-wrapper" style="overflow:auto;border-collapse:collapse;padding-bottom:30px;"&gt;
&lt;table border="0" style="width:500px;background-color:#fffff;border:rgb(86, 170, 28) 0px solid;border-width:1px 0px 0px 0px;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;border-bottom:rgb(86, 170, 28) 1px solid;padding:4px 5px 4px 50px;"&gt;&lt;strong&gt;Application&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:left;padding:4px 5px 4px 50px;border-bottom:rgb(86, 170, 28) 1px solid;"&gt;PLAXIS 3D&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;border-bottom:rgb(86, 170, 28) 1px solid;padding:4px 5px 4px 50px;"&gt;&lt;strong&gt;Version&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:left;padding:4px 5px 4px 50px;border-bottom:rgb(86, 170, 28) 1px solid;"&gt;PLAXIS 3D&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;border-bottom:rgb(86, 170, 28) 1px solid;padding:4px 5px 4px 50px;"&gt;&lt;strong&gt;Date created&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:left;padding:4px 5px 4px 50px;border-bottom:rgb(86, 170, 28) 1px solid;"&gt;13 December 2016&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;border-bottom:rgb(86, 170, 28) 1px solid;padding:4px 5px 4px 50px;"&gt;&lt;strong&gt;Date modified&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:left;padding:4px 5px 4px 50px;border-bottom:rgb(86, 170, 28) 1px solid;"&gt;13 December 2016&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;tbody&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;!--–– end of Bentley header ––--&gt;
&lt;p&gt;With the introduction of the tunnel designer with sequencing options, it is now possible to define a repetitive tunnel construction sequence to model tunnel advancement procedures for the calculation phases.&lt;br /&gt;When the tunnel needs to be moved one step forward in this sequence in a phase, you need to select the Tunnel from the model explorer, right-click and select the option &lt;em&gt;Advance to next tunnel step&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img alt="tunnel_advancement_script_for_PLAXIS_3D_GIF" class="size-full wp-image-18927 aligncenter" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-05/tunnel_5F00_advancement_5F00_script_5F00_for_5F00_PLAXIS_5F00_3D_5F00_GIF.gif" /&gt;&lt;br /&gt;Doing this for many phases is a lot of manual and tedious work, and chances are that in a large tunnel project one could easily miss one step by mistake.&lt;br /&gt;Using the command line would give you more certainty that all the steps are performed for all the phase.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The command to advance the tunnel one step in its sequence in a phase is:&lt;/p&gt;
&lt;div style="background:#ffffff;overflow:auto;width:auto;border:solid grey;border-width:.1em .1em .1em .8em;padding:.2em .6em;"&gt;&lt;pre style="color:#000;font-size:13px;font-family:&amp;#39;Lucida Console&amp;#39;,consolas, courier new;padding:2px;margin:2px;line-height:105%;overflow:auto;white-space:pre;"&gt;&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_1&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Commands Runner&lt;/h3&gt;
&lt;p&gt;Using the Commands runner, you could specify this easily for a few phases:&lt;/p&gt;
&lt;div style="background:#ffffff;overflow:auto;width:auto;border:solid grey;border-width:.1em .1em .1em .8em;padding:.2em .6em;"&gt;&lt;pre style="color:#000;font-size:13px;font-family:&amp;#39;Lucida Console&amp;#39;,consolas, courier new;padding:2px;margin:2px;line-height:105%;overflow:auto;white-space:pre;"&gt;&lt;span style="color:navy;"&gt;phase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_1&lt;/span&gt;
&lt;span style="color:navy;"&gt;setcurrentphase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_2&lt;/span&gt;
&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_2&lt;/span&gt;
&lt;span style="color:navy;"&gt;phase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_2&lt;/span&gt;
&lt;span style="color:navy;"&gt;setcurrentphase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_3&lt;/span&gt;
&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_3&lt;/span&gt;
&lt;span style="color:navy;"&gt;phase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_3&lt;/span&gt;
&lt;span style="color:navy;"&gt;setcurrentphase&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_4&lt;/span&gt;
&lt;span style="color:navy;"&gt;advance&lt;/span&gt; &lt;span style="color:navy;"&gt;Tunnel_1&lt;/span&gt; &lt;span style="color:navy;"&gt;Phase_4&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;When dealing with a lot more phases, this can be a lot of effort to make it work for all the phases until you reach the final tunnel construction.&lt;/p&gt;
&lt;h3&gt;Python solution&lt;/h3&gt;
&lt;p&gt;It would be nice if we could just repeat this procedure of tunnel advancement several times. Using the Plaxis Remote Scripting feature and the Python wrapper, we can do this easily by defining a for loop to repeat this tunnel advancement for a predefined number of times.&lt;/p&gt;
&lt;div style="background:#ffffff;overflow:auto;width:auto;border:solid grey;border-width:.1em .1em .1em .8em;padding:.2em .6em;"&gt;&lt;pre style="color:#000;font-size:13px;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;padding:2px;margin:2px;line-height:120%;overflow:auto;white-space:pre;"&gt;advancementsteps &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; &lt;strong&gt;10&lt;/strong&gt;

tunnel &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; g_i.Tunnel_1
lastphase &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; g_i.Phase_1

&lt;span style="color:#ff5600;"&gt;for&lt;/span&gt; i &lt;span style="color:#ff5600;"&gt;in&lt;/span&gt; &lt;span style="color:#a535ae;"&gt;range&lt;/span&gt;(advancementsteps):
    lastphase &lt;span style="color:#ff5600;"&gt;=&lt;/span&gt; g_i.phase(lastphase)
    g_i.setcurrentphase(lastphase)
    g_i.advance(tunnel, lastphase)
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This can be further extended to also include a nice GUI window (using the &lt;span style="color:navy;font-family:&amp;#39;Lucida Console&amp;#39;,consolas, courier new;line-height:105%;"&gt;easygui&lt;/span&gt; module) to fill in the number of steps. Below you can find this Python script file.&lt;/p&gt;
&lt;p&gt;&lt;img alt="PLAXIS 3D CONNECT Edition V20 - Tunnel advancement script in action" class="aligncenter size-full wp-image-19574" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-05/plaxis3dcev20_5F00_tunnel_5F00_advancement_5F00_script.gif" /&gt;&lt;/p&gt;
&lt;h2&gt;Usage instructions for Python script&lt;/h2&gt;
&lt;p&gt;To use this file:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Download the file (use &lt;em&gt;Save As...&lt;/em&gt;);&lt;/li&gt;&lt;li&gt;Unpack the zip file and copy the tunnel_advancement.py file to this folder:&lt;br /&gt;&amp;lt;PLAXIS 3D installation folder&amp;gt;\pytools\input&lt;br /&gt;By default the installation folder for PLAXIS 3D is:&lt;br /&gt;C:\Program Files\Bentley\Geotechnical\PLAXIS 3D CONNECT Edition V20\&lt;br /&gt;For older versions, this would be:&lt;br /&gt;C:\Program Files\Plaxis\Plaxis 3D\&lt;/li&gt;&lt;li&gt;Restart PLAXIS 3D and open a Plaxis file with a tunnel with sequencing defined&lt;/li&gt;&lt;li&gt;Make sure you are in &lt;em&gt;Staged construction&lt;/em&gt; mode&lt;/li&gt;&lt;li&gt;In the Expert menu, go to Python &amp;gt; Run script &amp;gt; Tools. Here you should see the name of Python file. When selecting it, it will execute the script to advance your tunnel for the specified number of steps.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;When you do not have access rights to add the script in this folder, alternatively, you can choose to use Expert menu &amp;gt; Python &amp;gt; Run script &amp;gt; Open... to manually open and run the file.&lt;/p&gt;
&lt;div&gt;
&lt;h4&gt;Downloads&lt;/h4&gt;
&lt;ul style="list-style-type:square;color:rgb(86, 170, 28);padding-bottom:5px;"&gt;
&lt;li&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-05/tunnel_5F00_advancement_5F00_tool.py"&gt;[Python script] PLAXIS 3D Tunnel advancement tool&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h4&gt;See also&lt;/h4&gt;
&lt;div id="plxrelated" style="padding-left:20px;"&gt;
&lt;div id="plxrelateditem"&gt;
&lt;p&gt;&lt;a href="https://www.plaxis.com/support/videos/how-to-define-excavation-sequence-tunnel-designer/" style="font-size:110%;"&gt;How to define an excavation sequence in Tunnel Designer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:90%;"&gt;[Videos]&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Plaxis 3D, python, pytool, API, NATM tunnel, py cookbook, App, PLAXIS, cookbook, python cookbook, Tunnel, tool, sequencing, pyapp, tunnel designer&lt;/div&gt;
</description></item></channel></rss>