<?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: Retrieve all nodes connected to a network node via code in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/retrieve-all-nodes-connected-to-a-network-node-via-code/m-p/13508974#M22411</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Yeah.. for some reason I thought out objects wouldnt work.. Well then its a very easy problem.. Haha.. nevermind then... Thanks!&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 16 Apr 2021 21:13:27 GMT</pubDate>
    <dc:creator>rohan_v3</dc:creator>
    <dc:date>2021-04-16T21:13:27Z</dc:date>
    <item>
      <title>Retrieve all nodes connected to a network node via code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/retrieve-all-nodes-connected-to-a-network-node-via-code/m-p/13508970#M22407</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.0.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Trying to get all the nodes connected to a given network node. I want to store them in an 'Object' variable and use for further logic. I explored the tree to see if I can sample something but couldn't find it. the 'connectionsout' node cant be used for sampling the connections.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="38624-1618602555514.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505656i348E737545DF5ED5/image-size/large?v=v2&amp;amp;px=999" role="button" title="38624-1618602555514.png" alt="38624-1618602555514.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Apr 2021 19:51:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/retrieve-all-nodes-connected-to-a-network-node-via-code/m-p/13508970#M22407</guid>
      <dc:creator>rohan_v3</dc:creator>
      <dc:date>2021-04-16T19:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve all nodes connected to a network node via code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/retrieve-all-nodes-connected-to-a-network-node-via-code/m-p/13508971#M22408</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Connections out will work - a simple recursive function will do what you want.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Apr 2021 20:33:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/retrieve-all-nodes-connected-to-a-network-node-via-code/m-p/13508971#M22408</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2021-04-16T20:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve all nodes connected to a network node via code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/retrieve-all-nodes-connected-to-a-network-node-via-code/m-p/13508972#M22409</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Was able to do it with following code. Needed to slice the string to take the 'To' out and obtain object name.&lt;/P&gt;
 &lt;P&gt;Array array = Model.find("Floor_1Cross_1_2").find("&amp;gt;connections/connectionsout").subnodes.toArray();&lt;BR /&gt;string obnum = array[1].name;&lt;BR /&gt;int length = obnum.length;&lt;BR /&gt;string obnum_new = obnum.slice(4,length+1);&lt;BR /&gt;Object nn = Model.find(obnum_new);&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Apr 2021 20:57:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/retrieve-all-nodes-connected-to-a-network-node-via-code/m-p/13508972#M22409</guid>
      <dc:creator>rohan_v3</dc:creator>
      <dc:date>2021-04-16T20:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve all nodes connected to a network node via code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/retrieve-all-nodes-connected-to-a-network-node-via-code/m-p/13508973#M22410</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You could just use outObjects or the value of the connection node and finding the ownerobject of that.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Apr 2021 21:08:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/retrieve-all-nodes-connected-to-a-network-node-via-code/m-p/13508973#M22410</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2021-04-16T21:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve all nodes connected to a network node via code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/retrieve-all-nodes-connected-to-a-network-node-via-code/m-p/13508974#M22411</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Yeah.. for some reason I thought out objects wouldnt work.. Well then its a very easy problem.. Haha.. nevermind then... Thanks!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Apr 2021 21:13:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/retrieve-all-nodes-connected-to-a-network-node-via-code/m-p/13508974#M22411</guid>
      <dc:creator>rohan_v3</dc:creator>
      <dc:date>2021-04-16T21:13:27Z</dc:date>
    </item>
  </channel>
</rss>

