<?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: Count Subtreenodes by Code in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/count-subtreenodes-by-code/m-p/13562135#M64380</link>
    <description>&lt;P&gt;The Object class has inObjects, outObjects, and centerObjects properties for accessing objects connected to the object with port connections. These properties also have a length property so you can look up how many objects are connected with each type of port connection.&lt;/P&gt;&lt;PRE&gt;Object obj = model().find("Queue1");
int conIn = obj.inObjects.length;
int conOut = obj.outObjects.length;
int conCenter = obj.centerObjects.length;&lt;/PRE&gt;</description>
    <pubDate>Mon, 23 Oct 2017 15:48:34 GMT</pubDate>
    <dc:creator>Matthew_Gillespie</dc:creator>
    <dc:date>2017-10-23T15:48:34Z</dc:date>
    <item>
      <title>Count Subtreenodes by Code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/count-subtreenodes-by-code/m-p/13562134#M64379</link>
      <description>&lt;P&gt; Hello Community,&lt;/P&gt;
&lt;P&gt; my question is: How can I count treenodes by code? I want to count the connections in, out and center by code and save them into an integer.&lt;/P&gt; 
&lt;PRE&gt;int conin;
int conout;
int concenter;
conin = ??; //Number of Connections in.
conout = ??; //Number of Connections out.
concenter = ??; //Number of Connections center.
&lt;/PRE&gt;
&lt;P&gt; Does anyone know how to do this?&lt;/P&gt;
&lt;P&gt; Regards, Robin&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 15:37:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/count-subtreenodes-by-code/m-p/13562134#M64379</guid>
      <dc:creator>robin_brunner</dc:creator>
      <dc:date>2017-10-23T15:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Count Subtreenodes by Code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/count-subtreenodes-by-code/m-p/13562135#M64380</link>
      <description>&lt;P&gt;The Object class has inObjects, outObjects, and centerObjects properties for accessing objects connected to the object with port connections. These properties also have a length property so you can look up how many objects are connected with each type of port connection.&lt;/P&gt;&lt;PRE&gt;Object obj = model().find("Queue1");
int conIn = obj.inObjects.length;
int conOut = obj.outObjects.length;
int conCenter = obj.centerObjects.length;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Oct 2017 15:48:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/count-subtreenodes-by-code/m-p/13562135#M64380</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2017-10-23T15:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count Subtreenodes by Code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/count-subtreenodes-by-code/m-p/13562136#M64381</link>
      <description>&lt;P&gt;Thank you very much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 12:01:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/count-subtreenodes-by-code/m-p/13562136#M64381</guid>
      <dc:creator>robin_brunner</dc:creator>
      <dc:date>2017-10-26T12:01:52Z</dc:date>
    </item>
  </channel>
</rss>

