Hi everyone
Is it possible to call the viewtofile command at the end of a replication? I would like to capture and save each model view (as a bitmap file) for each model run. My objective is to have these images as support for understanding scenario/replication results.
I created a user command to perform this task (viewstofile.fsm), but it only works if I run the 3D model... It won't save model views while running the experimenter.
// Variables treenode views = Model.find("Tools/PerspViews"); treenode perspectiveView = applicationcommand("perspectiveview"); // Actions for (int iView = 1; iView <= views.subnodes.length; iView++){ treenode view = views.subnodes[iView]; applicationcommand("changeperspview", view.name, perspectiveView); string filePath = modeldir() + view.name + ".bmp"; viewtofile(perspectiveView, filePath); }
Thanks in advance!