<?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: Exporting and Importing csv with object and Array Columns. in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598232#M92506</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/19823/joukyd.html" nodeid="19823"&gt;@Jouky D&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for contributing to our community! We couldn't identify a maintained license or subscription linked to your account.&lt;/P&gt;&lt;P&gt;You may need to &lt;A rel="noopener noreferrer" href="https://account.flexsim.com/settings/security" target="_new"&gt;update your profile information&lt;/A&gt; to identify yourself as a license owner or their associate. Check out our article for &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/articles/163271/how-to-ensure-you-receive-timely-support.html" target="_new"&gt;how to ensure you receive timely support&lt;/A&gt;. If you update your profile comment back to let us know - we'll adjust the priority of your post accordingly.&lt;/P&gt;&lt;P&gt;If your current license is expired, please &lt;A rel="noopener noreferrer" href="https://flexs.im/contact" target="_new"&gt;contact your local distributor&lt;/A&gt; to renew.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 08 Jul 2024 15:40:04 GMT</pubDate>
    <dc:creator>Jeanette_Fullmer</dc:creator>
    <dc:date>2024-07-08T15:40:04Z</dc:date>
    <item>
      <title>Exporting and Importing csv with object and Array Columns.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598230#M92504</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.2.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello everyone,&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;I tried to export to a csv file a table with different column types: strings, integers, doubles, OBJECTS, ARRAYS of arrays, etc. All the columns are exported fine except the objects and the arrays of arrays.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I want to re-import that table into FlexSim again to avoid calculate the table again after the reset. But the values are imported as string, e.g. &lt;/P&gt;
 &lt;P id="isPasted"&gt;array: Array[8]: {Array[2]: {1.000000, 4.000000}, Array[2]: {1.000000, 4.000000}, Array[2]: {1.000000, 4.000000}, Array[2]: {1.000000, 4.000000}, Array[2]: {1.000000, 4.000000}, Array[2]: {1.000000, 4.000000}, Array[2]: {1.000000, 4.000000}, Array[2]: {1.000000, 4.000000}}&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Is there a way to export and import correctly? If not, maybe I could save the table on a specific moment to reset the table on that values?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thank you:)&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Jul 2024 15:17:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598230#M92504</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2024-07-08T15:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Importing csv with object and Array Columns.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598231#M92505</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 And no, I cannot do the table in a separate script because I want to create it during the simulation and depending on some characteristics of the simulation.
&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Jul 2024 15:18:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598231#M92505</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2024-07-08T15:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Importing csv with object and Array Columns.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598232#M92506</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/19823/joukyd.html" nodeid="19823"&gt;@Jouky D&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for contributing to our community! We couldn't identify a maintained license or subscription linked to your account.&lt;/P&gt;&lt;P&gt;You may need to &lt;A rel="noopener noreferrer" href="https://account.flexsim.com/settings/security" target="_new"&gt;update your profile information&lt;/A&gt; to identify yourself as a license owner or their associate. Check out our article for &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/articles/163271/how-to-ensure-you-receive-timely-support.html" target="_new"&gt;how to ensure you receive timely support&lt;/A&gt;. If you update your profile comment back to let us know - we'll adjust the priority of your post accordingly.&lt;/P&gt;&lt;P&gt;If your current license is expired, please &lt;A rel="noopener noreferrer" href="https://flexs.im/contact" target="_new"&gt;contact your local distributor&lt;/A&gt; to renew.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Jul 2024 15:40:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598232#M92506</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-07-08T15:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Importing csv with object and Array Columns.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598233#M92507</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Let me assume that there are some restrictions in csv file data: strings and numbers. Maybe you can create a string that looks like an array of arrays, that an input interpreter can resolve into an array of arrays.&lt;/P&gt;&lt;P&gt;My fault: There seems to be a more sophistic problem with excel data in a structure of arrays in arrays. Perhaps you think about a different export variant like saving a treenode structure in xml data to your disk.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Jul 2024 15:47:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598233#M92507</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-07-08T15:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Importing csv with object and Array Columns.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598234#M92508</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;It's interesting what you propose about exporting the node in xml. Do you know a way to export it and import it using FlexScript? I know there are cmdsavetree and cmdloadtree functions. However, when I export and import using those codes it builds the following treenode:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1720506933549.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524595i382A93215B4CD52E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1720506933549.png" alt="1720506933549.png" /&gt;&lt;/span&gt;&lt;BR /&gt;However, when I import using right click of the mouse (Save Node As and Load Into Node) it builds an Object node:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1720507031202.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524596i008C5E11214DD399/image-size/large?v=v2&amp;amp;px=999" role="button" title="1720507031202.png" alt="1720507031202.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2024 06:00:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598234#M92508</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2024-07-09T06:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Importing csv with object and Array Columns.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598235#M92509</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Can you give some more information about what you want to do with the data? Will it be imported into a different model or the same one? Because if it's the same one you could just clone it to a separate table (global table or even some custom node in the model tree if it should not be visible in the toolbox).&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Table.html#Method-cloneTo"&gt;https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Table.html#Method-cloneTo&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2024 06:22:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598235#M92509</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-07-09T06:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Importing csv with object and Array Columns.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598236#M92510</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Hello Felix! 
 &lt;P&gt;&lt;BR /&gt;It is the same model. I want to not build the same table every time I run the simulation because it takes 5 min to build it. This table has 800.000 cells including arrays of arrays, so for model speed and not collapse RAM, I guess is better to export and import the node or the table instead of having a 800.000 useless values during the simulations. What do you think?&lt;BR /&gt;&lt;BR /&gt;Maybe I am wrong, but I thing the better way is to export and import treenode or resetting the table values at the time I need to save that table. But we cannot put "Reset Values" on a table, we need another table as you propose. I am trying to do cmdload and cmdsave treenodes it seems it works.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2024 06:53:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598236#M92510</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2024-07-09T06:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Importing csv with object and Array Columns.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598237#M92511</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;It looks like you are saving different nodes here. A global table is stored as an object node. The data of the table is stored in the "data" node under variables.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1720508537206.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524597iAC6741397BDCAC76/image-size/large?v=v2&amp;amp;px=999" role="button" title="1720508537206.png" alt="1720508537206.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The table constructor "Table(tableName)" will access the data node. So if you used something like "cmdsavetree(Table(tableName), path)", it would save and later load the data node.&lt;/P&gt;&lt;P&gt;In your manual try you probably saved the object node.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2024 07:05:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598237#M92511</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-07-09T07:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Importing csv with object and Array Columns.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598238#M92512</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 That was it!
&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2024 07:13:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598238#M92512</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2024-07-09T07:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Importing csv with object and Array Columns.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598239#M92513</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt; and &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Joerg Vogel&lt;/A&gt; solved it! Thank you! (I don't know why, I can't accept your responses). I used:&lt;/P&gt;
 &lt;P&gt;- Exporting the Table:&lt;/P&gt;
 &lt;P id="isPasted"&gt;string filename = modeldir().replace("/","\\",1) + "SlotsNode.fsx";&lt;/P&gt;
 &lt;P&gt;treenode node = Table("Slots");&lt;/P&gt;
 &lt;P&gt;cmdsavetree(node, filename);&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;- Importing the Table:&lt;/P&gt;
 &lt;P id="isPasted"&gt;cmdloadtree(node, filename);&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;It is useful if you table is large. Importing a treenode takes around 6-7 seconds. So if your time computing the table is larger than that, it is useful to apply it. If not, don't waste your time or try another way.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2024 07:14:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598239#M92513</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2024-07-09T07:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Importing csv with object and Array Columns.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598240#M92514</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Our posts up to this point have been comments under the question, not answers, since we were only discussing possibilities or asking for clarification. "Answers" should present a complete solution. So it would be good if you edit yours to include the steps you took to solve the issue so other users can learn from it. Then accept your own answer.&lt;P&gt;Regarding your latest comment. I tested restoring a table with 800.000 cells (about 2MB of data, yours is probably larger) using both approaches, saving and loading with a separate file and creating a copy directly in the model. Speed wise I didn't notice much of a difference. The downside to having a duplicate table in the model is that the file size would be larger and saving/loading the model will take a bit longer.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2024 07:23:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598240#M92514</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-07-09T07:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Importing csv with object and Array Columns.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598241#M92515</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Done!
 &lt;P&gt;&lt;BR /&gt;However, I use Table("Slots") and it may cause the problem of taking the data node and not all the node, I don't know how to export it correctly. It works to me now, because I use the old node, but maybe someone wants to import it into a new node.&lt;/P&gt; Thank you! (I still cannot accept my own answer I don't know why)
&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2024 07:36:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598241#M92515</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2024-07-09T07:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Importing csv with object and Array Columns.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598242#M92516</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Hm, weird that you can't accept the answer. Hi&lt;A rel="user" href="https://answers.flexsim.com/users/24344/jeanettef.html" nodeid="24344"&gt; @Jeanette F&lt;/A&gt;, could you please accept Jouky's answer?&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2024 07:41:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-and-importing-csv-with-object-and-array-columns/m-p/13598242#M92516</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-07-09T07:41:39Z</dc:date>
    </item>
  </channel>
</rss>

