<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RSA Dynamo API python continue untill in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/rsa-dynamo-api-python-continue-untill/m-p/9749526#M18171</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5952516"&gt;@cool.stuff&lt;/a&gt;&amp;nbsp; thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i saw i forgot something to mention. I’m only calculating the pile model, and not a complete structure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See the 3 pictures below which contains the steps i described at the begin of the topic.&lt;BR /&gt;1 pile Total load 100kN(FZ), 10kNm due to NEN-EN excentricity, and 10kN horizontal force. Ratio is 2.81.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1 pile.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/819764i463EAFCD499B2780/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1 pile.JPG" alt="1 pile.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 piles Total load 100kN/2=50kN(FZ), 10kNm/2=5kNm due to NEN-EN excentricity, and 10kN/2=5kN horizontal force. Ratio is 1.03.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2 piles.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/819765i4BB5AD65CD777B29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2 piles.JPG" alt="2 piles.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3 piles Total load 100kN/3=33.34kN(FZ), 10kNm/3=3.34kNm due to NEN-EN excentricity, and 10kN/3=3.34kN horizontal force. Ratio is 0.61.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3 piles.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/819766iC21237B01AE42984/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3 piles.JPG" alt="3 piles.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So i went on and started writing a simple script just to figure out how it should work. this is what i have so far.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Script base without while.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/819767i22D9215AC5E99C3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Script base without while.JPG" alt="Script base without while.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this is the script inside the python node:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
Belasting = IN[0]
Aantalpalen = IN[1]


Toelaatbaar = 10
nraantal = len(Aantalpalen)
i = 0
Paalbel = Belasting/Aantalpalen[i]
Unity = Paalbel/Toelaatbaar

Paalbelasting = []
aantal= []


for i in range(len(Aantalpalen)):
	Paalbel = Belasting/Aantalpalen[i]
	Unity = Paalbel/Toelaatbaar
	aantal.append(Unity)
	Paalbelasting.append(Paalbel)


#Assign your output to the OUT variable.
OUT = Unity, nraantal, aantal, Paalbelasting&lt;/LI-CODE&gt;&lt;P&gt;But know i have to add the while function on this so my script will stop wen reaching the ratio/unity of 1. which is as you can see in the picture with 10 piles.&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5952516"&gt;@cool.stuff&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/589195"&gt;@Rafal.Gaweda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone of you know how to write the “while” in this script to get this working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gr Edward&lt;/P&gt;&lt;P&gt;Files are attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2020 07:35:48 GMT</pubDate>
    <dc:creator>1234eddie</dc:creator>
    <dc:date>2020-09-16T07:35:48Z</dc:date>
    <item>
      <title>RSA Dynamo API python continue untill</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/rsa-dynamo-api-python-continue-untill/m-p/9747719#M18169</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’have some problems to create a script which uses a “continue untill” a criteria is met.&lt;/P&gt;&lt;P&gt;As example:&lt;/P&gt;&lt;P&gt;I have a total building weight of 100kN&lt;/P&gt;&lt;P&gt;For this building weight i want to determine how many pile i have to use.&lt;/P&gt;&lt;P&gt;So i start with 1 pile&amp;gt; load = 100/1=100kN i run the calculation of the pile including the steel design check en will get a ratio of 11.&lt;/P&gt;&lt;P&gt;Then test the ratio &amp;lt;1.0 for one pile this criteria is not met. So add 1 pile&lt;/P&gt;&lt;P&gt;2pilesà 100/2=50kN &amp;gt; ratio 7.5&amp;lt;1.0 add 1 pile&lt;/P&gt;&lt;P&gt;3pilesà 100/3=33.3kN&amp;gt; ratio 5&amp;lt;1.0 add 1 pile&lt;/P&gt;&lt;P&gt;4pilesà 100/2=25kN&amp;gt; ratio 3&amp;lt;1.0 add 1 pile&lt;/P&gt;&lt;P&gt;5pilesà 100/5=20kN&amp;gt; ratio 1.5&amp;lt;1.0 add 1 pile&lt;/P&gt;&lt;P&gt;6pilesà 100/6=16.6kN&amp;gt; ratio 0.99&amp;lt;1.0 done&lt;/P&gt;&lt;P&gt;This is what i’m trying to achive but i can’t find any examples which are related tot his(maybe i’m silly).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone of you can give me some support on how to write a code(python or else) that works fort his case.&lt;/P&gt;&lt;P&gt;@Anonymous&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/589195"&gt;@Rafal.Gaweda&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5137081"&gt;@lukasz_koc2&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5952516"&gt;@cool.stuff&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In &lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-rdm-engine-solver-error/td-p/9678471" target="_blank" rel="noopener"&gt;this topic&lt;/A&gt; you will find the steel design calculate function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gr Edward&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 11:00:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/rsa-dynamo-api-python-continue-untill/m-p/9747719#M18169</guid>
      <dc:creator>1234eddie</dc:creator>
      <dc:date>2020-09-15T11:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: RSA Dynamo API python continue untill</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/rsa-dynamo-api-python-continue-untill/m-p/9748118#M18170</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3017553"&gt;@1234eddie&lt;/a&gt; !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's see if I can help you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's write the code in VBA (which is the most used language in FORUM) and then we convert it to Python &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dim totalReaction as double&lt;/P&gt;&lt;P&gt;dim numPiles as integer&lt;/P&gt;&lt;P&gt;dim ratio as double&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim data As IRobotReactionData&lt;BR /&gt;Set data = ReacServ.SumEx(cas.Number, Comp)&lt;/P&gt;&lt;P&gt;Cells(1, 1) = (data.FZ) / 1000 'kN.m&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;totalReaction = &amp;lt;value&amp;gt;&lt;/P&gt;&lt;P&gt;numPiles = 1&lt;/P&gt;&lt;P&gt;ratioLimit = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While (totalReaction/numPiles &amp;lt; ratioLimit)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'add another pile in RSAP model&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'add pile in a RSAP node, like a list of possible nodes which may have a pile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'calculate new model&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; totalReactions = (data.FZ) / 1000 'kN.m (I'm not sure about this)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; numPiles = numPiles + 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wend&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cells(1, 1) = (data.FZ) / 1000 'kN.m 'to update previous value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this help to start?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can discuss it, if that help you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 14:08:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/rsa-dynamo-api-python-continue-untill/m-p/9748118#M18170</guid>
      <dc:creator>cool.stuff</dc:creator>
      <dc:date>2020-09-15T14:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: RSA Dynamo API python continue untill</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/rsa-dynamo-api-python-continue-untill/m-p/9749526#M18171</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5952516"&gt;@cool.stuff&lt;/a&gt;&amp;nbsp; thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i saw i forgot something to mention. I’m only calculating the pile model, and not a complete structure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See the 3 pictures below which contains the steps i described at the begin of the topic.&lt;BR /&gt;1 pile Total load 100kN(FZ), 10kNm due to NEN-EN excentricity, and 10kN horizontal force. Ratio is 2.81.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1 pile.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/819764i463EAFCD499B2780/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1 pile.JPG" alt="1 pile.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 piles Total load 100kN/2=50kN(FZ), 10kNm/2=5kNm due to NEN-EN excentricity, and 10kN/2=5kN horizontal force. Ratio is 1.03.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2 piles.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/819765i4BB5AD65CD777B29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2 piles.JPG" alt="2 piles.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3 piles Total load 100kN/3=33.34kN(FZ), 10kNm/3=3.34kNm due to NEN-EN excentricity, and 10kN/3=3.34kN horizontal force. Ratio is 0.61.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3 piles.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/819766iC21237B01AE42984/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3 piles.JPG" alt="3 piles.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So i went on and started writing a simple script just to figure out how it should work. this is what i have so far.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Script base without while.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/819767i22D9215AC5E99C3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Script base without while.JPG" alt="Script base without while.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this is the script inside the python node:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
Belasting = IN[0]
Aantalpalen = IN[1]


Toelaatbaar = 10
nraantal = len(Aantalpalen)
i = 0
Paalbel = Belasting/Aantalpalen[i]
Unity = Paalbel/Toelaatbaar

Paalbelasting = []
aantal= []


for i in range(len(Aantalpalen)):
	Paalbel = Belasting/Aantalpalen[i]
	Unity = Paalbel/Toelaatbaar
	aantal.append(Unity)
	Paalbelasting.append(Paalbel)


#Assign your output to the OUT variable.
OUT = Unity, nraantal, aantal, Paalbelasting&lt;/LI-CODE&gt;&lt;P&gt;But know i have to add the while function on this so my script will stop wen reaching the ratio/unity of 1. which is as you can see in the picture with 10 piles.&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5952516"&gt;@cool.stuff&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/589195"&gt;@Rafal.Gaweda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone of you know how to write the “while” in this script to get this working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gr Edward&lt;/P&gt;&lt;P&gt;Files are attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 07:35:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/rsa-dynamo-api-python-continue-untill/m-p/9749526#M18171</guid>
      <dc:creator>1234eddie</dc:creator>
      <dc:date>2020-09-16T07:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: RSA Dynamo API python continue untill</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/rsa-dynamo-api-python-continue-untill/m-p/9749537#M18172</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3017553"&gt;@1234eddie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to Google:&amp;nbsp;&lt;A href="https://www.datacamp.com/community/tutorials/python-while-loop?utm_source=adwords_ppc&amp;amp;utm_campaignid=1455363063&amp;amp;utm_adgroupid=xxx-xxxxxxxx&amp;amp;utm_device=c&amp;amp;utm_keyword=&amp;amp;utm_matchtype=b&amp;amp;utm_network=g&amp;amp;utm_adpostion=&amp;amp;utm_creative=332602034358&amp;amp;utm_targetid=aud-392016246653:dsa-429603003980&amp;amp;utm_loc_interest_ms=&amp;amp;utm_loc_physical_ms=20852&amp;amp;gclid=CjwKCAjw74b7BRA_EiwAF8yHFJKMBm7jrpFDMzcHYIy8mWzOPA4q_BGO6ASFDbcjKUsGzQR5fzbbdhoCvMkQAvD_BwE" target="_blank" rel="noopener"&gt;Python While Loops&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 07:39:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/rsa-dynamo-api-python-continue-untill/m-p/9749537#M18172</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2020-09-16T07:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: RSA Dynamo API python continue untill</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/rsa-dynamo-api-python-continue-untill/m-p/9749558#M18173</link>
      <description>&lt;P&gt;Something like this? (I dont know if it is corret! I dont complete understand what is written)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import clr&lt;BR /&gt;clr.AddReference('ProtoGeometry')&lt;BR /&gt;from Autodesk.DesignScript.Geometry import *&lt;BR /&gt;#The inputs to this node will be stored as a list in the IN variables.&lt;BR /&gt;Belasting = IN[0]&lt;BR /&gt;Aantalpalen = IN[1]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Toelaatbaar = 10&lt;BR /&gt;nraantal = len(Aantalpalen)&lt;BR /&gt;i = 0&lt;BR /&gt;Paalbel = Belasting/Aantalpalen[i]&lt;BR /&gt;Unity = Paalbel/Toelaatbaar&lt;/P&gt;&lt;P&gt;Paalbelasting = []&lt;BR /&gt;aantal= []&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while unity &amp;gt; 1: #Maybe here, because 'unity' is computed in the line above, so the loop should be below it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i in range(len(Aantalpalen)):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paalbel = Belasting/Aantalpalen[i]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unity = Paalbel/Toelaatbaar&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aantal.append(Unity)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paalbelasting.append(Paalbel)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#Assign your output to the OUT variable.&lt;BR /&gt;OUT = Unity, nraantal, aantal, Paalbelasting&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 07:51:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/rsa-dynamo-api-python-continue-untill/m-p/9749558#M18173</guid>
      <dc:creator>cool.stuff</dc:creator>
      <dc:date>2020-09-16T07:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: RSA Dynamo API python continue untill</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/rsa-dynamo-api-python-continue-untill/m-p/9752161#M18174</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/589195"&gt;@Rafal.Gaweda&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5952516"&gt;@cool.stuff&lt;/a&gt;&amp;nbsp;thanks thank for your replies and thoughts.&lt;/P&gt;&lt;P&gt;I got my script solved.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here it is. For everyone whos’s using this script(which has in my opinion a lot of potentional) keep in mind that i haven’t used a break function at the end, so if you have a structure where your “Unity” will never reach &amp;lt;1 the script will run forever.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Script with while.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/820246i80FE509C661F6FB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Script with while.JPG" alt="Script with while.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pile result with while.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/820247i01A9D9A020D8C781/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pile result with while.JPG" alt="pile result with while.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the script. including the robot calculate and steel design calculate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

from System import Environment
user = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
clr.AddReferenceToFileAndPath(user +r"\Dynamo\Dynamo Core\1.3\packages\Structural Analysis for Dynamo\bin\RSA\Interop.RobotOM.dll")
from RobotOM import *
from System import Object

objects = IN[0]
LoadCaseID = IN[1]
ILRT = IN[2]
FYH = IN[3]
FZV = IN[4]
CX = IN[5]
Location = IN[6]
File = IN[7]
application = RobotApplicationClass()
project = application.Project
structure = project.Structure
labels = structure.Labels
loads = structure.Cases

i = 1
Unity = 1.1
Paalbelasting = []
allUC = []
while Unity&amp;gt;=1:
	PaalbelH = FYH/i
	PaalbelZ = FZV/i
	PaalbelCX = CX/i	
	CreatedLoads = []
	for j in range(len(LoadCaseID)):
		cas = structure.Cases.Get(LoadCaseID[j])
		simplecase = IRobotSimpleCase
		simplecase = cas
		rec = IRobotLoadRecord
		IRobotLoadRecordMngr = simplecase.Records
		count = IRobotLoadRecordMngr.Count
		for k in range(count+1)[::-1]:
			rec = simplecase.Records.Delete(k)
		Uniform = []
		Uniform.append(simplecase.Records.New(ILRT[j]))
		LoadRecord = simplecase.Records.Get(Uniform[0])
		LoadRecord.SetValue(0,0)
		LoadRecord.SetValue(1,PaalbelH)
		LoadRecord.SetValue(2,PaalbelZ)
		LoadRecord.SetValue(3,PaalbelCX)
		LoadRecord.Objects.FromText(objects[j])
		CreatedLoads.append(LoadRecord.UniqueID)
	application.Project.ViewMngr.Refresh()
	calcEngine = project.CalcEngine
	calcEngine.AutoGenerateModel = True
	calcEngine.UseStatusWindow = True
	calcEngine.Calculate()
	RDMServer = IRDimServer
	RDMServer = application.Kernel.GetExtension("RDimServer")
	RDMServer.Mode = 1
	RDmEngine = IRDimCalcEngine
	RDmEngine = RDMServer.CalculEngine
	RDMCalpar = IRDimCalcParam
	RDMCalCnf = IRDimCalcConf
	RDMCalpar = RDmEngine.GetCalcParam()
	RDMCalCnf = RDmEngine.GetCalcConf()
	RdmStream = IRDimStream
	RdmStream = RDMServer.Connection.GetStream()
	RdmStream.Clear()
	RdmStream.WriteText("all")
	RDMCalpar.SetObjsList(IRDimCalcParamVerifType.I_DCPVT_MEMBERS_VERIF, RdmStream)
	RDMCalpar.SetLimitState(IRDimCalcParamLimitStateType.I_DCPLST_ULTIMATE,1)
	RdmStream.Clear()
	RdmStream.WriteText("1to7")
	RDMCalpar.SetLoadsList(RdmStream)
	RDmEngine.Solve(RdmStream)
	RdmAllResObjType = IRDimAllResObjectType
	RdmAllRes = IRDimAllRes
	RdmAllRes = RDmEngine.Results()
	RdmAllResObjType = 1
	ObjCnt = RdmAllRes.ObjectsCount
	RDmRetValue = IRDimMembCalcRetValue
	RDmDetRes = IRDimDetailedRes
	RDmDetRes = RdmAllRes.Get("1")
	Case = RDmDetRes.GovernCaseName
	Ratio = RDmDetRes.Ratio
	RdmCodeRes = object
	RdmCodeRes = RDmDetRes.CodeResults
	Nbyrd = RdmCodeRes.BuckStrenNbyrd
	Unity = Ratio
	allUC.append(Unity)
	i=i+1
aantalpalen = i-1
aantalp = str(aantalpalen)
project.SaveAs(Location+"\\"+ File + aantalp + ".rtd")
OUT = CreatedLoads, count, Unity, allUC, aantalpalen, Case,	PaalbelH, PaalbelZ, PaalbelCX&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where is this script going to be used for:&lt;BR /&gt;I’m building a module for a client which will deliver a CPT and the vertical and horizontal load of a building. the module i’m building is to determine which is the best combination of number of piles in relation to it’s pile length. Considering all the check’s that has to be done conform the geotechnical eurocde 7.(that’s why the horizontal supports of the pile are Non-linear support based on the soil layers determined from the CPT).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone of you have suggestions (maybe for the break function) or want to know more just aks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks everybody.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forum.dynamobim.com/t/rsa-dynamo-api-python-continue-untill/55149/8" target="_self"&gt;Dynamo forum&lt;/A&gt;&lt;/P&gt;&lt;P&gt;gr Edward&lt;/P&gt;&lt;P&gt;&amp;nbsp;file is attached&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:17:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/rsa-dynamo-api-python-continue-untill/m-p/9752161#M18174</guid>
      <dc:creator>1234eddie</dc:creator>
      <dc:date>2020-09-17T08:17:23Z</dc:date>
    </item>
  </channel>
</rss>

