# Displaying an Archimate Interface as an image

**URL:** <https://forums.visual-paradigm.com/t/displaying-an-archimate-interface-as-an-image/17387>\
**Category:** Plug-in & Open API\
**Tags:** archimate\
**Created:** [January 24, 2022, 10:57am UTC](https://forums.visual-paradigm.com/t/displaying-an-archimate-interface-as-an-image/17387 "2022-01-24T10:57:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke\_Parton](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/luke_parton/32/5549_2.png) [@Luke\_Parton](https://forums.visual-paradigm.com/u/Luke_Parton)\
**Post date:** [January 24, 2022, 10:57am UTC](https://forums.visual-paradigm.com/t/displaying-an-archimate-interface-as-an-image/17387/1 "2022-01-24T10:57:26Z")

</div>

Hi guys

So I’m running into an issue with displaying an IArchiMateApplicationInterfaceUIModel as an image programatically and was wondering if there is any way I’m going wrong.

Currently it simply just does not display itself as an image.

Thank you in advance! Would appreciate being pointed in the right direction. Here is my current code…

```auto
IArchiMateApplicationInterfaceUIModel technologyDiagramElement = (IArchiMateApplicationInterfaceUIModel) diagramManager.createDiagramElement(technologiesDiagram, technologyInterface);
technologyDiagramElement.setPresentationOption(IShapeUIModel.PRESENTATION_OPTION_IMAGE);
String assetsPath = Paths.get("../plugins/vp_plugin_/lib/assets").toAbsolutePath().normalize().toString();
String imagePath = assetsPath + "/" + this._technology.getSelectedItem().toString() + ".png";
technologyDiagramElement.setDisplayImagePath(imagePath);
System.out.println(technologyDiagramElement.getDisplayImagePath());

```

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [January 26, 2022, 1:05am UTC](https://forums.visual-paradigm.com/t/displaying-an-archimate-interface-as-an-image/17387/2 "2022-01-26T01:05:10Z")

</div>

Hi Luke,

Thank you for your inquiry. I have forwarded your case to our engineers to study. When there is any news, I will let you know.

Best regards,  
Jick Yeung

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [February 17, 2022, 8:51am UTC](https://forums.visual-paradigm.com/t/displaying-an-archimate-interface-as-an-image/17387/3 "2022-02-17T08:51:48Z")

</div>

HI Luke,

Some changes have been made to support your need. Please update to the latest patch build first (16\_3\_20220220cg or newer). The following article shows you how to update:

> **[Update Visual Paradigm to Latest Patch - Visual Paradigm Know-how](https://knowhow.visual-paradigm.com/technical-support/update-to-patch/)**
>
> Upon receiving a problem report or request of enhancement, we do our best to make the necessary changes. You will then be suggested to update your Visual Paradigm installation to the patch release, in which the fix or enhancement has been made. In...

Here is the sample code for you as reference:

```auto
File imageFile = new File("...jpg");
String suggestdImagePath = projectManager.getShapeDisplayImagePath(imageFile, shape.getShapeType());
try {
	projectManager.importShapeDisplayImage(suggestedImagePath, imageFile, projectManager.getProject());
} catch (Exception e){
	e.printStackTrace();
{
shape.setDisplayImagePath(suggestedImagePath);
shape.resetCaption();

```

Best regards,  
Jick Yeung
