<?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 How to access GlobalTables folder in Model tree? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-access-globaltables-folder-in-model-tree/m-p/13507001#M20839</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt; I'm trying to access the GlobalTables folder in the model tree to search through each node to inspect the table names. &lt;/P&gt;
&lt;P&gt;I've tried using:&lt;/P&gt;
&lt;P&gt;for (int num = 1; num &amp;lt;= treeLength; num++) {&lt;!-- --&gt;&lt;/P&gt;
&lt;P&gt; currNode = model().subnodes[num];&lt;/P&gt;
&lt;P&gt;But that doesn't go into Model&amp;gt;tools&amp;gt;GlobalTables &lt;/P&gt;
&lt;P&gt;Does anyone know how I can direct the search to the folder that I want within the model tree?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 19:54:03 GMT</pubDate>
    <dc:creator>whisperlite88</dc:creator>
    <dc:date>2019-11-27T19:54:03Z</dc:date>
    <item>
      <title>How to access GlobalTables folder in Model tree?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-access-globaltables-folder-in-model-tree/m-p/13507001#M20839</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt; I'm trying to access the GlobalTables folder in the model tree to search through each node to inspect the table names. &lt;/P&gt;
&lt;P&gt;I've tried using:&lt;/P&gt;
&lt;P&gt;for (int num = 1; num &amp;lt;= treeLength; num++) {&lt;!-- --&gt;&lt;/P&gt;
&lt;P&gt; currNode = model().subnodes[num];&lt;/P&gt;
&lt;P&gt;But that doesn't go into Model&amp;gt;tools&amp;gt;GlobalTables &lt;/P&gt;
&lt;P&gt;Does anyone know how I can direct the search to the folder that I want within the model tree?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 19:54:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-access-globaltables-folder-in-model-tree/m-p/13507001#M20839</guid>
      <dc:creator>whisperlite88</dc:creator>
      <dc:date>2019-11-27T19:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to access GlobalTables folder in Model tree?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-access-globaltables-folder-in-model-tree/m-p/13507002#M20840</link>
      <description>&lt;P&gt;Here is an example:&lt;/P&gt;&lt;PRE&gt;treenode globalTables = Model.find("Tools/GlobalTables");
for (int i = 1; i &amp;lt;= globalTables.subnodes.length; i++) {
	treenode globalTable = globalTables.subnodes&lt;I&gt;;
	Table table = Table(globalTable.name);
	// Do something
}
&lt;/I&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Nov 2019 20:25:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-access-globaltables-folder-in-model-tree/m-p/13507002#M20840</guid>
      <dc:creator>Jacob_Gillespie</dc:creator>
      <dc:date>2019-11-27T20:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to access GlobalTables folder in Model tree?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-access-globaltables-folder-in-model-tree/m-p/13507003#M20841</link>
      <description>&lt;P&gt;That's amazing, thank you for the quick response!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 20:35:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-access-globaltables-folder-in-model-tree/m-p/13507003#M20841</guid>
      <dc:creator>whisperlite88</dc:creator>
      <dc:date>2019-11-27T20:35:32Z</dc:date>
    </item>
  </channel>
</rss>

