Today, I want to show you how easy it is to export the image of an ARIS model using a small ARIS Report. The simple report exports the images of the selected models into a Doc file.
First, we need to know which model should be exported. This is done as follows:
var models = ArisData.getSelectedModels();
Then create the output object:
var oOutput = Context.createOutputObject();
Finally, show pictures of models in the file:
for(var i=0;i<models.length;i++){ var oModel = models[i]; graphicout(new __holder(oOutput), oModel ); }
Don't forget :
oOutput.WriteReport();
That's all
You can download this script here: http://www.sendspace.com/file/5ytmfl
Note: Make sure to join the Reports & Macros group. You will find additional tutorials and a list of free ARIS reports and macros.