Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: SMaric on November 14, 2011, 09:43:33 pm

Title: DiagramLink question
Post by: SMaric 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


Title: Re: DiagramLink question
Post by: qwerty 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.
Title: Re: DiagramLink question
Post by: KP 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.
Title: Re: DiagramLink question
Post by: SMaric 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 ??


Title: Re: DiagramLink question
Post by: KP 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).