Book a Demo

Author Topic: Show notes field for a profile element  (Read 2640 times)

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Show notes field for a profile element
« 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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Show notes field for a profile element
« Reply #1 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.

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Re: Show notes field for a profile element
« Reply #2 on: June 04, 2020, 09:59:22 pm »
OK thanks
Can I include the shape scripts in the profile/MDG?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Show notes field for a profile element
« Reply #3 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.

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Re: Show notes field for a profile element
« Reply #4 on: June 04, 2020, 10:14:09 pm »
So I have to manually edit the xml for the mdg?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13471
  • Karma: +571/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Show notes field for a profile element
« Reply #5 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

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Re: Show notes field for a profile element
« Reply #6 on: June 04, 2020, 11:14:41 pm »
Thanks for the hint