Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: GrahamL on June 04, 2020, 08:46:48 pm

Title: Show notes field for a profile element
Post by: GrahamL on June 04, 2020, 08:46:48 pm
Hi
I have imported a profile into a model and can use the elements from it
But when I added some notes to the element and set the diagram to show notes they are not displayed -how can I make them visible on the diagram?

Thansk
Title: Re: Show notes field for a profile element
Post by: qwerty on June 04, 2020, 09:26:24 pm
Depends. If the elements are shape-scripted you can only use the note/link to element feature. Or turn of "Show Shape Scripts" in the diagram properties. Or, if you know how,  modify the shape scripts.

q.
Title: Re: Show notes field for a profile element
Post by: GrahamL on June 04, 2020, 09:59:22 pm
OK thanks
Can I include the shape scripts in the profile/MDG?
Title: Re: Show notes field for a profile element
Post by: qwerty on June 04, 2020, 10:11:54 pm
Yes, you can. Look into some existing MDG (they deliver tons of them). You will find something like
Code: [Select]
<Image type="EAShapeScript 1.0"That contains the shape script in base64 encoding of a zip having a single file str.dat with the shape script. (Absolutely silly to zip a handful of bytes and them bloat them as base64. But that's Sparx design)

q.
Title: Re: Show notes field for a profile element
Post by: GrahamL on June 04, 2020, 10:14:09 pm
So I have to manually edit the xml for the mdg?
Title: Re: Show notes field for a profile element
Post by: Geert Bellekens on June 04, 2020, 10:43:55 pm
You could, but that would be cheating  ;D

You can also redefine those stereotypes in your own MDG and then add the shapescript using the regular profile helper. (no need for manual xml file manipulation anymore)

Geert
Title: Re: Show notes field for a profile element
Post by: GrahamL on June 04, 2020, 11:14:41 pm
Thanks for the hint