<?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: Select simple cases when printing tables in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11753784#M7425</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10373739"&gt;@Jelle.Visser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ok,&lt;/P&gt;&lt;P&gt;can you give me the full code?&lt;/P&gt;&lt;P&gt;The extract communicated concerns only the blocking point but it is not what you want.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 13:50:57 GMT</pubDate>
    <dc:creator>Stephane.kapetanovic</dc:creator>
    <dc:date>2023-02-14T13:50:57Z</dc:date>
    <item>
      <title>Select simple cases when printing tables</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11753357#M7422</link>
      <description>&lt;P&gt;I'm trying to select only the simple cases before I print my reaction forces to csv.&lt;/P&gt;&lt;P&gt;However, reading through the documentation, I do find options to create cases, but I do not find a way to select a case for a table. I loop through the tables, and certain ones are "printed" to csv. However, now Reactions are all cases, I only want simple cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to implement a solution given by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6876621"&gt;@Stephane.kapetanovic&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-vba-activate-or-select-load-case/m-p/10890468" target="_blank"&gt;https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-vba-activate-or-select-load-case/m-p/10890468&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this does not seem to work. I would prefer to just the loadcase just for one table, because for the stresses and ratios I do want the combinations to be included.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;                    Dim ViewMngr As IRobotViewMngr
                    Dim ActiveView As RobotView
                    Dim CaseSel As RobotSelection
                    Dim ActiveViewNumber As Long
                    ViewMngr = RobApp.Project.ViewMngr
                    For k = 1 To ViewMngr.ViewCount
                        If ViewMngr.GetView(k).Window.IsActive = -1 Then ActiveViewNumber = k : Exit For
                    Next k
                    ActiveView = ViewMngr.GetView(ActiveViewNumber)
                    CaseSel = ActiveView.Selection.Get(IRobotObjectType.I_OT_CASE)
                    CaseSel.FromText("Simple Cases")
                    ViewMngr.Refresh()
                    Console.WriteLine("Selected Simple Cases" &amp;amp; vbCrLf)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now it crashes on line 10 (line 198 in the full script) with the message:&lt;BR /&gt;&lt;BR /&gt;System.NullReferenceException&lt;BR /&gt;HResult=0x80004003&lt;BR /&gt;Message=Object reference not set to an instance of an object.&lt;BR /&gt;Source=RobotAPI&lt;BR /&gt;StackTrace:&lt;BR /&gt;at RobotAPI.Program.DumpTables() in C:\Users\Jelle.visser\source\repos\RobotAPI\RobotAPI\Program.vb:line 198&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 11:24:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11753357#M7422</guid>
      <dc:creator>Jelle.Visser</dc:creator>
      <dc:date>2023-02-14T11:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select simple cases when printing tables</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11753737#M7423</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10373739"&gt;@Jelle.Visser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the context is not the same&lt;/P&gt;&lt;P&gt;you confuse the selection of preliminary load cases to a parametric view with that relating to tabulated results&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 13:38:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11753737#M7423</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2023-02-14T13:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select simple cases when printing tables</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11753749#M7424</link>
      <description>&lt;P&gt;Ah yes, I assumed I was doing something wrong.&amp;nbsp;&lt;BR /&gt;Can you point me in the right direction for selecting the active cases for tabulated results?&lt;BR /&gt;The documentation doesn't seem to have a clear solution, or at least I'm not seeing it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 13:40:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11753749#M7424</guid>
      <dc:creator>Jelle.Visser</dc:creator>
      <dc:date>2023-02-14T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select simple cases when printing tables</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11753784#M7425</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10373739"&gt;@Jelle.Visser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ok,&lt;/P&gt;&lt;P&gt;can you give me the full code?&lt;/P&gt;&lt;P&gt;The extract communicated concerns only the blocking point but it is not what you want.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 13:50:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11753784#M7425</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2023-02-14T13:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select simple cases when printing tables</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11753802#M7426</link>
      <description>&lt;P&gt;I can't paste the entire code here, that would be a bit long, but here is the repo:&lt;BR /&gt;&lt;A href="https://github.com/Tebulo-Engineering/RobotAPI" target="_blank"&gt;https://github.com/Tebulo-Engineering/RobotAPI&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The place where I tried to set the load case is line 189-201, and I print the reactions to csv on line 284 and onward&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 13:56:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11753802#M7426</guid>
      <dc:creator>Jelle.Visser</dc:creator>
      <dc:date>2023-02-14T13:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select simple cases when printing tables</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11753888#M7427</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10373739"&gt;@Jelle.Visser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;each RobotTable has a function Select that can accept for first IRobotSelectionType and for second parameter a string that could contain load cases&lt;BR /&gt;Ex : MyTable.Select I_ST_CASE, "1 2 3 ... "&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 14:31:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11753888#M7427</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2023-02-14T14:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select simple cases when printing tables</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11754095#M7428</link>
      <description>&lt;P&gt;Now when I add the following line after the if statement to check if it's the reactions table, it doesn't output any reaction csv anymore at all.&lt;/P&gt;&lt;P&gt;tf.Select(IRobotSelectionType.I_ST_CASE, "1 2 3 4 5 6 7 8")&lt;/P&gt;&lt;P&gt;Do note that I am programming in VB.NET, seeing your code, I assume that's vbs/vba?&lt;/P&gt;&lt;P&gt;The first 8 cases are the simple cases, so that's what I'd want to select, but as long as it works, it shouldn't be hard to change it.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 15:50:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11754095#M7428</guid>
      <dc:creator>Jelle.Visser</dc:creator>
      <dc:date>2023-02-14T15:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select simple cases when printing tables</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11754855#M7429</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10373739"&gt;@Jelle.Visser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tf refer to&amp;nbsp;RobotTableFrame &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Select method is part of IRobotTable interface&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;t is&amp;nbsp;RobotTable and come from tf RobotTableFrame by method Get&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Imports RobotOM.IRobotSelectionType '&amp;lt; at beginning
[...]
Dim t As RobotTable
Dim tf As RobotTableFrame
t = tf.Get(j)
t.Select(I_ST_CASE, "1to8") ' equivalent to IRobotSelectionType.I_ST_CASE&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note that you can select bars by same method&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;t.Select(I_ST_BAR, "1 2 3 ...")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 21:09:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11754855#M7429</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2023-02-14T21:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select simple cases when printing tables</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11755721#M7430</link>
      <description>&lt;P&gt;Thank you, that works!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 06:50:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11755721#M7430</guid>
      <dc:creator>Jelle.Visser</dc:creator>
      <dc:date>2023-02-15T06:50:40Z</dc:date>
    </item>
  </channel>
</rss>

