Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: A.Schaefer on October 12, 2021, 10:27:35 pm

Title: How to use the image asset functionality in a new stereotyped element in MDG
Post by: A.Schaefer on October 12, 2021, 10:27:35 pm
Hi all,

First of all I use the EA 15.2.1555.

I am trying to define a new Stereotype in my MDG that behaves similarly to the Image Asset element from the Artifacts Compartment in the Toolbox.

My goal is to achieve that the user can drag the corresponding element from the toolbox to the diagram pane and double-click it to open the Image Asset pop-up window. (see Figure 1)

(https://i.imgur.com/TAbhtzr.png)
Figure 1

I have defined it like this. (see picture 2)

(https://i.imgur.com/Ygq1zmq.png)
Figure 2

But unfortunately, this does not work.


I have done the same with a similar task. At that time it was about defining a stereotype JSON, which behaves the same way as a Document Artifact, i.e. that a Document opens when the element is opened by double-clicking on it. (see figure 3)
At that time it worked.

(https://i.imgur.com/T00WsqJ.png)
Figure 3

Sometimes one works in the EA and the other not or different, has anyone ever defined an element that should behave like an image?

Thanks for your reply.

Andreas
Title: Re: How to use the image asset functionality in a new stereotyped element in MDG
Post by: YogaMatt on April 23, 2023, 03:17:22 pm
Hello A.Schaefer
Did you get anywhere with this?
Namaste, YM