<?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: Structure verification through API in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/structure-verification-through-api/m-p/3374053#M83263</link>
    <description>&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway I can abort the calculations when presented with a warning? I realise that i can abot manually by clicking the dialog box that appers with the warning, but I'm looking for a way to automise this task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you can help.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2012 13:21:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-03-16T13:21:23Z</dc:date>
    <item>
      <title>Structure verification through API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/structure-verification-through-api/m-p/3373957#M83261</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm writing a script that removes unitilised bars and i need to check for instability after removal of each bar.&lt;/P&gt;&lt;P&gt;Is there any method in the API that checks the model for singularities without running a full calculation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 12:38:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/structure-verification-through-api/m-p/3373957#M83261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-16T12:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Structure verification through API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/structure-verification-through-api/m-p/3373981#M83262</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;FONT color="#dadada"&gt;&lt;BR /&gt;&lt;/FONT&gt;
&lt;P&gt;I'm writing a script that removes unitilised bars and i need to check for instability after removal of each bar.&lt;/P&gt;
&lt;P&gt;Is there any method in the API that checks the model for singularities without running a full calculation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;No, you have to run calculation.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 12:44:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/structure-verification-through-api/m-p/3373981#M83262</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-03-16T12:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Structure verification through API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/structure-verification-through-api/m-p/3374053#M83263</link>
      <description>&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway I can abort the calculations when presented with a warning? I realise that i can abot manually by clicking the dialog box that appers with the warning, but I'm looking for a way to automise this task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you can help.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 13:21:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/structure-verification-through-api/m-p/3374053#M83263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-16T13:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Structure verification through API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/structure-verification-through-api/m-p/3374123#M83264</link>
      <description>&lt;P&gt;Very simple example written in C# which shows how to handle the warnings generated by calculation engine and how to break the calculations if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;namespace MyCalc
{
    class Program
    {
        static void Main(string[] args) {
            RobotOM.RobotApplication app = new RobotOM.RobotApplication();
            app.Project.Open(@"c:\Temp\Pdelta.rtd");
            app.Project.CalcEngine.CalcNotifyEx += new RobotOM._IRobotCalcEngineEvents_CalcNotifyExEventHandler(CalcEngine_CalcNotifyEx);
            Console.WriteLine(app.Project.CalcEngine.Calculate().ToString());
            app.Project.CalcEngine.CalcNotifyEx -= new RobotOM._IRobotCalcEngineEvents_CalcNotifyExEventHandler(CalcEngine_CalcNotifyEx);
        }

        static void CalcEngine_CalcNotifyEx(int nCaller, string strText, string strFullText, string strCaption, int nType, int nDataType, string strSelection, out bool bHandled, out int nReturnValue) {
            bHandled = false;
            nReturnValue = 0;
            if (nCaller == 1) { // CALCULATIONS==1
                if (!string.IsNullOrEmpty(strText)) {
                    bHandled = true;
                    nReturnValue = 7; // IDNO=7, break calculations
                    Console.WriteLine(strText);
                }
            }
        }
    }
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 14:13:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/structure-verification-through-api/m-p/3374123#M83264</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-03-16T14:13:44Z</dc:date>
    </item>
  </channel>
</rss>

