Author Topic: Mutlipe Labels for an element (besides connectors)  (Read 9025 times)

2pointO

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Mutlipe Labels for an element (besides connectors)
« on: July 22, 2016, 07:32:16 pm »
Hello,

Is there a possibility to add more than one label to an element which is not a connector (e.g. component , exposed interfaces ...?

Greetings Sarah

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Mutlipe Labels for an element (besides connectors)
« Reply #1 on: July 22, 2016, 07:57:24 pm »
Label?

You can add as many notes as you like.

q.

2pointO

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Mutlipe Labels for an element (besides connectors)
« Reply #2 on: July 22, 2016, 08:01:53 pm »
Hello,

I don't want to add notes because want to be able to hide or show specific labels seperatly or display specific component informations throw those labels therefore, I want multiple labels for one element like this one :

Code: [Select]
shape label
{

 setOrigin("SW",0,0);

 println("Object: #NAME#");

}

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Mutlipe Labels for an element (besides connectors)
« Reply #3 on: July 22, 2016, 08:59:02 pm »
Shapescript accepts only one label shape.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13286
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Mutlipe Labels for an element (besides connectors)
« Reply #4 on: July 23, 2016, 05:21:55 pm »
But you can add ad many texts as you want in your shapescript.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Mutlipe Labels for an element (besides connectors)
« Reply #5 on: July 23, 2016, 05:44:14 pm »
But to get text outside you need to be tricky:

Code: [Select]
shape label {
 setOrigin("NE",0,0);
 println("Object: #NAME#");
}

shape main {
  DrawNativeShape();
  AddSubShape("top",100,100);
  AddSubShape("below",100,10);

  shape top {}
  shape below {
   println("out: #NAME#");
  }
}

q.