Book a Demo

Author Topic: Label Visibility  (Read 3012 times)

DataBigot

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Label Visibility
« on: June 19, 2013, 06:15:49 am »
Hi, EA is still a little new to me so please be kind  :)

I'm looking for a way, in a Class Diagram, to turn off all labels on Associations other than the cardinality labels (1..1, 1..* etc).

Is there any way to do this once for a whole diagram or, better still, for a whole model?  I am able to do this on an association by association basis but this is rather tedious for large diagrams.

Thanks
« Last Edit: June 19, 2013, 06:16:38 am by andrew.marsh »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Label Visibility
« Reply #1 on: June 19, 2013, 06:28:05 am »
Try diagram properties/Connectors/Suppress All..

q.

DataBigot

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Label Visibility
« Reply #2 on: June 19, 2013, 06:34:48 am »
Quote
Try diagram properties/Connectors/Suppress All..

q.

Thanks. Close, but this does what it says and suppresses all labels - I actually do want to keep the cardinality labels.  One possible solution would be to switch to Information Engineering notation but that's my last resort. I would prefer to keep UML notation with cardinality labels if possible.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Label Visibility
« Reply #3 on: June 19, 2013, 06:51:27 am »
In that case, I guess, is the only way to write a script which is doing that. Probably not too difficult.

You can also write an add-in which is setting the label visibility according to your rule after checking the OnPostNewConnector event.

q.