Book a Demo

Author Topic: Help: connector labels positioning and rotation ...  (Read 5797 times)

matthew.james

  • EA User
  • **
  • Posts: 155
  • Karma: +8/-3
  • Am I supposed to say something here ... ?
    • View Profile
Help: connector labels positioning and rotation ...
« on: August 27, 2018, 10:50:47 am »
I haven't played around with labels on connectors up to now, and I'm struggling to find a few things ...

1) How to control the 'default' label position.
This seems to depend on the type of connector? Sometimes the label is put in the middle and at other times it is put at one end (Note I am using the connector 'name' property which I thought was in the 'middle top' label position).  For example an Archimate3 Association connector (based on UML Association) puts the label in the middle as expected but the Archimate3 Flow connector (based on UML ControlFlow) puts it at the target end of the connector.  I understand that I can move the labels but I would expect the default behaviour to be default ...
--> Is there somewhere I can control default label location? Maybe it is per connector type?

2) Label rotation
Most tools have the ability to align labels to lines, ie run the label at the same angle as the line. I can't find this option anywhere for connectors in Sparx, I can only find horizontal and vertical alignment.
--> Is there any way to automatically align labels to the angle of the connector line?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Help: connector labels positioning and rotation ...
« Reply #1 on: August 28, 2018, 05:20:57 am »
1) depends on shape scripts which often add their own sauce.
2) there is no such option. You can probably write an add-in that can do voodoo on newly created connectors.

q.

matthew.james

  • EA User
  • **
  • Posts: 155
  • Karma: +8/-3
  • Am I supposed to say something here ... ?
    • View Profile
Re: Help: connector labels positioning and rotation ...
« Reply #2 on: August 28, 2018, 09:10:42 am »
1) depends on shape scripts which often add their own sauce.

From further experimentation the Archimate Flow connector is inheriting partial behaviour from the underlying ControlFlow connector, with some of it seemingly blocked by the shapescript.
This seems to have been a poor choice of base class or a poor implementation over it - I'm going to raise a bug against this one, not that I have much hope of it being fixed.

2) there is no such option. You can probably write an add-in that can do voodoo on newly created connectors.

Seems to me that this is not something that users of the tool should be trying to solve.  I'll raise it as a feature request

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Help: connector labels positioning and rotation ...
« Reply #3 on: August 28, 2018, 06:54:04 pm »
You could alter the shape script in the MDG yourself. Just takes you in responsibility to distribute it in each EA installation at your site.

q.