Author Topic: Labels On Activity Control Flow Connectors  (Read 483 times)

lmunday

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Labels On Activity Control Flow Connectors
« on: June 10, 2017, 05:54:04 am »
By default the label on control flow connector lines, always attaches to the far end of the line, where the arrowhead is.

I want to see the label at the beginning of the line, where it exits a shape. This is particularly necessary when a decision point has multiple exit lines. It is difficult to know which line to follow if the label is at the far end of the line.

I end up moving every label on every line on my activity diagrams. Is there a way to default the label to the non-pointy end? (Or even in the middle like other connectors, would  be an improvement.)

Helmut Ortmann

  • EA User
  • **
  • Posts: 884
  • Karma: +37/-1
    • View Profile
Re: Labels On Activity Control Flow Connectors
« Reply #1 on: June 16, 2017, 11:19:21 pm »
Hi Imunday,

in principle it's possible with:
- Addin
- Script


You have to modify the column  'Geometry'  in table  t_diagramLinks like (there is also an API, I think):
LMB=CX=21:CY=13:OX=-105:OY=-97
LRT=CX=20:CY=13:OX=-108:OY=-184

The crux is that the X and Y values are relative to the target and therefore you have to calculate them if you want to apply your scheme (source). No absolute value will do the job.

You can play with a diagram and the SQL Query:
'
  • select Geometry from t_diagramLinks
'
in a Project with just one control flow to see how it's working.

Kind regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)