Hallo together,

what I want is to insert a picture into a model within a report.

I can insert rounded rectangles, lines, texts ... into a model. I also can insert a picture manually into a model or insert a picture into an output document. That's all fine.

But I don't know how to insert a picture into a model with a report. That sounds simple but all I tried was not successful.

The picture is a *.png-file stored in ARIS in the common files group.

I would be very happy if anyone can help me.

Many thanks in advance.


by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Fri, 12/15/2017 - 12:41

Should work like this

var output = Context.createOutputObject();
 var imageData = Context.getFile("mylogo.png", Constants.LOCATION_INTERNAL)
 var image = Context.createPicture(imageData, Constants.IMAGE_FORMAT_PNG);
 output.OutGraphic(image, -1, 70, 70);// write scaled image (7cm x 7cm) to the output object
by Holger Reidemeister Author
Posted on Fri, 12/15/2017 - 12:58

Hallo Robert,

many thanks for your answer. What you wrote works fine. But this is to insert a picture into an output object and so into a document. Sorry, but that's not what I need.

I want to insert a picture into a model. Like this:

oRect = oModel.createRoundedRectangle(84, 39, 3430, 730);

This inserts a rounded rectangle. I need a similar function to insert a picture. I didn't found a function for this in the help pages.

BR Holger

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Mon, 12/18/2017 - 09:32

Ahm yes sorry...

Try fidling with those:

Model.createComObjOcc ( int x, int y, int width, int height, ComObjOcc source, boolean bCreateNewDef )

Model.getGfxObjects ( )    I know, this is only for getting the Gfx objects, but perhaps there is also a hidden method to create one ?   I think it was possible once...

BR Robert


Featured achievement

Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks
  • Profile picture for user frankweise
  • Profile picture for user Henrik Buckler
  • Profile picture for user UffeK
  • SS
  • MZ
  • PacMan


Nobody has collected any points yet this week. This is your chance to become one of the top 5 on this week's leaderboard.
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock