Book a Demo

Author Topic: DiagramLink question  (Read 4154 times)

SMaric

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
DiagramLink question
« on: November 14, 2011, 09:43:33 pm »
Can someone please explain the usage of

ConnectorID - The ID of the associated connector.
and
InstanceID - The connector identifier for the current model.


I am finding that these values are identical for some connectors and not for other connectors



qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: DiagramLink question
« Reply #1 on: November 15, 2011, 12:47:18 am »
The ConnectorID is a unique ID for all connectors in the repository. I have no idea what the InstanceID is. Maybe it is used with association classes?

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: DiagramLink question
« Reply #2 on: November 15, 2011, 08:56:28 am »
A connector may appear on more than one diagram. So in the diagram links table (t_diagramlinks), the connector ID won't be unique; the instance ID will be.
The Sparx Team
[email protected]

SMaric

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: DiagramLink question
« Reply #3 on: November 15, 2011, 07:37:06 pm »
Quote
A connector may appear on more than one diagram. So in the diagram links table (t_diagramlinks), the connector ID won't be unique; the instance ID will be.


That makes some sort of sense --
So if the connector is ONLY used on a single diagram
Then connector ID == instance ID

?? Correct ??



KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: DiagramLink question
« Reply #4 on: November 16, 2011, 09:07:48 am »
Quote
So if the connector is ONLY used on a single diagram
Then connector ID == instance ID

?? Correct ??
No, they're completely different numbers (although if you average one diagram per connector for the life of a model - which is not unreasonable - the numbers will be very close).
The Sparx Team
[email protected]