question

Luis T32 avatar image
0 Likes"
Luis T32 asked Jeanette F commented

How to Export Dashboards in one File

Hello everyone, I have been working with flexsim and I found a way to generate a report or a summary of all the tables that I use and these are exported, but as part of these tables I need to export the graphs that have been created during the simulation (dashboards). I found online that the Dashboard information can be exported but as an excel table, does anyone know how I could export the graphs in a single document or what applies? Thank you..

FlexSim 22.0.4
export all dashboards to html
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Luis T32, was Omar Aguilera Rico'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.

0 Likes 0 ·

1 Answer

·
Omar Aguilera Rico avatar image
1 Like"
Omar Aguilera Rico answered Jeanette F commented

Hello @Luis T32 , copy and paste the following code.

What it does is generate an HTML file of all the dashboards you have in your model in a single file. The advantage of this is that it saves it in the same path where you have saved your model.


treenode anActiveDashboard = ownerobject(views().find("active>Documents/Dashboard/1+"));

int saveAll = 1;

treenode web = 0;

string filePath = modeldir() + "Graficas.html";

setvarnum(anActiveDashboard, "statDataIndex", 0);

function_s(anActiveDashboard, "generateDashboardData", saveAll, web, 0, getvarnode(anActiveDashboard, "statDataIndex"));

function_s(anActiveDashboard, "generateHTML", filePath, saveAll, web);



· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Luis T32 avatar image Luis T32 commented ·

hi how are things,

execute the code that you shared with me and I did some tests to save the graph, but I have another question, how can I do it so that each time the code is executed it allows assigning the name to the HTML file

1663189136855.png

I began to review the structural code of the "Dashboard" and I found this code, which allows opening the "Save" option;

1663189360052.png

the Dashboard but I couldn't combine the codes, do you know what modification I could make to combine the actions of the codes?

0 Likes 0 ·
1663189136855.png (29.0 KiB)
1663189360052.png (37.3 KiB)
Jeanette F avatar image Jeanette F ♦♦ Luis T32 commented ·
Hello @Omar Aguilera Rico,

Are you able to help @Luis T32 still?

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.