<?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>Get the ID rather than the phase number when scripting</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/208411/get-the-id-rather-than-the-phase-number-when-scripting</link><description>Hello! 
 
 This might be a real simple question but I cannot seem to find any solution online 
 When writing scripts and per the examples available on the website - the results often are presented as for example : Phase 3, max moment 45 knm/m. As the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get the ID rather than the phase number when scripting</title><link>https://communities.bentley.com/thread/634005?ContentTypeID=1</link><pubDate>Fri, 12 Feb 2021 15:56:16 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:246c97ed-ac10-4fc4-af5c-f77c592aa968</guid><dc:creator>Grissel Hurtado</dc:creator><description>&lt;meta content="text/html; charset=iso-8859-1" /&gt;

 &lt;meta name="application-name" content="gfidisc.iingen.unam.mx " /&gt; 

&lt;div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt;"&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
Thank you very much for the prompt response, some of these articles I had already reviewed, what I could not find was the explanation you gave me about the load when you use an asterisk.
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;thank you
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;div style="font-family:Times New Roman;color:#000000;font-size:16px;"&gt;
&lt;hr /&gt;
&lt;div id="divRpF48424" style="direction:ltr;"&gt;&lt;font face="Tahoma" size="2" color="#000000"&gt;&lt;b&gt;De:&lt;/b&gt; Stefanos Papavasileiou [bounce-cdbba617-aa83-4c94-b37e-bf6969746ae6@communities.bentley.com]&lt;br /&gt;
&lt;b&gt;Enviado:&lt;/b&gt; viernes, 12 de febrero de 2021 05:15 a.m.&lt;br /&gt;
&lt;b&gt;Para:&lt;/b&gt; PLAXISSOILVISION@communities.bentley.com&lt;br /&gt;
&lt;b&gt;Asunto:&lt;/b&gt; RE: [PLAXIS | SOILVISION Forum] Get the ID rather than the phase number when scripting
&lt;br /&gt;
&lt;/font&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span id="--zimbra-community-reply-marker-start--"&gt;&lt;/span&gt;
&lt;table id="backgroundTable" border="0" cellpadding="20" style="border-collapse:collapse;margin-left:auto;margin-right:auto;padding:0px;width:100%;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="background:#eee;padding:20px;"&gt;
&lt;table align="center" border="0" cellpadding="20" style="border-collapse:collapse;margin-left:auto;margin-right:auto;padding:0px;width:90%;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="background:#f6f6f6;border-bottom:1px solid #d9d9d9;font-family:Arial,Helvetica,sans-serif;height:82px;padding:0 20px;"&gt;
&lt;table border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style="color:#7f7f7f;font-family:Arial,Helvetica,sans-serif;font-size:10pt;text-decoration:none;"&gt;&lt;a href="https://communities.bentley.com/" title&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td valign="middle" style="padding-left:10px;"&gt;&lt;span style="color:#7f7f7f;font-family:Arial,Helvetica,sans-serif;font-size:10pt;text-decoration:none;"&gt;&lt;a href="https://communities.bentley.com/"&gt;Update from&amp;nbsp;Bentley
 Communities&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="background:#FFFFFF;font-family:Arial,Helvetica,sans-serif;font-size:10pt;padding:20px 20px 10px;"&gt;
&lt;table border="0" cellspacing="0" cellpadding="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://communities.bentley.com/members/cdbba617_2d00_aa83_2d00_4c94_2d00_b37e_2d00_bf6969746ae6" title&gt;
&lt;div style="width:70px;height:70px;overflow:hidden;"&gt;&lt;/div&gt;
&lt;/a&gt;&lt;/td&gt;
&lt;td style="padding-left:10px;"&gt;&lt;a href="https://communities.bentley.com/members/cdbba617_2d00_aa83_2d00_4c94_2d00_b37e_2d00_bf6969746ae6" title&gt;&lt;span style="text-decoration:none;color:#0087c3;"&gt;Stefanos Papavasileiou&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Dear Grissel,&lt;/p&gt;
&lt;p&gt;Following my answer to the service request earlier this week I include my response here for the Forum.&lt;/p&gt;
&lt;p&gt;Unfortunately, we do not have such a specific Python script, however, I believe that&amp;nbsp;with the information below you can succeed.&lt;/p&gt;
&lt;p&gt;First of all, please check the Wiki article about the Python scripting in understanding how to work with our boilerplate:
&lt;a href="https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/46005/using-plaxis-remote-scripting-with-the-python-wrapper"&gt;
communities.bentley.com/.../using-plaxis-remote-scripting-with-the-python-wrapper&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would also strongly advise you to check our Scripting reference as we give examples for every command used in PLAXIS:
&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;p&gt;The following article is very useful in understanding the command syntax in PLAXIS and what is needed by Python:&lt;br /&gt;
&lt;a href="https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/45454/identify-python-commands-from-plaxis-command-line"&gt;communities.bentley.com/.../identify-python-commands-from-plaxis-command-line&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then, we have quite a few examples on our Wiki pages of various cases that you can use:
&lt;a href="https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/45393/api-python-scripting---plaxis"&gt;
communities.bentley.com/.../api-python-scripting---plaxis&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To give you a quick answer, adding a load in Structure mode can be done with the following command:&lt;/p&gt;
&lt;p&gt;PLAXIS: lineload (0 0) (2 0)&lt;br /&gt;
Python: g_i.lineload(0, 0, 2, 0)&lt;/p&gt;
&lt;p&gt;PLAXIS: set Line_1.LineLoad.qy_start -100&lt;br /&gt;
Python: g_i.Line_1.LineLoad.qy_start = -100 &lt;br /&gt;
or g_i.LineLoad_1.qy_start = -100 &lt;br /&gt;
or g_i.LineLoad_1.qy_start.set(-100)&lt;/p&gt;
&lt;p&gt;In Staged construction you can activate and change the value like this:&lt;/p&gt;
&lt;p&gt;PLAXIS: activate (LineLoad_1_1) Phase_1&lt;br /&gt;
Python: g_i.activate(g_i.LineLoad_1_1, g_i.Phase_1)&lt;/p&gt;
&lt;p&gt;PLAXIS: set LineLoad_1_1.qy_start Phase_1 -150&lt;br /&gt;
Python: g_i.LineLoad_1_1.qy_start[g_i.Phase_1] = -150&lt;br /&gt;
or g_i.LineLoad_1_1.qy_start.set(g_i.Phase_1, -150)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://communities.bentley.com/products/geotech-analysis/f/plaxis-soilvision-forum/208411/get-the-id-rather-than-the-phase-number-when-scripting/633944#633944" title&gt;&lt;span style="text-decoration:none;color:#0087c3;"&gt;View
 online&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="background:#FFFFFF;height:11px;padding:0;width:100%;"&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="color:#7f7f7f;font-family:Arial,Helvetica,sans-serif;font-size:8pt;padding:15px 20px;"&gt;
&lt;p&gt;You received this notification because you subscribed to the forum. &amp;nbsp;To unsubscribe from only this thread,
&lt;a href="https://communities.bentley.com/products/geotech-analysis/f/plaxis-soilvision-forum/208411/get-the-id-rather-than-the-phase-number-when-scripting/mute" title&gt;
&lt;span style="text-decoration:none;color:#0087c3;"&gt;go here&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://communities.bentley.com/products/geotech-analysis/f/plaxis-soilvision-forum/208411/get-the-id-rather-than-the-phase-number-when-scripting/633944?AbuseContentId=d86f8745-7259-48a8-a438-0422357bf20e&amp;amp;AbuseContentTypeId=f586769b-0822-468a-b7f3-a94d480ed9b0&amp;amp;AbuseFlag=true" title&gt;&lt;span style="text-decoration:none;color:#0087c3;"&gt;Flag&lt;/span&gt;&lt;/a&gt;&amp;nbsp;this
 post&amp;nbsp;as spam/abuse.&lt;/p&gt;
&lt;div style="width:1px;height:1px;overflow:hidden;"&gt;&lt;img src="https://communities.bentley.com/notification/read?NotificationId=20da2e5e-f8e0-41f1-91ec-c37b72a7a245" alt=" " /&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;span id="--zimbra-community-reply-marker-end--"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p class="gfidisc.iingen.unam.mx" id="gfidisc.iingen.unam.mx"&gt;&lt;/p&gt;&lt;a id="gfidisc.iingen.unam.mx" title="gfidisc.iingen.unam.mx" class="gfidisc.iingen.unam.mx"&gt;&lt;/a&gt;&lt;h1 class="gfidisc.iingen.unam.mx"&gt;&lt;/h1&gt;&lt;p&gt;Puede consultar el Aviso de Privacidad del Instituto de Ingenier&amp;iacute;a UNAM en: &lt;a href="http://www.iingen.unam.mx"&gt;http://www.iingen.unam.mx&lt;/a&gt;&lt;/p&gt;&lt;p class="gfidisc.iingen.unam.mx" id="gfidisc.iingen.unam.mx"&gt;&lt;/p&gt;&lt;a id="gfidisc.iingen.unam.mx" title="gfidisc.iingen.unam.mx" class="gfidisc.iingen.unam.mx"&gt;&lt;/a&gt;&lt;h1 class="gfidisc.iingen.unam.mx"&gt;&lt;/h1&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the ID rather than the phase number when scripting</title><link>https://communities.bentley.com/thread/633944?ContentTypeID=1</link><pubDate>Fri, 12 Feb 2021 11:15:37 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d86f8745-7259-48a8-a438-0422357bf20e</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Grissel,&lt;/p&gt;
&lt;p&gt;Following my answer to the service request earlier this week I include my response here for the Forum.&lt;/p&gt;
&lt;p&gt;Unfortunately, we do not have such a specific Python script, however, I believe that&amp;nbsp;with the information below you can succeed.&lt;/p&gt;
&lt;p&gt;First of all, please check the Wiki article about the Python scripting in understanding how to work with our boilerplate: &lt;a href="https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/46005/using-plaxis-remote-scripting-with-the-python-wrapper"&gt;communities.bentley.com/.../using-plaxis-remote-scripting-with-the-python-wrapper&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would also strongly advise you to check our Scripting reference as we give examples for every command used in PLAXIS: &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;p&gt;The following article is very useful in understanding the command syntax in PLAXIS and what is needed by Python:&lt;br /&gt;&lt;a href="https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/45454/identify-python-commands-from-plaxis-command-line"&gt;communities.bentley.com/.../identify-python-commands-from-plaxis-command-line&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then, we have quite a few examples on our Wiki pages of various cases that you can use: &lt;a href="https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/45393/api-python-scripting---plaxis"&gt;communities.bentley.com/.../api-python-scripting---plaxis&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To give you a quick answer, adding a load in Structure mode can be done with the following command:&lt;/p&gt;
&lt;p&gt;PLAXIS: lineload (0 0) (2 0)&lt;br /&gt;Python: g_i.lineload(0, 0, 2, 0)&lt;/p&gt;
&lt;p&gt;PLAXIS: set Line_1.LineLoad.qy_start -100&lt;br /&gt;Python: g_i.Line_1.LineLoad.qy_start = -100 &lt;br /&gt;or g_i.LineLoad_1.qy_start = -100 &lt;br /&gt;or g_i.LineLoad_1.qy_start.set(-100)&lt;/p&gt;
&lt;p&gt;In Staged construction you can activate and change the value like this:&lt;/p&gt;
&lt;p&gt;PLAXIS: activate (LineLoad_1_1) Phase_1&lt;br /&gt;Python: g_i.activate(g_i.LineLoad_1_1, g_i.Phase_1)&lt;/p&gt;
&lt;p&gt;PLAXIS: set LineLoad_1_1.qy_start Phase_1 -150&lt;br /&gt;Python: g_i.LineLoad_1_1.qy_start[g_i.Phase_1] = -150&lt;br /&gt;or g_i.LineLoad_1_1.qy_start.set(g_i.Phase_1, -150)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the ID rather than the phase number when scripting</title><link>https://communities.bentley.com/thread/633227?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 18:27:00 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f64198d7-ba28-4d9f-9c61-68fe4444e5c8</guid><dc:creator>Grissel Hurtado</dc:creator><description>&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;excuse some example where a load is applied is that when I run my script it marks an error in the module and I don&amp;#39;t know why it should be&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the ID rather than the phase number when scripting</title><link>https://communities.bentley.com/thread/629400?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2021 12:32:59 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:ecdf309a-7925-4b2f-994b-74d5f6c0caef</guid><dc:creator>Rushan Gizzatullin</dc:creator><description>&lt;p&gt;Dear&amp;nbsp;&lt;strong&gt;Robin Rohwer Bokvist,&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You can try to use:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;g.Phases[1].Identification.value&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;More information you can find in the &lt;em&gt;Command reference&lt;/em&gt; and in &lt;em&gt;Scripting reference:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343671/pastedimage1610713349480v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;For example (Command reference &amp;rarr; Input &amp;rarr; Input objects reference &amp;rarr; Phase):&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343671/pastedimage1610713397719v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;In command line we can use:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;_set Phase_1.Identification &amp;quot;Some phase title&amp;quot;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>