Book a Demo

Author Topic: hiding the stereotype Labels of Elements and Con..  (Read 5406 times)

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
hiding the stereotype Labels of Elements and Con..
« on: May 21, 2010, 12:36:15 am »
I guess this is a stupid question but i dint find out how to hide the Stereotype labels on Elements and Connectors
Another Question:Can i make the linke of Connectors of the Association type dashed?
And if i want to set the color Attribute of connectors: Which value belongs to which color?


thx

Stao

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: hiding the stereotype Labels of Elements and C
« Reply #1 on: May 21, 2010, 10:18:26 am »
Hi Stao,

You'll need ShapeScripts to do most of what you want to do...

Some of the things can be done manually, but others require ShapeScripts.

Element Stereotypes  can be controlled via the Diagram Properties.
Connector stereotypes can be controlled via the context menu, as is the label visibility.

Line rendering is controlled by ShapeScript.  The RGB colour values can be obtained from the colour pickers...

Shape scripts can also help with the other issues.  But you'll need to read up on them...

HTH,
Paolo
« Last Edit: May 21, 2010, 10:20:23 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: hiding the stereotype Labels of Elements and C
« Reply #2 on: May 21, 2010, 10:27:14 am »
ive done shape scripts already and for elements it works really well.
but  connectors always show the stereotype label even if i dont add the "#stereotype#" addtribute to the connector shape
is there no possibility to hide the label on default?

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: hiding the stereotype Labels of Elements and C
« Reply #3 on: May 21, 2010, 11:09:09 am »
Quote
I've done shape scripts already and for elements it works really well.
but  connectors always show the stereotype label even if i don't add the "#stereotype#" attribute to the connector shape
is there no possibility to hide the label on default?
Hi again Stao,

You need to use the HideLabel method to hide the stereotype for connectors.   Note that the label you need to hide is found by using the Label visibility menu.  Also be aware that reflexive relationships may use DIFFERENT labels than non-reflexive.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: hiding the stereotype Labels of Elements and C
« Reply #4 on: May 21, 2010, 07:54:56 pm »
Ah i got it.
Thank you!