<?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: Duplicate Global Table using Flexscript in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/duplicate-global-table-using-flexscript/m-p/13581614#M79482</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;This sounds like the labels could be stored as tables on the objects - something to consider.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 09 Apr 2024 17:28:38 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2024-04-09T17:28:38Z</dc:date>
    <item>
      <title>Duplicate Global Table using Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/duplicate-global-table-using-flexscript/m-p/13581611#M79479</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.2.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I am building a user library which has some in built tables. The tables auto-load as the user imports the library into the model. I have an object with a dropscript and I am trying to duplicate the library global tables in the model with different names when the user drops that object onto the 3D model. I want to be able to duplicate the tables (instead of creating new ones) so that all the on reset code gets copied to the new tables. &lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Apr 2024 16:04:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/duplicate-global-table-using-flexscript/m-p/13581611#M79479</guid>
      <dc:creator>rohan_v3</dc:creator>
      <dc:date>2024-04-09T16:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Global Table using Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/duplicate-global-table-using-flexscript/m-p/13581612#M79480</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hey &lt;A rel="user" href="https://answers.flexsim.com/users/24038/rohanv3.html" nodeid="24038"&gt;@Rohan V3&lt;/A&gt;, you can use Flexscript to copy the Global Table's node in the tree. This will copy over all variables, including the On Reset trigger code.&lt;/P&gt;&lt;PRE&gt;string path = "Tools/GlobalTables/GlobalTable1";
treenode gt = Model.find(path);
treenode copy = gt.copy();
copy.name = "newTable";&lt;/PRE&gt;&lt;P&gt;You can replace the "path" variable with the path to your global table. This code will find the node and copy it. You can then rename.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Apr 2024 16:55:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/duplicate-global-table-using-flexscript/m-p/13581612#M79480</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2024-04-09T16:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Global Table using Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/duplicate-global-table-using-flexscript/m-p/13581613#M79481</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Haha thanks! Pretty simple :)
&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Apr 2024 17:21:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/duplicate-global-table-using-flexscript/m-p/13581613#M79481</guid>
      <dc:creator>rohan_v3</dc:creator>
      <dc:date>2024-04-09T17:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Global Table using Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/duplicate-global-table-using-flexscript/m-p/13581614#M79482</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;This sounds like the labels could be stored as tables on the objects - something to consider.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Apr 2024 17:28:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/duplicate-global-table-using-flexscript/m-p/13581614#M79482</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-04-09T17:28:38Z</dc:date>
    </item>
  </channel>
</rss>

