<?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: Robot API + Dynamo undefined warning in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-dynamo-undefined-warning/m-p/9843802#M17561</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6252526"&gt;@milczarekuba&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out the topic's I have created over the last year's. And also on the dynamo forum(same username).&lt;/P&gt;&lt;P&gt;Most of them will have the dynamo as attachment.&lt;/P&gt;&lt;P&gt;If you have other questions let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gr edward&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 21:38:12 GMT</pubDate>
    <dc:creator>1234eddie</dc:creator>
    <dc:date>2020-11-03T21:38:12Z</dc:date>
    <item>
      <title>Robot API + Dynamo undefined warning</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-dynamo-undefined-warning/m-p/9841156#M17557</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I got a problem with using Robot API in Dynamo. I am trying to set bars as a trussbars, but when I running graph for a first time I am getting warning like below, when I add for example new line in any place in python script and run graph for a second time it works. I have no idea what is going on, I'd be greatful for some help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/589195"&gt;@Rafal.Gaweda&lt;/a&gt;&amp;nbsp;You helped my couple of times, I hope you will solve my problem also this time.&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="milczarekuba_1-1604352973061.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/839581i4710781CC6D15C93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="milczarekuba_1-1604352973061.png" alt="milczarekuba_1-1604352973061.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="milczarekuba_2-1604353572947.png" style="width: 502px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/839589iDA31DF9F257C8D6C/image-dimensions/502x251?v=v2" width="502" height="251" role="button" title="milczarekuba_2-1604353572947.png" alt="milczarekuba_2-1604353572947.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ostrzeżenie:IronPythonEvaluator.EvaluateIronPythonScript operacja nie powiodła się.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 28, in &amp;lt;module&amp;gt;&lt;BR /&gt;EnvironmentError: System.Runtime.InteropServices.COMException (0x80004005): W wyniku wywołania składnika modelu COM został zwrócony błąd HRESULT E_FAIL.&lt;BR /&gt;w Microsoft.Scripting.ComInterop.ComRuntimeHelpers.CheckThrowException(Int32 hresult, ExcepInfo&amp;amp; excepInfo, UInt32 argErr, String message)&lt;BR /&gt;w CallSite.Target(Closure , CallSite , Object , Object )&lt;BR /&gt;w System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)&lt;BR /&gt;w Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)&lt;BR /&gt;w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)&lt;BR /&gt;w Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)&lt;BR /&gt;w System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)&lt;BR /&gt;w Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame frame)&lt;BR /&gt;w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)&lt;BR /&gt;w Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)&lt;BR /&gt;w IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)&lt;BR /&gt;w Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)&lt;BR /&gt;w DSIronPython.IronPythonEvaluator.EvaluateIronPythonScript(String code, IList bindingNames, IList bindingValues)&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 21:53:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-dynamo-undefined-warning/m-p/9841156#M17557</guid>
      <dc:creator>milczarekuba</dc:creator>
      <dc:date>2020-11-02T21:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API + Dynamo undefined warning</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-dynamo-undefined-warning/m-p/9842153#M17558</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6252526"&gt;@milczarekuba&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are you using the bar functions from the structural analysis package?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what i found in my scripts is that the python nodes are way quicker than the build in nodes of the package.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(that's why i create my scripts full python.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but what you can try is to use: application.Project.ViewMngr.Refresh()&amp;nbsp; on line 19 before you get the bars.&lt;/P&gt;&lt;P&gt;or use waitfor,passtrhough nodes.&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3923635"&gt;@131863&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/589195"&gt;@Rafal.Gaweda&lt;/a&gt;&amp;nbsp;(correct me if i'm wrong)&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;</description>
      <pubDate>Tue, 03 Nov 2020 09:53:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-dynamo-undefined-warning/m-p/9842153#M17558</guid>
      <dc:creator>1234eddie</dc:creator>
      <dc:date>2020-11-03T09:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API + Dynamo undefined warning</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-dynamo-undefined-warning/m-p/9842245#M17559</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;It might be like that.&lt;/P&gt;
&lt;P&gt;Hint : I remember, once I discovered that user script (located&amp;nbsp; let say in the middle on graph) was executed at the beginning , not waiting for any input data. The solution was either to write "half" of Dynamo routine (everything before script + user script) as one script or make user node from this user script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 10:33:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-dynamo-undefined-warning/m-p/9842245#M17559</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2020-11-03T10:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API + Dynamo undefined warning</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-dynamo-undefined-warning/m-p/9843223#M17560</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="milczarekuba_0-1604422977983.png" style="width: 708px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/839971iBD579AC207DE7490/image-dimensions/708x352?v=v2" width="708" height="352" role="button" title="milczarekuba_0-1604422977983.png" alt="milczarekuba_0-1604422977983.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="milczarekuba_1-1604423362222.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/839974iC9D295CCBD0B841D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="milczarekuba_1-1604423362222.png" alt="milczarekuba_1-1604423362222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It do not work ;( I tried also time.sleep() as well. No idea what is going on&lt;/P&gt;&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;/P&gt;&lt;P&gt;Now&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;I discovered that when I put this node after calcualations it works perfect, but I need to set TrussBars before Calculations. Do You have any ideas to deal with it? I do not want calcualate project two times because this script is part of Optimo optimizing script and I calculate about 30k versions of my structure, so time is very important for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3017553"&gt;@1234eddie&lt;/a&gt;&amp;nbsp;I tried to generate whole structure by API but I got few basic problems, now I only write some functions in python when Structural Analaysis for Dynamo do not have nodes that I need. If You can share some basics scripts I'd be greatful.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 17:16:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-dynamo-undefined-warning/m-p/9843223#M17560</guid>
      <dc:creator>milczarekuba</dc:creator>
      <dc:date>2020-11-03T17:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API + Dynamo undefined warning</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-dynamo-undefined-warning/m-p/9843802#M17561</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6252526"&gt;@milczarekuba&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out the topic's I have created over the last year's. And also on the dynamo forum(same username).&lt;/P&gt;&lt;P&gt;Most of them will have the dynamo as attachment.&lt;/P&gt;&lt;P&gt;If you have other questions let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gr edward&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 21:38:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-dynamo-undefined-warning/m-p/9843802#M17561</guid>
      <dc:creator>1234eddie</dc:creator>
      <dc:date>2020-11-03T21:38:12Z</dc:date>
    </item>
  </channel>
</rss>

