Hi,
I need to open a standard windows file browser dialog window, select more than one csv file and import them into FlexSim. Does anyone know if it is possible? Or can you suggest a workaround?
Hi,
I need to open a standard windows file browser dialog window, select more than one csv file and import them into FlexSim. Does anyone know if it is possible? Or can you suggest a workaround?
You can use getfilebrowse:
treenode fileList = model().find("Tools").subnodes.assert("FilesToImport"); Variant files = getfilebrowse("*.csv", "CSV Files", "", modeldir(), 2, fileList); if (files.length == 0) return 0; // Process the files in fileList return files;
The second-to-last argument, 2, specifies that multiple selection is possible. It puts each individual file as a subnode in the specified node. Once you have the list, you can use importtable() to read the data.
9 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved