I have been running a script for some time now on different version of ARIS. Recently I migrated to version 9.7/8 and the ARIS script return errors, which previously didn't occur. This is one example of the code I use. This function writes an image of a model to a local path on my client.
function pictureOfModel(oModel, size) {
var pic = oModel.Graphic(false,false,g_nLoc);
var myPath = Context.getSelectedPath();
var sfileName = myPath + oModel.GUID() + ".png"; //alternatives are GUID() or Name(g_nLoc) + "_" + size +
ZipfileList.push(oModel.GUID() + ".png");
// pic.setZoom(size) // image improvement only(optional)
if(!logInfo (oModel.Name(g_nLoc))){
return false;
}
if(!pic.Save(sfileName)) {
Dialogs.MsgBox("Could not save " + sfileName);
return false;
}
return true;
}The error I get looks like this:
Other errors I get are also from code that try to save to the local system. What is the strategy to save to local files in the ARIS 9.x software?

Bharat Bajaj on
Hello Toine,
Check if you have license to export the xml files. You will need access license to export the content as XML.
Regards,
Bharat Bajaj