Is it possible to create a view of a dashboard that is not active? The command viewtofile() can only be used for active views.
Regards,
Arun KR
Is it possible to create a view of a dashboard that is not active? The command viewtofile() can only be used for active views.
Regards,
Arun KR
Here's one approach:
You can't draw an invisible dashboard. But you can open the dashboard via code. In the past, this was not enough because the charts aren't immediately ready. Now, however, you can use coroutines to solve this issue:
var dashboards = Model.find("Tools/Dashboards").subnodes; for (int i = 1; i <= dashboards.length; i++) { treenode view = applicationcommand("dashboard", dashboards[i]); // wait for the chart to load // For example, 2 seconds works for me await Delay.realTime(2); viewtofile(view, modeldir() + dashboards[i].name + ".png"); }
Using the await keyword, you can open the view, then wait for the view to open, then use viewtofile().
15 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