How do i export data from global table to excel automatically. whenever i run the model. Please do help
How do i export data from global table to excel automatically. whenever i run the model. Please do help
Hi @mary, was Jeanette F'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.
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.
Hello @mary,
You can export a global table to excel by using this tool in the tool box.
You can also use code to export. You can find more details of how to accomplish this in the manual.
" To execute your custom import or export code through a flexscript node or trigger, call the following: "
treenode excelauto = Model.find("Tools/ExcelAuto"); executefsnode(getvarnode(excelauto, "CustomImport"),NULL); // or executefsnode(getvarnode(excelauto, "CustomExport"),NULL);
{ // ************* PickOption Start ************* // /**Example Custom Export*/ string directory = modeldir(); if (stringlen(directory) < 3) directory = documentsdir(); string filename = filebrowse("*.xls*","Excel Files",directory); // get the name of the file to open if (stringlen(filename) == 0) { // This is true when the user presses Cancel on the file browse window return 0; } excelopen(filename); // open a link with an Excel workbook excelsetsheet("Sheet1"); // set the active worksheet - sheet names should contain only alphanumeric characters and underscore (_) //add your export code here using commands: excelwritenum(), excelwritestr(), excelexporttable() msg("Excel Export","Export complete",1); excelclose(1); // save and close the workbook } // ******* PickOption End ******* //
4 People are following this question.
After export data to Excel, how to make Excel open automatically?
How can a write values to a Global Table?
How to instruct the transporter to follow an order pick list?
Define a specific location in a rack according to the item type
Way to pull global table column statistics for Experimenter Performance Measure?
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