Book a Demo

Author Topic: How to add notes in connectors  (Read 3758 times)

Jeferson Kal Lyns

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to add notes in connectors
« on: July 31, 2015, 03:09:06 am »
Hello guys,

Well, I'm trying to get at each connection created is placed a note stating some data but do not know how to do this, can anyone help me?  :-/

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to add notes in connectors
« Reply #1 on: July 31, 2015, 07:36:49 am »
The note element has PDATA4 set to idref<n>=<m>; where <n> is a consecutive number starting at 1 and <m> is the Connector_ID of the linked connector.

q.

E.Eckstein

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: How to add notes in connectors
« Reply #2 on: August 04, 2015, 09:59:53 pm »
Hi Jeferson,

Did you think about using a shapescript?
If you will try this one onto a connector in UML Types, you will have e.g. the name of the connector at the source point.

You could aswell generate your own stereotype for an connector including a special taggedValue. In this one you might store your additional informations and display them like in the example code (instead of #name#).

Code: [Select]
shape main
{
      noshadow=true;
      setlinestyle("solid");
      moveto(0,0);
      lineto(95,0);
}
shape source
{
      
PrintWrapped("#name#");
}
shape target
{
      rotatable = true;
      SetFillColor(0,0,0);
      startpath();
      moveto(0,0);
      lineto(13,3);
      lineto(13,-3);
      endpath();
      fillandstrokepath();
}

Regards,
Eric