Book a Demo

Author Topic: Link icons to my Azure cloud toolbox page in my MDG profile  (Read 99 times)

elr

  • EA User
  • **
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Hi all,

I set up and added a toolbox page to my MDG referring to some Azure elements (App Service, VM, SQL DB and so on...). That`s great but I cannot make corresponding icons to appear when I place one of these element to my diagram...Now I wonder if it's even possible...

It's weird that it's seems so hard to set this up.

As icons are bitmap, the Phil Chudley's trick (cut/paste  <Image></Image> blocks from Archimate.xml file to _image attribute) seems useless  :(

Thank's for your help.

Eric


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Link icons to my Azure cloud toolbox page in my MDG profile
« Reply #1 on: June 10, 2026, 09:32:01 am »
Here's how to specify an icon for the toolbox:

Assign Icons To Toolbox Items

To use an image for diagram rendering, add the image to your technology:

Add Images

Add a shape script to your stereotype.

Draw the image using the image function:

Drawing Methods

Example Scripts (Near the end)


elr

  • EA User
  • **
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Re: Link icons to my Azure cloud toolbox page in my MDG profile
« Reply #2 on: Today at 12:36:47 am »
Thx Eve. These links are useful for  a "classical"  image management.

In my case, I refers to Sparx Azure Images and Icons imported into my MDG model.

I created few class stereotypes and assigned each an Azure image directly from browser (no Image manager in this case) to "profile" diagram. I then could see images in diagram.

Once MDG is regenerated (no change in settings check boxes)  I import it to my sample model.

I then could find Azure elements in my dedicated toolbox but when I drop each of them into a new blank diagram, I do not see corresponding image, just default rectangular shape appears.

Did I missed something when I set up each Azure stereotypes attributes ?
Thx

Eric

« Last Edit: Today at 12:38:30 am by elr »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Link icons to my Azure cloud toolbox page in my MDG profile
« Reply #3 on: Today at 02:18:39 am »
Eric, there are two types of "images".

The icon you assign your stereotype. That will be shown in the toolbox and project browser
And then the image you want to show on the diagram.

That is actually set in the shapescript.
Assinging an image to your stereotype element doesn't have any effect in your MDG.

Geert

elr

  • EA User
  • **
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Re: Link icons to my Azure cloud toolbox page in my MDG profile
« Reply #4 on: Today at 08:04:29 am »
Thx Geerts !

If you refers to 'image' command in ShapeScript, the example from examples scripts array pointed by Eve clearly mentions that image must be loaded into Image Manager, first.

Code: [Select]
shape main{
// DRAW AN IMAGE FROM A FILE, AND AN EDITABLE NAME FIELD
addsubshape ("theimage", 100, 100);
addsubshape ("namecompartment", 100, 100);

shape theimage{
image ("App services", 0, 0, 100, 100);
// "App services" being the name of the image that is loaded into the Image Manager
}

shape namecompartment{
h_align = "center";
editablefield = "name";
println ("#name#");
}
}

That actually does not works on my side  but does it means that Azure Image collection content (or at least the few dozens images I need..) should be loaded in IM one by one after being converted ?
 :o

Eric



« Last Edit: Today at 08:11:59 am by elr »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Link icons to my Azure cloud toolbox page in my MDG profile
« Reply #5 on: Today at 01:59:16 pm »

That actually does not works on my side  but does it means that Azure Image collection content (or at least the few dozens images I need..) should be loaded in IM one by one after being converted ?
 :o

Eric
Yes, I think so. It's been a while since I played with images in shapescripts.
In general I prefer to draw my igages with an actual shapescript and not use those images. They tend to slow down loading a diagram if you have a lot of them.

Geert