<?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) Get Nodes by Coordinates in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-get-nodes-by-coordinates/m-p/11842132#M6971</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to directly select nodes with the geometry filters shown&amp;nbsp;in the image attached via API? At the moment I'm selecting all the nodes and filtering them in the code but unfortunately when the model has too many nodes it becomes extremely slow.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a54249_0-1679575780630.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1192483i53DE25E181CBFB9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="a54249_0-1679575780630.png" alt="a54249_0-1679575780630.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 12:52:19 GMT</pubDate>
    <dc:creator>a54249</dc:creator>
    <dc:date>2023-03-23T12:52:19Z</dc:date>
    <item>
      <title>(API) Get Nodes by Coordinates</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-get-nodes-by-coordinates/m-p/11842132#M6971</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to directly select nodes with the geometry filters shown&amp;nbsp;in the image attached via API? At the moment I'm selecting all the nodes and filtering them in the code but unfortunately when the model has too many nodes it becomes extremely slow.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a54249_0-1679575780630.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1192483i53DE25E181CBFB9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="a54249_0-1679575780630.png" alt="a54249_0-1679575780630.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 12:52:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-get-nodes-by-coordinates/m-p/11842132#M6971</guid>
      <dc:creator>a54249</dc:creator>
      <dc:date>2023-03-23T12:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: (API) Get Nodes by Coordinates</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-get-nodes-by-coordinates/m-p/11842909#M6972</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1165031"&gt;@a54249&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can select from nodes of panels and filter by coordinates on this more restricted list.&lt;/P&gt;
&lt;P&gt;After that, yes, it is possible to do it by API.&amp;nbsp;Here is a commonly used generic method&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub SelectNodesByCoordinatesRanges()
  Dim RobApp As RobotApplication: Set RobApp = New RobotApplication
  Dim NodCol As IRobotCollection, NodSel As RobotSelection
  With RobApp.Project.Structure
    Set NodCol = .Nodes.GetAll
    Set NodSel = .Selections.Get(I_OT_NODE)
  End With
  
  Dim bounds As Variant: bounds = [Limits].Value2
  XMin = bounds(1, 1): Xmax = bounds(1, 2)
  YMin = bounds(2, 1): Ymax = bounds(2, 2)
  ZMin = bounds(3, 1): Zmax = bounds(3, 2)
  
  For i = 1 To NodCol.Count
    With NodCol.Get(i)
      If WithIn(.X, XMin, Xmax) And WithIn(.Y, YMin, Ymax) And WithIn(.Z, ZMin, Zmax) Then Txt = Txt &amp;amp; " " &amp;amp; .Number
    End With
  Next
  NodSel.FromText Txt
  Set RobApp = Nothing
End Sub

Function WithIn(V, VMin, VMax) As Boolean
  WithIn = V &amp;gt; VMin And V &amp;lt; VMax
End Function&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 10:30:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-get-nodes-by-coordinates/m-p/11842909#M6972</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2025-09-30T10:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: (API) Get Nodes by Coordinates</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-get-nodes-by-coordinates/m-p/12063153#M6973</link>
      <description>&lt;P&gt;Upgrade to improve speed and add selected object nodes only in the desired range&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stephanekapetanovic_0-1767017604725.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1607490i6AAFA90100B59318/image-size/large?v=v2&amp;amp;px=999" role="button" title="Stephanekapetanovic_0-1767017604725.png" alt="Stephanekapetanovic_0-1767017604725.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;Updated on January 1, 2026&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stephanekapetanovic_0-1767128087442.png" style="width: 284px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1607742i3B718F29421B7B2D/image-dimensions/284x125?v=v2" width="284" height="125" role="button" title="Stephanekapetanovic_0-1767128087442.png" alt="Stephanekapetanovic_0-1767128087442.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jan 2026 07:29:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-get-nodes-by-coordinates/m-p/12063153#M6973</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2026-01-01T07:29:45Z</dc:date>
    </item>
  </channel>
</rss>

