Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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
-
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.
-
OK thanks
Can I include the shape scripts in the profile/MDG?
-
Yes, you can. Look into some existing MDG (they deliver tons of them). You will find something like
<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.
-
So I have to manually edit the xml for the mdg?
-
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
-
Thanks for the hint