<?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 API - Pseudostatic acceleration (VBA code or Table) in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-pseudostatic-acceleration-vba-code-or-table/m-p/6477738#M52455</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to retrieve the components of acceleration from the&amp;nbsp;pseudostatic forces&amp;nbsp;of spectral cases for many&amp;nbsp;nodes with API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know we can collect forces with this code :&lt;/P&gt;&lt;P&gt;- RobApp.Project.Structure.Results.Nodes.PseudostaticForces.CombValue(Nodenumber,CaseNumber,I_MCT_CQC).FX&lt;/P&gt;&lt;P&gt;- &lt;SPAN&gt;R&lt;/SPAN&gt;&lt;SPAN&gt;ob&lt;/SPAN&gt;&lt;SPAN&gt;A&lt;/SPAN&gt;&lt;SPAN&gt;pp&lt;/SPAN&gt;.Project.Structure.Results.Nodes.PseudostaticForces.value(NodeNumber,CaseNumber,ModeNumber).FX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, how can we extract the acceleration components ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is not possible, we can open the table " pseudostatic Force" - add the columns that correspond to the acceleration components. &amp;nbsp;How can I add the good column ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2016 08:39:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-04T08:39:58Z</dc:date>
    <item>
      <title>API - Pseudostatic acceleration (VBA code or Table)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-pseudostatic-acceleration-vba-code-or-table/m-p/6477738#M52455</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to retrieve the components of acceleration from the&amp;nbsp;pseudostatic forces&amp;nbsp;of spectral cases for many&amp;nbsp;nodes with API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know we can collect forces with this code :&lt;/P&gt;&lt;P&gt;- RobApp.Project.Structure.Results.Nodes.PseudostaticForces.CombValue(Nodenumber,CaseNumber,I_MCT_CQC).FX&lt;/P&gt;&lt;P&gt;- &lt;SPAN&gt;R&lt;/SPAN&gt;&lt;SPAN&gt;ob&lt;/SPAN&gt;&lt;SPAN&gt;A&lt;/SPAN&gt;&lt;SPAN&gt;pp&lt;/SPAN&gt;.Project.Structure.Results.Nodes.PseudostaticForces.value(NodeNumber,CaseNumber,ModeNumber).FX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, how can we extract the acceleration components ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is not possible, we can open the table " pseudostatic Force" - add the columns that correspond to the acceleration components. &amp;nbsp;How can I add the good column ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 08:39:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-pseudostatic-acceleration-vba-code-or-table/m-p/6477738#M52455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-04T08:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: API - Pseudostatic acceleration (VBA code or Table)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-pseudostatic-acceleration-vba-code-or-table/m-p/6477820#M52456</link>
      <description>&lt;P&gt;Try use Any from ResultsServer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;RobotOM.RobotApplication r = new RobotOM.RobotApplication();

r.Project.Structure.Results.Any.ResultId = 1328; //up to 1333
r.Project.Structure.Results.Any.Node = 1;
r.Project.Structure.Results.Any.LoadCase = 3;
r.Project.Structure.Results.Any.Mode = 1;

            MessageBox.Show(r.Project.Structure.Results.Any.ResultValue.ToString());&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a simple trick to obtain results type Id : open any table, display desired columns and run this macro - in most cases this number is the same:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;RobotOM.RobotApplication r = new RobotOM.RobotApplication();
RobotOM.RobotTableFrame tf = r.Project.ViewMngr.GetTable(1);
RobotOM.RobotTable t = tf.Get(1);

for (int i = 1; i &amp;lt;= t.ColCount; i++)
{
    MessageBox.Show(t.GetDataType(i).ToString());
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 09:25:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-pseudostatic-acceleration-vba-code-or-table/m-p/6477820#M52456</guid>
      <dc:creator>marcinrakus</dc:creator>
      <dc:date>2016-08-04T09:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: API - Pseudostatic acceleration (VBA code or Table)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-pseudostatic-acceleration-vba-code-or-table/m-p/6477849#M52457</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You reply before i get the solution. I tried this code to get the column number :&lt;/P&gt;&lt;PRE&gt;Sub InfoTable()

Dim RobApp As RobotApplication
Set RobApp = New RobotApplication
Dim t As RobotTable
Dim tf As RobotTableFrame
Dim i, j As Long



nTables = RobApp.Project.ViewMngr.TableCount
If nTables = 0 Then
    MsgBox "No table opened"
    Exit Sub
End If

For i = 1 To nTables
        Set tf = RobApp.Project.ViewMngr.Gettable(i)
        For j = 1 To tf.Get(i).ColCount
                Debug.Print tf.Get(i).GetDataType(j)
        Next j
Next i
        
        set t = RobApp.Project.ViewMngr.CreateTable(I_TT_PSEUDOSTATIC, I_TDT_VALUES)
        t.AddColumn (1328)
        t.AddColumn (1329)
        t.AddColumn (1330)
        t.AddColumn (1328)
        t.AddColumn (1329)
        t.AddColumn (1330)
End Sub&lt;/PRE&gt;&lt;P&gt;Other question : how can i remove column ????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 09:39:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-pseudostatic-acceleration-vba-code-or-table/m-p/6477849#M52457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-04T09:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: API - Pseudostatic acceleration (VBA code or Table)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-pseudostatic-acceleration-vba-code-or-table/m-p/6477856#M52458</link>
      <description>Unfortunatelly there is no function to remove columns.</description>
      <pubDate>Thu, 04 Aug 2016 09:41:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-pseudostatic-acceleration-vba-code-or-table/m-p/6477856#M52458</guid>
      <dc:creator>marcinrakus</dc:creator>
      <dc:date>2016-08-04T09:41:28Z</dc:date>
    </item>
  </channel>
</rss>

