<?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: GET ENVELOPE FORCES BAR VIA API (C#) in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13011669#M2053</link>
    <description>&lt;P&gt;Thank's so much!&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 14:00:59 GMT</pubDate>
    <dc:creator>eng_leandromartins</dc:creator>
    <dc:date>2024-09-10T14:00:59Z</dc:date>
    <item>
      <title>GET ENVELOPE FORCES BAR VIA API (C#)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13009093#M2045</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;How do I get the envelope of all combinations from the beginning and end of each bar?&lt;/P&gt;&lt;P&gt;I wrote the code below but it goes through all combinations and all bars. It takes too long.&lt;/P&gt;&lt;P&gt;I saw several examples on the forum, but I didn't quite understand the logic applied.&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;LI-CODE lang="csharp"&gt; public List&amp;lt;InternalForces&amp;gt; GetInternalForces()
 {
     
     List&amp;lt;double&amp;gt; FX = new List&amp;lt;double&amp;gt;();
     RobotCaseCollection caseCollection = new RobotCaseCollection();
     rSelection = RobotApp.Project.Structure.Selections.Create(IRobotObjectType.I_OT_CASE);
     ForceServer = RobotApp.Project.Structure.Results.Bars.Forces;
     rSelection.AddText("todos");
     caseCollection = RobotApp.Project.Structure.Cases.GetMany(rSelection);

     if (RobotApp.Project.Structure.Results.Available == -1 )
     {

         for (int i = 0; i &amp;lt; OrdenadesProfiles.Count; i++)
         {


             for (int j = 1; j &amp;lt; caseCollection.Count; j++)
             {

                 if (CaseType == IRobotCaseAnalizeType.I_CAT_COMB || CaseType == IRobotCaseAnalizeType.I_CAT_COMB_CODE || CaseType == IRobotCaseAnalizeType.I_CAT_COMB_NONLINEAR)
                 {

                     robotCase = caseCollection.Get(j);
                     int casNumber = robotCase.Number;
                     DataForce = ForceServer.Value(OrdenadesProfiles[i].Number, casNumber, 0.0);
                     FX.Add(DataForce.FX);
                     DataForce = ForceServer.Value(OrdenadesProfiles[i].Number, casNumber, 1.0);
                     FX.Add(DataForce.FX);

                 }
             }

         BarNumber = OrdenadesProfiles[i].Number;
             FXMax = FX.Max();
             FXMin = FX.Min();
         }

         internalForces.Add(new InternalForces(BarNumber,FXMax, FXMin));

     }
     else
     {
         MessageBox.Show("Modelo sem Resultados!","AVISO",MessageBoxButtons.OK);

     }
     return internalForces;
 }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 13:11:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13009093#M2045</guid>
      <dc:creator>eng_leandromartins</dc:creator>
      <dc:date>2024-09-09T13:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: GET ENVELOPE FORCES BAR VIA API (C#)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13009221#M2046</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11336336"&gt;@eng_leandromartins&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you should read this topic (msg 15):&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-macro-for-dumping-all-opened-tables-in-robot-with-all-tabs/m-p/12976542#M70667" target="_blank" rel="noopener"&gt;(API) Macro for dumping all opened tables in Robot (with all tabs) to Excel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;note that you can change IRobotTableDataType.I_TDT_DEFAULT to&amp;nbsp;I_TDT_ENVELOPE in Sub GetBarForcesByTable&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;static void GetBarForceEnvelopeByTable(string bText, string cText, int n) {
    var tb = new RobotApplication().Project.ViewMngr.CreateTable(I_TT_FORCES, I_TDT_ENVELOPE);
    tb.Select(I_ST_BAR, bText); tb.Select(I_ST_CASE, cText); tb.Configuration.SetValue(I_TCV_NUMBER_OF_DIVISION_POINTS, n);
    string fullPath = Path.Combine(Path.GetTempPath(), "forces.txt");
    if (tb.Printable.SaveToFile(fullPath, I_OFF_TEXT))
        File.ReadAllLines(fullPath).Skip(1).Select(line =&amp;gt; string.Concat(line.Split(';').Select(s =&amp;gt; $"{s,-15}"))).ToList().ForEach(WriteLine);
    tb.Window.SendMessage(0x10, 0, 0); WriteLine("Press any key to continue..."); ReadKey();
}&lt;/LI-CODE&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2025 16:15:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13009221#M2046</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2025-09-27T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: GET ENVELOPE FORCES BAR VIA API (C#)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13009618#M2047</link>
      <description>&lt;P&gt;Thanks for the answer Stephane,&lt;/P&gt;&lt;P&gt;One question, how do I create a List through this?&lt;/P&gt;&lt;P&gt;I don't want to save this information in any file. I want to create a List and get this information in another method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 16:54:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13009618#M2047</guid>
      <dc:creator>eng_leandromartins</dc:creator>
      <dc:date>2024-09-09T16:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: GET ENVELOPE FORCES BAR VIA API (C#)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13009771#M2048</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11336336"&gt;@eng_leandromartins&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried the code?&lt;BR /&gt;The code does the following:&lt;BR /&gt;- creates a table of envelope forces in robot&lt;BR /&gt;- exports the table in csv format and closes it&lt;BR /&gt;- opens the file and reads it in its entirety&lt;BR /&gt;- it displays all the values by column in console mode&lt;BR /&gt;With this you have everything you need to create lists, sort and classify your data.&lt;BR /&gt;It's not just a file output. this is a normal process.&lt;/P&gt;&lt;P&gt;Why create a list? Which one? What's it for? I can't guess what you want to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 16:56:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13009771#M2048</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2024-09-09T16:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: GET ENVELOPE FORCES BAR VIA API (C#)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13009796#M2049</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I tested it, and I realized that the best way to do what I need is to use this file that this method generates and create a list through it.&lt;BR /&gt;Sorry for not making it clear what I want to do &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6876621"&gt;@Stephane.kapetanovic&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I created an app that uses Robot information to create a model within Tekla Structures, and I want to put this force information inside the parts that are created within Tekla, as user information! And the best way to do this is through a list of parts. So I thought about creating a List directly with the Robot information. But as you showed me, the best way is through this file.&lt;BR /&gt;Thanks again!!!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 17:09:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13009796#M2049</guid>
      <dc:creator>eng_leandromartins</dc:creator>
      <dc:date>2024-09-09T17:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: GET ENVELOPE FORCES BAR VIA API (C#)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13010806#M2050</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11336336"&gt;@eng_leandromartins&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case you should add the object IDs of your two models to this list so that you can update your data.&lt;/P&gt;&lt;P&gt;note that you can obtain a list of forces in csv format without using the API.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 06:58:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13010806#M2050</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2024-09-10T06:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: GET ENVELOPE FORCES BAR VIA API (C#)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13011436#M2051</link>
      <description>&lt;P&gt;Thanks for the tip about the IDs&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6876621"&gt;@Stephane.kapetanovic&lt;/a&gt;!&lt;BR /&gt;Do you have a tutorial on how to create or get these IDs in Robot?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 12:02:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13011436#M2051</guid>
      <dc:creator>eng_leandromartins</dc:creator>
      <dc:date>2024-09-10T12:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: GET ENVELOPE FORCES BAR VIA API (C#)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13011609#M2052</link>
      <description>&lt;LI-CODE lang="csharp"&gt;     RobotApplication RobApp = new RobotApplication();
    RobotStructure Structure = RobApp.Project.Structure;
       RobotNodeServer Nodes = Structure.Nodes;
         RobotBarServer Bars = Structure.Bars;
RobotObjObjectServer Objects = Structure.Objects;

     RobotNode n = (RobotNode)Nodes.Get(1);        int Nod_ID = n.UniqueId;
      RobotBar b = (RobotBar)Bars.Get(1);          int Bar_ID = b.UniqueId;
RobotObjObject o = (RobotObjObject)Objects.Get(1); int Obj_ID = o.UniqueId;

int Nod_Number = Nodes.GetUniqueId(Nod_ID);        RobotNode n1 = (RobotNode)Nodes.Get(Nod_Number);
int Bar_Number = Bars.GetUniqueId(Bar_ID);          RobotBar b1 = (RobotBar)Bars.Get(Bar_Number);
int Obj_Number = Objects.GetUniqueId(Obj_ID); RobotObjObject o1 = (RobotObjObject)Objects.Get(Obj_Number); &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Sep 2024 13:35:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13011609#M2052</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2024-09-10T13:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: GET ENVELOPE FORCES BAR VIA API (C#)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13011669#M2053</link>
      <description>&lt;P&gt;Thank's so much!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 14:00:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-envelope-forces-bar-via-api-c/m-p/13011669#M2053</guid>
      <dc:creator>eng_leandromartins</dc:creator>
      <dc:date>2024-09-10T14:00:59Z</dc:date>
    </item>
  </channel>
</rss>

