2 Replies
Hello Ariene,
Thank you for response. Yes, this code works fine in ARIS 7.2, but it does not work in ARIS 9.6. We find out, that it's bug in ARIS 9.6, so i was trying to find some other options.
Regards,
Robert
Hello Ariene,
Thank you for response. Yes, this code works fine in ARIS 7.2, but it does not work in ARIS 9.6. We find out, that it's bug in ARIS 9.6, so i was trying to find some other options.
Regards,
Robert
Ariene Kroeze on
Dear Robert,
hereby a small script thats export a model to a PNG-file.
var myModel = ArisData.getSelectedModels()[0] var ModelPicture = myModel.Graphic(false, false, -1); var FileName = "PicureFile.png" ModelPicture.Save(GetCurrentTempPath() +"/" + FileName) Dialogs.shell(FileName) function GetCurrentTempPath(){ var myOutput = Context.createOutputObject(); var CurrentTempPath = myOutput.getCurrentPath().getPath(); myOutput=null; return CurrentTempPath }Regards, Ariene kroeze