<?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 increase Excel export speed? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-increase-excel-export-speed/m-p/13504227#M18688</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;During an experiment I write values to ~30 different tables and at the end of the experiment I export all of the tables to Excel. Initially when I ran the export (8 months ago) the export would take 5-10 minutes. Over time the export time has slowly increased to where it now takes an hour to export the tables. Is there a way to speed up the Excel export process? Why was it running so quickly before and so slowly now? This problem is not unique to my computer. My coworker faces the same issue as well. It's also not an issue with the model. The version of the model that ran quickly before runs slowly now.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 04 Nov 2021 15:42:39 GMT</pubDate>
    <dc:creator>hannah_s</dc:creator>
    <dc:date>2021-11-04T15:42:39Z</dc:date>
    <item>
      <title>How to increase Excel export speed?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-increase-excel-export-speed/m-p/13504227#M18688</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;During an experiment I write values to ~30 different tables and at the end of the experiment I export all of the tables to Excel. Initially when I ran the export (8 months ago) the export would take 5-10 minutes. Over time the export time has slowly increased to where it now takes an hour to export the tables. Is there a way to speed up the Excel export process? Why was it running so quickly before and so slowly now? This problem is not unique to my computer. My coworker faces the same issue as well. It's also not an issue with the model. The version of the model that ran quickly before runs slowly now.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Nov 2021 15:42:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-increase-excel-export-speed/m-p/13504227#M18688</guid>
      <dc:creator>hannah_s</dc:creator>
      <dc:date>2021-11-04T15:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase Excel export speed?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-increase-excel-export-speed/m-p/13504228#M18689</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;As far as why it is slowing down, it's hard to say without a model. Are the file sizes of the Excel Workbooks bigger in later versions? Did the slowdown happen when you switched versions of FlexSim? If there is a bug here, it would be good for us to fix.&lt;/P&gt;&lt;P&gt;In the meantime, you need a way to export faster. Statistics Collectors and Calculated Tables are optimized for Excel Export, and can export data in seconds instead of minutes or hours.&lt;/P&gt;&lt;P&gt;So the easiest way to export all your data fast would be to make one Calculated Table per Global Table, with a query like this:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM GlobalTable1&lt;/PRE&gt;&lt;P&gt;You'll probably need to click the "Enable Direct Editing" button on the Calculations tab of the Calculated Table, to type in a query like that.&lt;/P&gt;&lt;P&gt;Then, you'll need to change your Excel Export object to export the global tables.&lt;/P&gt;&lt;P&gt;Finally, before exporting, it would probably be good to make sure the Calculated Tables are up-to-date. Run this script to re-run all queries in all Calculated Tables, before you export:&lt;/P&gt;&lt;PRE&gt;treenode calcTablesFolder = Model.find("Tools/CalculatedTables");
var calcTables = calcTablesFolder.subnodes;
for (int i = 1; i &amp;lt;= calcTables.length; i++) {
  treenode calcTable = calcTables&lt;I&gt;;
  function_s(calcTable, "update", 1);
}&lt;/I&gt;&lt;/PRE&gt;&lt;P&gt;Then click the Export button. Here's an example model:&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/45620-fastexportdemo.fsm" target="_blank"&gt;FastExportDemo.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Nov 2021 16:21:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-increase-excel-export-speed/m-p/13504228#M18689</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2021-11-05T16:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase Excel export speed?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-increase-excel-export-speed/m-p/13504229#M18690</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thanks for the response! How do you set up a calculated table without a statistics collector?
&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Nov 2021 18:30:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-increase-excel-export-speed/m-p/13504229#M18690</guid>
      <dc:creator>hannah_s</dc:creator>
      <dc:date>2021-11-05T18:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase Excel export speed?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-increase-excel-export-speed/m-p/13504230#M18691</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Calculated Tables can query any Global Table (or Statistics Collector) in the model. The most common use is, as you say, to query a Statistics Collector. But a Statistics Collector is not required to create a Calculated Table. You can just add one from the toolbox. Then, you can query a Global Table like this:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM GlobalTable1&lt;/PRE&gt;&lt;P&gt;You can write that query on the Calculations tab of the Calculated Table, and click the "Enable Direct Editing" button.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Nov 2021 17:01:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-increase-excel-export-speed/m-p/13504230#M18691</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2021-11-08T17:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase Excel export speed?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-increase-excel-export-speed/m-p/13504231#M18692</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/25867/hannahs.html" nodeid="25867"&gt;@Hannah S&lt;/A&gt;, was Jordan Johnson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Nov 2021 20:09:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-increase-excel-export-speed/m-p/13504231#M18692</guid>
      <dc:creator>ryan_c10</dc:creator>
      <dc:date>2021-11-11T20:09:45Z</dc:date>
    </item>
  </channel>
</rss>

