<?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: Export table to any location and save the file in csv format in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/export-table-to-any-location-and-save-the-file-in-csv-format/m-p/13589490#M85676</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 Thanks 
 &lt;A rel="user" href="https://answers.flexsim.com/users/42718/vinay-s-jindal.html" nodeid="42718"&gt;@Vinay S&lt;/A&gt;, this method is working great
&lt;/DIV&gt;</description>
    <pubDate>Mon, 12 Jun 2023 11:58:55 GMT</pubDate>
    <dc:creator>KarthikSN</dc:creator>
    <dc:date>2023-06-12T11:58:55Z</dc:date>
    <item>
      <title>Export table to any location and save the file in csv format</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/export-table-to-any-location-and-save-the-file-in-csv-format/m-p/13589485#M85671</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.1.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi,&lt;/P&gt;
 &lt;P&gt;I wanted to export the table "&lt;STRONG&gt;Hrt_Insp_In_rack_Max_cap_WIP" &lt;/STRONG&gt;values&lt;STRONG&gt; &lt;/STRONG&gt;into to csv file in other folder location not in model directory location.&lt;/P&gt;
 &lt;P&gt;I need the user to select the location where they can save the csv file. But the csv file name will be preset to &lt;STRONG&gt;data.csv&lt;/STRONG&gt; as per the below image.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1686510774935.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517646i9B0445640CAADF2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1686510774935.png" alt="1686510774935.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Please help me with this problem. I'm not getting any idea.&lt;/P&gt;
 &lt;P&gt;Please let me know if your solution works even when I'm running &lt;STRONG&gt;Experimenter (Meaning the user should get the popup to select the file location while running the experimenter).&lt;/STRONG&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;STRONG&gt;Thanks in advance&lt;/STRONG&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 11 Jun 2023 17:34:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/export-table-to-any-location-and-save-the-file-in-csv-format/m-p/13589485#M85671</guid>
      <dc:creator>KarthikSN</dc:creator>
      <dc:date>2023-06-11T17:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export table to any location and save the file in csv format</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/export-table-to-any-location-and-save-the-file-in-csv-format/m-p/13589486#M85672</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/42963/karthiksn.html" nodeid="42963"&gt;@karthik&lt;/A&gt;, you want to delay automatic multithread cpu tasks just to open multiple system save dialogs to decide manually where to store some data?&lt;/DIV&gt;</description>
      <pubDate>Sun, 11 Jun 2023 17:46:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/export-table-to-any-location-and-save-the-file-in-csv-format/m-p/13589486#M85672</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2023-06-11T17:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export table to any location and save the file in csv format</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/export-table-to-any-location-and-save-the-file-in-csv-format/m-p/13589487#M85673</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;No I don't want to delay &lt;SPAN id="isPasted" style="color: rgb(51, 51, 51); font-family: "&gt;automatic multithread cpu task&lt;/SPAN&gt;&lt;SPAN id="isPasted" style="color: rgb(51, 51, 51); font-family: "&gt;s&lt;/SPAN&gt;, &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Joerg Vogel&lt;/A&gt; I will be asking the user to select the file location only once at the end of the model run i.e., after 30 days.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 11 Jun 2023 17:56:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/export-table-to-any-location-and-save-the-file-in-csv-format/m-p/13589487#M85673</guid>
      <dc:creator>KarthikSN</dc:creator>
      <dc:date>2023-06-11T17:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Export table to any location and save the file in csv format</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/export-table-to-any-location-and-save-the-file-in-csv-format/m-p/13589488#M85674</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Joerg Vogel&lt;/A&gt; I'm running the model for 30 days. In process flow and I'm creating the token on 30th days to flow to this custom code and wanted the user to get prompted to set the drive location alone not to select any csv files for storing the data, because I wanted my csv file name that is &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;STRONG&gt;data" &lt;/STRONG&gt;as&lt;STRONG&gt; &lt;/STRONG&gt;the name of the csv file&lt;STRONG&gt; &lt;/STRONG&gt;to be saved in the user selected folder.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 11 Jun 2023 18:08:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/export-table-to-any-location-and-save-the-file-in-csv-format/m-p/13589488#M85674</guid>
      <dc:creator>KarthikSN</dc:creator>
      <dc:date>2023-06-11T18:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export table to any location and save the file in csv format</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/export-table-to-any-location-and-save-the-file-in-csv-format/m-p/13589489#M85675</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi Karthik,&lt;/P&gt;
 &lt;P&gt;Create a node in Tools Tree, rename it (Ex: GetFolder).&lt;span class="lia-inline-image-display-wrapper" image-alt="1686556597196.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517639i4E01DBBB7F6AFA40/image-size/large?v=v2&amp;amp;px=999" role="button" title="1686556597196.png" alt="1686556597196.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Right click on node and add some text data to it, by choosing 'Add Text Data' from Node option.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1686557160482.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517641iF8A9D3A35AA3C1CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="1686557160482.png" alt="1686557160482.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;(We'll use this node to store folder location as string).&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt; Add a Model trigger 'On Run Start'.&lt;span class="lia-inline-image-display-wrapper" image-alt="1686556719405.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517642iF03A7C819F55E8B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="1686556719405.png" alt="1686556719405.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Enter this below code in the Code Editor.&lt;/P&gt;
 &lt;PRE&gt;getdirbrowse("","Select the folder to export CSV",Model.find("Tools/GetFolder"));&lt;/PRE&gt;
 &lt;P&gt;On Run Start, this will Opens a browser window to pick a folder, and the folder location will be stored in the Node: "Tools/GetFolder" as text. You can fetch data by using this code&lt;/P&gt;
 &lt;PRE&gt;Model.find("Tools/GetFolder").value;&lt;/PRE&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;And to export your table you can use this node value for example like this.&lt;/P&gt;
 &lt;PRE&gt;exporttable(Table("GlobalTable1"),(Model.find("Tools/GetFolder").value)+"/data.csv",1,1);&lt;/PRE&gt;
 &lt;P&gt;This will export "GlobalTable1" data to 'data.csv' inside the selected folder.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Jun 2023 08:23:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/export-table-to-any-location-and-save-the-file-in-csv-format/m-p/13589489#M85675</guid>
      <dc:creator>Vinay_S_Jindal</dc:creator>
      <dc:date>2023-06-12T08:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export table to any location and save the file in csv format</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/export-table-to-any-location-and-save-the-file-in-csv-format/m-p/13589490#M85676</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thanks 
 &lt;A rel="user" href="https://answers.flexsim.com/users/42718/vinay-s-jindal.html" nodeid="42718"&gt;@Vinay S&lt;/A&gt;, this method is working great
&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Jun 2023 11:58:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/export-table-to-any-location-and-save-the-file-in-csv-format/m-p/13589490#M85676</guid>
      <dc:creator>KarthikSN</dc:creator>
      <dc:date>2023-06-12T11:58:55Z</dc:date>
    </item>
  </channel>
</rss>

