<?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 open table with specific cases and nodes filter in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-open-table-with-specific-cases-and-nodes-filter/m-p/13268905#M846</link>
    <description>&lt;P&gt;hello&amp;nbsp;&lt;BR /&gt;I'm tryin to make VBA excel that&amp;nbsp;&lt;BR /&gt;open the displacement table&lt;BR /&gt;filter the desired node (ex :&amp;nbsp;2329 2330 2331 2332 2333 2334)&lt;BR /&gt;filter also the cases by name groupe (ex : Raideur)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WALIDGIO_0-1737194324471.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1456437iAA4ADBAA7821A2CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WALIDGIO_0-1737194324471.png" alt="WALIDGIO_0-1737194324471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;untill now i cant find the methode to apply the filter to Robot&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;code :&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub OpenNodeDisplacementsTableWithSelection()
    ' Initialize Robot Application
    Dim robApp As IRobotApplication
    On Error Resume Next
    Set robApp = New RobotApplication
    On Error GoTo 0
    ' Open the Node Displacements Table
    Dim table As IRobotTable
    Set table = robApp.Project.ViewMngr.CreateTable(IRobotTableType.I_TT_NODE_DISPLACEMENTS, I_TDT_DEFAULT)

    ' Convert node collection to a comma-separated string
    Dim nodeNumbersStr As String
    nodeNumbersStr = "2329,2330,2331,2332,2333,2334" ' Node numbers to select

    ' Select the specified nodes
    Dim nodeSelection As IRobotSelection
    Set nodeSelection = robApp.Project.Structure.Selections.Create(I_OT_NODE)
    nodeSelection.FromText nodeNumbersStr ' here where i want to Apply the selection

    ' Filter cases by group
    Dim caseGroup As IRobotGroup
    Dim groupServer As IRobotGroupServer
    Set groupServer = robApp.Project.Structure.Groups

    ' Get the number of groups for cases
    Dim groupCount As Integer
    groupCount = groupServer.GetCount(I_OT_CASE)

    ' Iterate through all groups to find the one with the matching name
    Dim i As Integer
    For i = 1 To groupCount
        Dim currentGroup As IRobotGroup
        Set currentGroup = groupServer.Get(I_OT_CASE, i)
        If currentGroup.Name = "Raideur" Then
            Set caseGroup = currentGroup
            Exit For
        End If
    Next i

    ' Check if the group was found
    If caseGroup Is Nothing Then
        MsgBox "Case group 'Raideur' not found.", vbExclamation, "Error"
        Exit Sub
    End If

    ' Set the cases for the table based on the group
    Dim caseList As IRobotCaseList
    Set caseList = robApp.Project.Structure.Cases.GetAll()
    Dim caseSelection As IRobotSelection
    Set caseSelection = robApp.Project.Structure.Selections.Create(I_OT_CASE)
    caseSelection.FromText caseGroup.GetCases().ToText() ' here my problem Apply the selection


    ' Refresh the view manager to update the display
    robApp.Project.ViewMngr.Refresh
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jan 2025 10:00:04 GMT</pubDate>
    <dc:creator>WALIDGIO</dc:creator>
    <dc:date>2025-01-18T10:00:04Z</dc:date>
    <item>
      <title>API open table with specific cases and nodes filter</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-open-table-with-specific-cases-and-nodes-filter/m-p/13268905#M846</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;BR /&gt;I'm tryin to make VBA excel that&amp;nbsp;&lt;BR /&gt;open the displacement table&lt;BR /&gt;filter the desired node (ex :&amp;nbsp;2329 2330 2331 2332 2333 2334)&lt;BR /&gt;filter also the cases by name groupe (ex : Raideur)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WALIDGIO_0-1737194324471.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1456437iAA4ADBAA7821A2CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WALIDGIO_0-1737194324471.png" alt="WALIDGIO_0-1737194324471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;untill now i cant find the methode to apply the filter to Robot&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;code :&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub OpenNodeDisplacementsTableWithSelection()
    ' Initialize Robot Application
    Dim robApp As IRobotApplication
    On Error Resume Next
    Set robApp = New RobotApplication
    On Error GoTo 0
    ' Open the Node Displacements Table
    Dim table As IRobotTable
    Set table = robApp.Project.ViewMngr.CreateTable(IRobotTableType.I_TT_NODE_DISPLACEMENTS, I_TDT_DEFAULT)

    ' Convert node collection to a comma-separated string
    Dim nodeNumbersStr As String
    nodeNumbersStr = "2329,2330,2331,2332,2333,2334" ' Node numbers to select

    ' Select the specified nodes
    Dim nodeSelection As IRobotSelection
    Set nodeSelection = robApp.Project.Structure.Selections.Create(I_OT_NODE)
    nodeSelection.FromText nodeNumbersStr ' here where i want to Apply the selection

    ' Filter cases by group
    Dim caseGroup As IRobotGroup
    Dim groupServer As IRobotGroupServer
    Set groupServer = robApp.Project.Structure.Groups

    ' Get the number of groups for cases
    Dim groupCount As Integer
    groupCount = groupServer.GetCount(I_OT_CASE)

    ' Iterate through all groups to find the one with the matching name
    Dim i As Integer
    For i = 1 To groupCount
        Dim currentGroup As IRobotGroup
        Set currentGroup = groupServer.Get(I_OT_CASE, i)
        If currentGroup.Name = "Raideur" Then
            Set caseGroup = currentGroup
            Exit For
        End If
    Next i

    ' Check if the group was found
    If caseGroup Is Nothing Then
        MsgBox "Case group 'Raideur' not found.", vbExclamation, "Error"
        Exit Sub
    End If

    ' Set the cases for the table based on the group
    Dim caseList As IRobotCaseList
    Set caseList = robApp.Project.Structure.Cases.GetAll()
    Dim caseSelection As IRobotSelection
    Set caseSelection = robApp.Project.Structure.Selections.Create(I_OT_CASE)
    caseSelection.FromText caseGroup.GetCases().ToText() ' here my problem Apply the selection


    ' Refresh the view manager to update the display
    robApp.Project.ViewMngr.Refresh
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2025 10:00:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-open-table-with-specific-cases-and-nodes-filter/m-p/13268905#M846</guid>
      <dc:creator>WALIDGIO</dc:creator>
      <dc:date>2025-01-18T10:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: API open table with specific cases and nodes filter</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-open-table-with-specific-cases-and-nodes-filter/m-p/13269095#M847</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3743427"&gt;@WALIDGIO&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-specific-nodes-and-case-data-in-table-for/td-p/12165033" target="_blank"&gt;https://forums.autodesk.com/t5/robot-structural-analysis-forum/get-specific-nodes-and-case-data-in-table-for/td-p/12165033&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11754855#M94712" target="_blank"&gt;https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-simple-cases-when-printing-tables/m-p/11754855#M94712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2025 13:17:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-open-table-with-specific-cases-and-nodes-filter/m-p/13269095#M847</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2025-01-18T13:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: API open table with specific cases and nodes filter</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-open-table-with-specific-cases-and-nodes-filter/m-p/13269406#M848</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6876621"&gt;@Stephane.kapetanovic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2025 19:42:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-open-table-with-specific-cases-and-nodes-filter/m-p/13269406#M848</guid>
      <dc:creator>WALIDGIO</dc:creator>
      <dc:date>2025-01-18T19:42:10Z</dc:date>
    </item>
  </channel>
</rss>

