<?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 specific node by API in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-specific-node-by-api/m-p/9791145#M17949</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;?????&lt;/P&gt;
&lt;P&gt;Is 57 node phisical start \ end node of these bars?&lt;/P&gt;
&lt;P&gt;If yes - use start \ end node&lt;/P&gt;
&lt;P&gt;If no - use Bar.Elements...&lt;/P&gt;
&lt;P&gt;Something like that&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;RobotNodeServer RNS = robApp.Project.Structure.Nodes;

for (int k = 1; k &amp;lt;= Bar.Elements.Count; k++)
{
	Int32 CalcStartNode = Bar.Elements.Get(k).StartNode;
	Int32 CalcEndNode = Bar.Elements.Get(k).EndNode;

	RobotNode SN = (RobotNode)RNS.Get(CalcStartNode);
        RobotNode EN = (RobotNode)RNS.Get(CalcEndNode);
.....

}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If something different - post Your example model, it will be easier to check what is Your point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Oct 2020 11:05:33 GMT</pubDate>
    <dc:creator>Rafal.Gaweda</dc:creator>
    <dc:date>2020-10-08T11:05:33Z</dc:date>
    <item>
      <title>Select specific node by API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-specific-node-by-api/m-p/9790633#M17946</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a simple structure I need select a node by API, in order to get the efforts and checking the connection.&lt;/P&gt;&lt;P&gt;This node is the number 57 which is the joint for 14 and 15 beams.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="psanchez_0-1602138261760.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/828578iA93FB4F4DA5B2E75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="psanchez_0-1602138261760.png" alt="psanchez_0-1602138261760.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The other nodes are force nodes.&lt;/P&gt;&lt;P&gt;I have a label for code parameters of the beams, and in addition all of the beams in the frame are grouped in a Superbar.&lt;/P&gt;&lt;P&gt;I understand the labels helps to find the bars, but i dont know how get only this specific node for the connection between two bars.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&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;&amp;nbsp;&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;</description>
      <pubDate>Thu, 08 Oct 2020 06:33:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-specific-node-by-api/m-p/9790633#M17946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-08T06:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific node by API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-specific-node-by-api/m-p/9790969#M17947</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if I understood Your task.&lt;/P&gt;
&lt;P&gt;My understanding is that this is start or end node of these bars. If not, You have to use Bar.Elements...&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 09:39:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-specific-node-by-api/m-p/9790969#M17947</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2020-10-08T09:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific node by API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-specific-node-by-api/m-p/9791067#M17948</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/589195"&gt;@Rafal.Gaweda&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your comments.&lt;/P&gt;&lt;P&gt;Yes, this node is the joint between end node of left bar and the start node of right bar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 10:23:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-specific-node-by-api/m-p/9791067#M17948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-08T10:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific node by API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-specific-node-by-api/m-p/9791145#M17949</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;?????&lt;/P&gt;
&lt;P&gt;Is 57 node phisical start \ end node of these bars?&lt;/P&gt;
&lt;P&gt;If yes - use start \ end node&lt;/P&gt;
&lt;P&gt;If no - use Bar.Elements...&lt;/P&gt;
&lt;P&gt;Something like that&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;RobotNodeServer RNS = robApp.Project.Structure.Nodes;

for (int k = 1; k &amp;lt;= Bar.Elements.Count; k++)
{
	Int32 CalcStartNode = Bar.Elements.Get(k).StartNode;
	Int32 CalcEndNode = Bar.Elements.Get(k).EndNode;

	RobotNode SN = (RobotNode)RNS.Get(CalcStartNode);
        RobotNode EN = (RobotNode)RNS.Get(CalcEndNode);
.....

}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If something different - post Your example model, it will be easier to check what is Your point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 11:05:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-specific-node-by-api/m-p/9791145#M17949</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2020-10-08T11:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific node by API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-specific-node-by-api/m-p/9793169#M17950</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/589195"&gt;@Rafal.Gaweda&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally&amp;nbsp;with your feedback I did it.&lt;/P&gt;&lt;P&gt;it's easier than it seemed, the wanted nodes only&amp;nbsp;have two consecutive bars connected, so with "GetConnectedBars(bar.EndNode)" the issue is resolved:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim RType As RobotSelection&lt;BR /&gt;Set RType = RobApp.Project.Structure.Selections.CreateByLabel(I_OT_BAR, I_LT_MEMBER_TYPE, "MyBar")&lt;BR /&gt;Dim AllBars As RobotBarCollection&lt;BR /&gt;Set AllBars = RobApp.Project.Structure.Bars.GetMany(RType)&lt;BR /&gt;Dim bar As RobotBar&lt;BR /&gt;Dim barrTubes As RobotNumbersArray&lt;BR /&gt;Dim found As Boolean&lt;/P&gt;&lt;P&gt;For i = 1 To AllBars.Count&lt;BR /&gt;&amp;nbsp; Set bar = AllBars.Get(i)&lt;BR /&gt;&amp;nbsp; Set barrTubes = RobApp.Project.Structure.Nodes.GetConnectedBars(bar.EndNode)&lt;BR /&gt;&amp;nbsp; If barrTubes.Count = 2 Then&lt;BR /&gt;&amp;nbsp; found = True 'FOUND!!!!&lt;BR /&gt;'&amp;nbsp; 'save the bars with this node&lt;BR /&gt;End If&lt;BR /&gt;Next i&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 07:25:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/select-specific-node-by-api/m-p/9793169#M17950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-09T07:25:32Z</dc:date>
    </item>
  </channel>
</rss>

