<?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/3340179#M83582</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;EM&gt;mateaus wrote:&lt;/EM&gt;&lt;BR /&gt;
&lt;P&gt;&lt;EM&gt;ok thanks, do you know how to change with API the scale of results on graphic ?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am afraid it is not possible to control scale by API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2012 08:00:35 GMT</pubDate>
    <dc:creator>Rafal.Gaweda</dc:creator>
    <dc:date>2012-02-21T08:00:35Z</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>

