Author Topic: Hide stereotype label of an association connector stereotype  (Read 3314 times)

elr

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Hide stereotype label of an association connector stereotype
« on: November 05, 2024, 05:53:27 am »
Hi,
With MDG, I set up in my toolbox a stereotype of Association metaclass called ""Is Associated To".
That works fine but.. as it is default connector and I have many of these in my diagrams, I'd like to lighten it by hiding stereotype label.

In shape script editor for my new stereotype, I tried

Code: [Select]
shape main
{
    print("");
}
that hides the line and not the label. And :

Code: [Select]
shape main
{
    moveto(0,0);
    lineto(100,100);
    print("");
}

that brings back a no more clickable line !?!?

Does someone has any clue to control connector label or where to look for ? Thank you !

Eric

Takeshi K

  • EA User
  • **
  • Posts: 571
  • Karma: +35/-1
    • View Profile
Re: Hide stereotype label of an association connector stereotype
« Reply #1 on: November 05, 2024, 09:55:36 am »
Hello Eric,

Please search for the 'showlabel' in the EA help. You can specify which labels are shown and which are not.

HTH,
--
t-kouno

elr

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Hide stereotype label of an association connector stereotype
« Reply #2 on: November 05, 2024, 10:17:35 am »
Thx Takeshi ! showlabel is documented into https://sparxsystems.com/enterprise_architect_user_guide/16.0/modeling_frameworks/drawing_methods.html

That's exactly infos I was looking for to better control shape edition.

Meanwhile, I just found :
Quote
shape middlebottomlabel{}

in qwerty's book !
 :)
« Last Edit: November 05, 2024, 02:32:29 pm by elr »