<?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: Export results ARSA in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3335295#M83579</link>
    <description>&lt;P&gt;Take a look at green code below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This sub should work fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sub extraction_resultats_cas()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Range("A13", "F25000").Clear&lt;BR /&gt;Range("B5").Clear&lt;/P&gt;
&lt;P&gt;Set RobApp = New RobotApplication&lt;/P&gt;
&lt;P&gt;If Not RobApp.Visible Then&lt;BR /&gt; Set RobApp = Nothing&lt;BR /&gt; MsgBox "Open Robot and load Model", vbOKOnly, "ERROR"&lt;BR /&gt; Exit Sub&lt;BR /&gt;Else&lt;BR /&gt; ' If (RobApp.Project.Type &amp;lt;&amp;gt; I_PT_FRAME_3D) And (RobApp.Project.Type &amp;lt;&amp;gt; I_PT_SHELL) Then&lt;BR /&gt; ' MsgBox "Structure Type should be FRAME 3D or SHELL", vbOKOnly, "ERROR"&lt;BR /&gt; ' Exit Sub&lt;BR /&gt; ' End If&lt;BR /&gt; Cells(5, 1) = "Project"&lt;BR /&gt; Cells(5, 2) = RobApp.Project.Name&lt;/P&gt;
&lt;P&gt;'selection des barres&lt;/P&gt;
&lt;P&gt;'If CheckBox1 = True Then&lt;/P&gt;
&lt;P&gt;'Dim BarCol As RobotBarCollection&lt;BR /&gt;'Set BarCol = RobApp.Project.Structure.Bars.GetAll&lt;/P&gt;
&lt;P&gt;'Else&lt;/P&gt;
&lt;P&gt;Dim RSelection As RobotSelection&lt;BR /&gt; Set RSelection = RobApp.Project.Structure.Selections.Get(I_OT_BAR)&lt;BR /&gt; Dim BarCol As RobotBarCollection&lt;BR /&gt; Set BarCol = RobApp.Project.Structure.Bars.GetMany(RSelection)&lt;BR /&gt; Dim num_bar As String&lt;BR /&gt; &lt;BR /&gt;' If (BarCol.Count = 0) Then c'est un test de selection du modele&lt;BR /&gt;' If (MsgBox("No bars selected in Robot. Do you want to import results for all bars?", vbYesNo, "Warning") = vbYes) Then&lt;BR /&gt;num_bar = Cells(8, 2)&lt;BR /&gt; If num_bar = "" Then&lt;BR /&gt; If (MsgBox("Pas de numéro de barres indiqué ! Voulez-vous selectionner toutes les barres?", vbYesNo, "Warning") = vbYes) Then&lt;BR /&gt; RSelection.FromText "all"&lt;BR /&gt; RSelection.AddText "tous"&lt;BR /&gt; Set BarCol = RobApp.Project.Structure.Bars.GetMany(RSelection)&lt;BR /&gt; Else&lt;BR /&gt; Set BarCol = Nothing&lt;BR /&gt; Exit Sub&lt;BR /&gt; End If&lt;BR /&gt; ' ajout condition pour rentrer soi-meme les numéros de barres&lt;BR /&gt; Else&lt;BR /&gt; RSelection.FromText num_bar&lt;BR /&gt; Set BarCol = RobApp.Project.Structure.Bars.GetMany(RSelection)&lt;BR /&gt; End If&lt;/P&gt;
&lt;P&gt;'End If&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; Set RSelection = RobApp.Project.Structure.Selections.Get(I_OT_CASE)&lt;BR /&gt; Dim CaseCol As RobotCaseCollection&lt;BR /&gt; Set CaseCol = RobApp.Project.Structure.Cases.GetMany(RSelection)&lt;BR /&gt; Dim num_cas As String&lt;BR /&gt; &lt;BR /&gt; num_cas = Cells(9, 2)&lt;BR /&gt; &lt;BR /&gt;' If (CaseCol.Count = 0) Then&lt;BR /&gt; If num_cas = "" Then&lt;BR /&gt; If (MsgBox("Pas de cas ou combinaisons indiqué ! Voulez-vous importer les résultats de tous les cas ?", vbYesNo, "Warning") = vbYes) Then&lt;BR /&gt; RSelection.FromText "all"&lt;BR /&gt; RSelection.AddText "tous"&lt;BR /&gt; Set CaseCol = RobApp.Project.Structure.Cases.GetMany(RSelection)&lt;BR /&gt; Else&lt;BR /&gt; Set CaseCol = Nothing&lt;BR /&gt; Exit Sub&lt;BR /&gt; End If&lt;BR /&gt; Else&lt;BR /&gt; RSelection.FromText num_cas&lt;BR /&gt; Set CaseCol = RobApp.Project.Structure.Cases.GetMany(RSelection)&lt;BR /&gt; End If&lt;BR /&gt; &lt;BR /&gt; Cells(9, 2) = RSelection.ToText&lt;BR /&gt; &lt;BR /&gt; NumberOfPoints = Int(Cells(10, 2).Value)&lt;BR /&gt; &lt;BR /&gt; If (NumberOfPoints &amp;lt; 2) Then&lt;BR /&gt; MsgBox "Number of points along the bar must be greater or equal to 2", vbOKOnly, "Error"&lt;BR /&gt; Exit Sub&lt;BR /&gt; End If&lt;BR /&gt; &lt;BR /&gt;'Sleep 10000&lt;BR /&gt; &lt;BR /&gt; Row = 12&lt;BR /&gt;' Cells(Row, 1) = "Barre"&lt;BR /&gt;' Cells(Row, 2) = "Noeud"&lt;BR /&gt;' Cells(Row, 3) = "Cas (/ Composante)"&lt;BR /&gt;'&lt;BR /&gt;' Cells(Row, 4) = "FX [kN]"&lt;BR /&gt;' Cells(Row, 5) = "FZ [kN]"&lt;BR /&gt;' Cells(Row, 6) = "MY [kN.m]"&lt;BR /&gt; &lt;BR /&gt; Cells(19, 9) = "Progression"&lt;BR /&gt; &lt;BR /&gt; For i = 1 To BarCol.Count&lt;BR /&gt; Cells(20, 9) = Str(i) + " / " + Str(BarCol.Count)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; Dim RBar As RobotBar&lt;BR /&gt; Set RBar = BarCol.Get(i)&lt;BR /&gt; &lt;BR /&gt; BarNumber = RBar.Number&lt;BR /&gt; BarStr = Str(BarNumber)&lt;BR /&gt; OriNodeStr = Str(RBar.StartNode)&lt;BR /&gt; EndNodeStr = Str(RBar.EndNode)&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Dim BFD As RobotBarForceData&lt;BR /&gt; Dim Icomp As Integer&lt;BR /&gt; &lt;BR /&gt; Dim BarForceServer As RobotBarForceServer&lt;BR /&gt; Set BarForceServer = RobApp.Project.Structure.Results.Bars.Forces&lt;BR /&gt; &lt;BR /&gt; Dim Point As Double&lt;BR /&gt; Dim Step As Double&lt;BR /&gt; &lt;BR /&gt; Point = 0#&lt;BR /&gt; Step = 1# / (NumberOfPoints - 1)&lt;BR /&gt; &lt;BR /&gt;For ii = 1 To NumberOfPoints&lt;/P&gt;
&lt;P&gt;For j = 1 To CaseCol.Count&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; AT = CaseCol.Get(j).AnalizeType&lt;BR /&gt; &lt;BR /&gt; If AT &amp;lt;&amp;gt; I_CAT_COMB_CODE _&lt;BR /&gt; And AT &amp;lt;&amp;gt; I_CAT_COMB _&lt;BR /&gt; And AT &amp;lt;&amp;gt; I_CAT_COMB_NONLINEAR _&lt;BR /&gt; And AT &amp;lt;&amp;gt; I_CAT_STATIC_LINEAR _&lt;BR /&gt; And AT &amp;lt;&amp;gt; I_CAT_STATIC_NONLINEAR Then&lt;BR /&gt; MsgBox "This macro works only for simple load cases, combinations and automatic combinations", vbOKOnly, "Error"&lt;BR /&gt; Exit Sub&lt;BR /&gt; End If&lt;BR /&gt; &lt;BR /&gt; UNC = CaseCol.Get(j).Number&lt;BR /&gt; CaseStr = Str(UNC)&lt;BR /&gt; If CaseCol.Get(j).Type = I_CT_CODE_COMBINATION Then ' pour les combinaisons&lt;BR /&gt; &lt;BR /&gt; Dim CCount As Integer&lt;BR /&gt; CCount = CaseCol.Get(j).Components.Count&lt;BR /&gt; Dim StrCC As String&lt;BR /&gt; StrCC = Str(CCount)&lt;BR /&gt; &lt;BR /&gt; If InStr(CaseCol.Get(j).Name, "+") &amp;lt;&amp;gt; 4 And InStr(CaseCol.Get(j).Name, "-") &amp;lt;&amp;gt; 4 And InStr(CaseCol.Get(j).Name, "+") &amp;lt;&amp;gt; 8 And InStr(CaseCol.Get(j).Name, "-") &amp;lt;&amp;gt; 8 Then&lt;BR /&gt; For Icomp = 1 To CCount&lt;BR /&gt; &lt;BR /&gt; CompStr = " / " + Str(Icomp)&lt;BR /&gt; &lt;BR /&gt; Row = Row + 1&lt;BR /&gt; &lt;BR /&gt; If ii = 1 Then&lt;BR /&gt; Cells(Row, 1) = BarStr&lt;BR /&gt; Cells(Row, 2) = OriNodeStr&lt;BR /&gt; Cells(Row, 3) = CaseStr + CompStr&lt;BR /&gt; ElseIf ii = NumberOfPoints Then&lt;BR /&gt; Cells(Row, 1) = BarStr&lt;BR /&gt; Cells(Row, 2) = EndNodeStr&lt;BR /&gt; Cells(Row, 3) = CaseStr + CompStr&lt;BR /&gt; Else&lt;BR /&gt; Cells(Row, 1) = BarStr + Str(ii) + " /" + Str(NumberOfPoints) + " / " + CaseStr + CompStr&lt;BR /&gt; End If&lt;/P&gt;
&lt;P&gt;Set BFD = BarForceServer.ValueEx(BarNumber, UNC, Icomp, Point)&lt;BR /&gt; Cells(Row, 4) = BFD.FX * 0.001&lt;BR /&gt; Cells(Row, 5) = BFD.FZ * 0.001&lt;BR /&gt; Cells(Row, 6) = BFD.MY * 0.001&lt;/P&gt;
&lt;P&gt;Set BFD = Nothing&lt;BR /&gt; Next Icomp&lt;BR /&gt; End If&lt;BR /&gt; Else ' pour les cas simples&lt;BR /&gt; Row = Row + 1&lt;BR /&gt; If ii = 1 Then&lt;BR /&gt; Cells(Row, 1) = BarStr&lt;BR /&gt; Cells(Row, 2) = OriNodeStr&lt;BR /&gt; Cells(Row, 3) = CaseStr&lt;BR /&gt; ElseIf ii = NumberOfPoints Then&lt;BR /&gt; Cells(Row, 1) = BarStr&lt;BR /&gt; Cells(Row, 2) = EndNodeStr&lt;BR /&gt; Cells(Row, 3) = CaseStr&lt;BR /&gt; Else&lt;BR /&gt; Cells(Row, 1) = BarStr&lt;BR /&gt; Cells(Row, 2) = Str(ii) + " /" + Str(NumberOfPoints)&lt;BR /&gt; Cells(Row, 3) = CaseStr&lt;/P&gt;
&lt;P&gt;End If&lt;BR /&gt; &lt;BR /&gt; Set BFD = BarForceServer.Value(BarNumber, UNC, Point)&lt;BR /&gt; Cells(Row, 4) = BFD.FX * 0.001&lt;BR /&gt; Cells(Row, 5) = BFD.FZ * 0.001&lt;BR /&gt; Cells(Row, 6) = BFD.MY * 0.001&lt;BR /&gt; &lt;BR /&gt; Set BFD = Nothing&lt;BR /&gt; &lt;BR /&gt; End If&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;FONT color="#00FF00"&gt;Next j&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00FF00"&gt; Point = Point + Step&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00FF00"&gt;Next ii&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#00FF00"&gt;Next i&lt;/FONT&gt;&lt;BR /&gt; &lt;BR /&gt;End If&lt;BR /&gt;Cells(19, 9) = ""&lt;BR /&gt;Cells(20, 9) = ""&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2012 15:59:52 GMT</pubDate>
    <dc:creator>Rafal.Gaweda</dc:creator>
    <dc:date>2012-02-16T15:59:52Z</dc:date>
    <item>
      <title>Export results ARSA via API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3294083#M83557</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to export the results of efforts &lt;SPAN&gt;with VBA&lt;/SPAN&gt;&amp;nbsp;in excel files like in the video attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you help me ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://screencast.com/t/8duviSUWa1Y" target="_self"&gt;Export result&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 13:32:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3294083#M83557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-18T13:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3294153#M83558</link>
      <description>&lt;P&gt;Upload the mentioned movie&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2012 16:01:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3294153#M83558</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-01-16T16:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3295123#M83559</link>
      <description>&lt;P&gt;It's on the link&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 08:36:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3295123#M83559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-17T08:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3295175#M83560</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Not possible to save csv from table by API. So you have to import these results to Excel then save xls file(s).&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 09:23:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3295175#M83560</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-01-17T09:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3295213#M83561</link>
      <description>&lt;P&gt;Ok, but is there a way to export results by API ?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 10:03:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3295213#M83561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-17T10:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3295233#M83562</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;&lt;EM&gt;Ok, but is there a way to export results by API ?&lt;/EM&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, of course.&lt;/P&gt;
&lt;P&gt;I will write you sample code.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 10:19:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3295233#M83562</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-01-17T10:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3296045#M83563</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you send me an example to have list of efforts (Fx Fz My) with API VBA ?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 18:24:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3296045#M83563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-17T18:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3297225#M83565</link>
      <description>&lt;P&gt;&lt;SPAN&gt;xls file with example of table with internal forces attached.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 13:31:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3297225#M83565</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-01-18T13:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3297345#M83566</link>
      <description>&lt;P&gt;Ok thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try it and it works but we have to select the bars before in the model. I will search by myself how to make it automaticaly and if I don't succeed I'll ask you one more time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just an Question. It's slow, do I need a lot of RAM to turn it &lt;SPAN&gt;faster&amp;nbsp;&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My System :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Windows XP Professionnel 2002 SP3&lt;/P&gt;&lt;P&gt;Intel(R) Xeon(R) CPU&lt;/P&gt;&lt;P&gt;W3505 @ 2.53GHz&lt;/P&gt;&lt;P&gt;2.53 GHz, 2.99 Go de RAM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Carte Graphique :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NVIDIA Quadro FX 580&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 14:27:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3297345#M83566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-18T14:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3297439#M83567</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;I will search by myself how to make it automaticaly&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you mean by that ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Just an Question. It's slow, do I need a lot of RAM to turn it faster&amp;nbsp;?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, it does not depend on RAM.&lt;/P&gt;
&lt;P&gt;I will check the code to accelerate it - if possible.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 15:10:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3297439#M83567</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-01-18T15:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3297483#M83568</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;nbsp;I will search by myself how to make it automaticaly&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;What do you mean by that ?&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To select &lt;SPAN&gt;automatically&amp;nbsp;&lt;/SPAN&gt;all the bars.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 15:32:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3297483#M83568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-18T15:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3297553#M83569</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;I will search by myself how to make it automaticaly&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;What do you mean by that ?&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To select &lt;SPAN&gt;automatically&amp;nbsp;&lt;/SPAN&gt;all the bars.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you do not select any bar it will ask you whether to select ALL of them or stop macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or replace this section :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;Set RSelection = RobApp.Project.Structure.Selections.Get(I_OT_BAR)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt; Dim BarCol As RobotBarCollection&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt; Set BarCol = RobApp.Project.Structure.Bars.GetMany(RSelection)&lt;/FONT&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;FONT color="#FF6600"&gt; If (BarCol.Count = 0) Then&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;If (MsgBox("No bars selected in Robot. Do you want to import results for all bars?", vbYesNo, "Warning") = vbOK) Then&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;RSelection.FromText "all"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;RSelection.AddText "tous"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;Set BarCol = RobApp.Project.Structure.Bars.GetMany(RSelection)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;Else&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;Set BarCol = Nothing&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;Exit Sub&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;End If&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt; End If&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;by&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;Dim BarCol As RobotBarCollection&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt; Set BarCol = RobApp.Project.Structure.Bars.GetAll&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&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;I am attaching updated macro.&lt;/P&gt;
&lt;P&gt;- Faster&lt;/P&gt;
&lt;P&gt;- You may specify number of points along bar in it (2 as a default for begining and end only)&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 15:55:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3297553#M83569</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-01-18T15:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3297885#M83570</link>
      <description>&lt;P&gt;Ok but I don't know why but if I select a bar it give me the result of the bar selected before and I have to demand a second time to have the good results for the bars selected.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 19:07:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3297885#M83570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-18T19:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3298661#M83571</link>
      <description>&lt;P&gt;Small correction in attached file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may happen that somehow the selection in "not confirmed" in Robot. Try to activate Bar selection filed (combo) on top of Robot on Selection toolbar (click inside it) then "confirm selection" by pressing Enter or Tab.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 08:06:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3298661#M83571</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-01-19T08:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3298705#M83572</link>
      <description>&lt;P&gt;Ok but my &lt;SPAN&gt;goal&lt;/SPAN&gt;&amp;nbsp;at the end is not to have to manipulate the program Robot and only use the macro VBA in excel. Is there another solution ?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 08:57:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3298705#M83572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-19T08:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3298711#M83573</link>
      <description>&lt;P&gt;Do you mean, for example, writing selection fo bar(s) , case(s) in Excell and not to use selection from Robot? There is no problem with it. Please write down what is the workflow in your mind.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 09:03:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3298711#M83573</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-01-19T09:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3298777#M83574</link>
      <description>&lt;P&gt;I have already modify the macro to demand&amp;nbsp;&lt;SPAN&gt;bar(s) , case(s) in Excell. But I have to run the macro twice to have the good selection. I would like to do it in one time without using Robot.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 10:10:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3298777#M83574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-19T10:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3298783#M83575</link>
      <description>&lt;P&gt;PLease attach your macro.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 10:14:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3298783#M83575</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-01-19T10:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3299243#M83576</link>
      <description>&lt;P&gt;My macro where the selections are read from xls file attached.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 14:34:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3299243#M83576</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-01-19T14:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export results ARSA</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3333073#M83577</link>
      <description>&lt;P&gt;Hi, I've modified the macro to have results with an other order :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - Number bar&lt;/P&gt;&lt;P&gt;2 - Number node&lt;/P&gt;&lt;P&gt;2 - Cases&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 / 1 / 101 &amp;nbsp;Fx Fz My&lt;/P&gt;&lt;P&gt;1 / 1 / 102 &amp;nbsp;Fx Fz My&lt;/P&gt;&lt;P&gt;1 / 2 / 101 &amp;nbsp;Fx Fz My&lt;/P&gt;&lt;P&gt;1 / 2 / 102 &amp;nbsp;Fx Fz My&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it's not exporting the good efforts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you mind correct it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub extraction_resultats_cas()

Range("A13", "F25000").Clear
Range("B5").Clear

Set RobApp = New RobotApplication

If Not RobApp.Visible Then
    Set RobApp = Nothing
    MsgBox "Open Robot and load Model", vbOKOnly, "ERROR"
    Exit Sub
Else
    If (RobApp.Project.Type &amp;lt;&amp;gt; I_PT_FRAME_3D) And (RobApp.Project.Type &amp;lt;&amp;gt; I_PT_SHELL) Then
        MsgBox "Structure Type should be FRAME 3D or SHELL", vbOKOnly, "ERROR"
        Exit Sub
    End If
    Cells(5, 1) = "Project"
    Cells(5, 2) = RobApp.Project.Name

'selection des barres

'If CheckBox1 = True Then

'Dim BarCol As RobotBarCollection
'Set BarCol = RobApp.Project.Structure.Bars.GetAll

'Else

    Dim RSelection As RobotSelection
    Set RSelection = RobApp.Project.Structure.Selections.Get(I_OT_BAR)
    Dim BarCol As RobotBarCollection
    Set BarCol = RobApp.Project.Structure.Bars.GetMany(RSelection)
    Dim num_bar As String
    
'   If (BarCol.Count = 0) Then   c'est un test de selection du modele
'       If (MsgBox("No bars selected in Robot. Do you want to import results for all bars?", vbYesNo, "Warning") = vbYes) Then
num_bar = Cells(8, 2)
    If num_bar = "" Then
        If (MsgBox("Pas de numéro de barres indiqué ! Voulez-vous selectionner toutes les barres?", vbYesNo, "Warning") = vbYes) Then
            RSelection.FromText "all"
            RSelection.AddText "tous"
            Set BarCol = RobApp.Project.Structure.Bars.GetMany(RSelection)
        Else
            Set BarCol = Nothing
            Exit Sub
        End If
    ' ajout condition pour rentrer soi-même les numéros de barres
    Else
    RSelection.FromText num_bar
    Set BarCol = RobApp.Project.Structure.Bars.GetMany(RSelection)
    End If

'End If

    
    Set RSelection = RobApp.Project.Structure.Selections.Get(I_OT_CASE)
    Dim CaseCol As RobotCaseCollection
    Set CaseCol = RobApp.Project.Structure.Cases.GetMany(RSelection)
    Dim num_cas As String
    
 num_cas = Cells(9, 2)
    
'    If (CaseCol.Count = 0) Then
    If num_cas = "" Then
        If (MsgBox("Pas de cas ou combinaisons indiqué ! Voulez-vous importer les résultats de tous les cas ?", vbYesNo, "Warning") = vbYes) Then
            RSelection.FromText "all"
            RSelection.AddText "tous"
            Set CaseCol = RobApp.Project.Structure.Cases.GetMany(RSelection)
        Else
            Set CaseCol = Nothing
            Exit Sub
        End If
    Else
    RSelection.FromText num_cas
    Set CaseCol = RobApp.Project.Structure.Cases.GetMany(RSelection)
    End If
    
    Cells(9, 2) = RSelection.ToText
    
    NumberOfPoints = Int(Cells(10, 2).Value)
    
    If (NumberOfPoints &amp;lt; 2) Then
        MsgBox "Number of points along the bar must be greater or equal to 2", vbOKOnly, "Error"
        Exit Sub
    End If
    
'Sleep 10000
    
    Row = 12
'    Cells(Row, 1) = "Barre"
'    Cells(Row, 2) = "Noeud"
'    Cells(Row, 3) = "Cas (/ Composante)"
'
'     Cells(Row, 4) = "FX [kN]"
'     Cells(Row, 5) = "FZ [kN]"
'     Cells(Row, 6) = "MY [kN.m]"
     
     Cells(19, 9) = "Progression"
     
 For i = 1 To BarCol.Count
     Cells(20, 9) = Str(i) + " / " + Str(BarCol.Count)

     
     Dim RBar As RobotBar
     Set RBar = BarCol.Get(i)
     
     BarNumber = RBar.Number
     BarStr = Str(BarNumber)
     OriNodeStr = Str(RBar.StartNode)
     EndNodeStr = Str(RBar.EndNode)
     
     
     
     Dim BFD As RobotBarForceData
     Dim Icomp As Integer
     
     Dim BarForceServer As RobotBarForceServer
     Set BarForceServer = RobApp.Project.Structure.Results.Bars.Forces
     
     Dim Point As Double
     Dim Step As Double
     
     Point = 0#
     Step = 1# / (NumberOfPoints - 1)
     
For ii = 1 To NumberOfPoints

    For j = 1 To CaseCol.Count
        AT = CaseCol.Get(j).AnalizeType
     
        If AT &amp;lt;&amp;gt; I_CAT_COMB_CODE _
            And AT &amp;lt;&amp;gt; I_CAT_COMB _
            And AT &amp;lt;&amp;gt; I_CAT_COMB_NONLINEAR _
            And AT &amp;lt;&amp;gt; I_CAT_STATIC_LINEAR _
            And AT &amp;lt;&amp;gt; I_CAT_STATIC_NONLINEAR Then
                MsgBox "This macro works only for simple load cases, combinations and automatic combinations", vbOKOnly, "Error"
                Exit Sub
        End If
     
     UNC = CaseCol.Get(j).Number
     CaseStr = Str(UNC)
     If CaseCol.Get(j).Type = I_CT_CODE_COMBINATION Then  ' pour les combinaisons
          
          Dim CCount As Integer
          CCount = CaseCol.Get(j).Components.Count
          Dim StrCC As String
          StrCC = Str(CCount)
          
          If InStr(CaseCol.Get(j).Name, "+") &amp;lt;&amp;gt; 4 And InStr(CaseCol.Get(j).Name, "-") &amp;lt;&amp;gt; 4 And InStr(CaseCol.Get(j).Name, "+") &amp;lt;&amp;gt; 8 And InStr(CaseCol.Get(j).Name, "-") &amp;lt;&amp;gt; 8 Then
            For Icomp = 1 To CCount
                
                CompStr = " / " + Str(Icomp)
  
                    Row = Row + 1
          
                    If ii = 1 Then
                        Cells(Row, 1) = BarStr
                        Cells(Row, 2) = OriNodeStr
                        Cells(Row, 3) = CaseStr + CompStr
                    ElseIf ii = NumberOfPoints Then
                        Cells(Row, 1) = BarStr
                        Cells(Row, 2) = EndNodeStr
                        Cells(Row, 3) = CaseStr + CompStr
                    Else
                       Cells(Row, 1) = BarStr + Str(ii) + " /" + Str(NumberOfPoints) + " / " + CaseStr + CompStr
                     End If

                    Set BFD = BarForceServer.ValueEx(BarNumber, UNC, Icomp, Point)
         Cells(Row, 4) = BFD.FX * 0.001
         Cells(Row, 5) = BFD.FZ * 0.001
         Cells(Row, 6) = BFD.MY * 0.001

                    Set BFD = Nothing
          Next Icomp
          End If
     Else                                        ' pour les cas simples
         Row = Row + 1
         If ii = 1 Then
                        Cells(Row, 1) = BarStr
                        Cells(Row, 2) = OriNodeStr
                        Cells(Row, 3) = CaseStr
         ElseIf ii = NumberOfPoints Then
                        Cells(Row, 1) = BarStr
                        Cells(Row, 2) = EndNodeStr
                        Cells(Row, 3) = CaseStr
         Else
            Cells(Row, 1) = BarStr
            Cells(Row, 2) = Str(ii) + " /" + Str(NumberOfPoints)
            Cells(Row, 3) = CaseStr

         End If
         
         Set BFD = BarForceServer.Value(BarNumber, UNC, Point)
         Cells(Row, 4) = BFD.FX * 0.001
         Cells(Row, 5) = BFD.FZ * 0.001
         Cells(Row, 6) = BFD.MY * 0.001
         
         Set BFD = Nothing
         
     End If
     Point = Point + Step
      
      Next j
 Next ii

Next i
     
End If
Cells(19, 9) = ""
Cells(20, 9) = ""

End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2012 13:30:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/export-results-arsa-via-api/m-p/3333073#M83577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-15T13:30:53Z</dc:date>
    </item>
  </channel>
</rss>

