Sparx Systems Forum

Discussion => Automation Interface, Add-Ins and Tools => Topic started by: sig550 on December 07, 2017, 03:07:52 am

Title: MDG - change diagram icon
Post by: sig550 on December 07, 2017, 03:07:52 am
Hello everybody,

is it possible to change the icon from a diagram? The diagram I specified displays the icon of a class diagram. However, I want to display the icon of an analysis diagram.

I suppose I have to add an attribute to the stereotype or the metaclass.

(For example, the icon appears on the left of the diagram types when a diagram is added to a package.)

Thanks a lot.


Best regards
sig550
Title: Re: MDG - change diagram icon
Post by: Uffe on December 07, 2017, 03:09:53 am
Hello,

The icon is not configurable. Instead, extend the diagram type that has the icon you want.

/Uffe
Title: Re: MDG - change diagram icon
Post by: sig550 on December 07, 2017, 03:33:53 am
Thank you for your prompt reply.

Are there other attributes that are inherited by the extend?

If I extend another diagram, I have no way to use my own toolboxes. Because the corresponding attributes can be defined only in a metaclass.
Title: Re: MDG - change diagram icon
Post by: sig550 on December 07, 2017, 08:06:31 pm
Hello,

now I get it. I have to give the appropriate name to the metaclass. In my case, the name is "Diagram_Analysis".

Best regards
sig550
Title: Re: MDG - change diagram icon
Post by: Uffe on December 07, 2017, 11:23:36 pm
Yes, exactly.

As to other characteristics, well there are three basic types of diagram in terms of behaviour: "normal", sequence and timing. This type is not represented in any way as far as I know, it's just there. I assume that's inherited.

Other than that, most diagram characteristics can be specified with the styleex, pdata and other attributes.

/Uffe