Author Topic: Hide Link Labels - how to in bulk and by default  (Read 2690 times)

Ribeye

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Hide Link Labels - how to in bulk and by default
« on: November 18, 2023, 04:42:03 pm »
How do you hide Link Labels on Diagrams? Not one by one, but in bulk for an existing diagram, and so they default to hidden on create?

This must be a common requirement,  but I cant find the how anywhere.

The closest is https://sparxsystems.com/forums/smf/index.php/topic,18878.msg177483.html#msg177483 but its not an actual answer.


Sunshine

  • EA Practitioner
  • ***
  • Posts: 1309
  • Karma: +120/-10
  • Its the results that count
    • View Profile
Re: Hide Link Labels - how to in bulk and by default
« Reply #1 on: November 19, 2023, 06:29:32 am »
By link labels I assume you mean connector labels. In which case right click on background of diagram and select properties. In the diagram properties dialog select connectors then tick the "suppress all connector labels" tick box. click ok.
If you want to do that on a bulk load of diagrams then a script is probably the way to go.
Happy to help
:)

Ribeye

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Hide Link Labels - how to in bulk and by default
« Reply #2 on: December 07, 2023, 10:28:22 am »
Thanks Sunshine, I now see the "show stereotype labels" option on the Connectors tab.

For my DLS Diagrams I tried setting this property on the diagram and re-generating my MDG. Unfortunately I am not seeing new diagrams of my type inheriting the "show stereotype labels" = off from it.

So presumably I should set using the code which sets up the diagram.

But where is the "show stereotype labels" on Connectors property in the documentation?

From the Object Model documentation for Diagram, here https://sparxsystems.com/enterprise_architect_user_guide/16.1/add-ins___scripting/diagram.html

I reviewed classes Diagram, DiagramLink and DiagramObject and could not find reference to it.


Thanks again.