Hi FlexSim Team,
I am using the dashboard button to export the values from a global table to an existing Excel file, as a new sheet. Could you please help me with the example code for the same?
Thanks and Regards,
Aniket Singh
Hi FlexSim Team,
I am using the dashboard button to export the values from a global table to an existing Excel file, as a new sheet. Could you please help me with the example code for the same?
Thanks and Regards,
Aniket Singh
A simple example that let's you export an entire table would be the following.
excelopen("FilePath");
excelcreatesheet("NewSheet"); excelsetsheet("NewSheet"); excelexporttable("GlobalTable1", startRow, startCol, numRows, numCols); excelclose(1);
You can also write values cell by cell, for example to copy row and column headers. I'd suggest you look through the relevant commands (starting with "excel") to see what's possible.
https://docs.flexsim.com/en/22.2/Reference/CodingInFlexSim/CommandReference/CommandsIndex.html
Hi Felix, thanks for your reply.
excelopen("FilePath") this command is not working for me and pops up unable to open the file(This may be happening since I am using a Macbook).
Is there any other command which can replace the excelopen("FilePath").
What filepath did you paste in? If you copy it from Windows, make sure to replace the back slashes with forward slashes.
It should for example look something like this:
"C:/Users/felix/Downloads/exporttest.xlsx"
Hi, I just coped the file wherein slashes were backward(
C:\Mac\Home\Desktop\Results.xlsx)
, when used forward slashes it's working.
Thanks
11 People are following this question.
How to export the turn time stats for each arriving truck to an Excel sheet in FlexSim CT ?
How can a write values to a Global Table?
How can I export some tables to excel with tirggers commands?
flexsim live data to another program (excel, note pad, the web)
How do I export a table with all the label values for each patient?
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