Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

DiagramLinks Class

A DiagramLink is an object that holds display information about a connector between two elements in a specific diagram. It includes, for example, the custom points and display appearance. It can be accessed from the Diagram DiagramLinks collection.

Associated table in .EAP file:     t_diagramlinks

DiagramLinks Attributes:

Attribute

Type

Notes

ConnectorID

Long

Read/Write

The ID of the associated connector.

 

DiagramID

Long

Read/Write

The local ID for the associated diagram.

 

Geometry

String

Read/Write

The geometry associated with the current connector in this diagram.

 

InstanceID

Long

Read only

The connector identifier for the current model.

 

IsHidden

Boolean

Read/Write

A flag to indicate if this item is hidden or not.

 

ObjectType

ObjectType

Read only

Distinguishes objects referenced through a Dispatch interface.

 

Path

String

Read/Write

The path of the connector in this diagram.

 

Style

String

Read/Write

Additional style information; for example, color or thickness.

 

DiagramLinks Methods:

Method

Type

Notes

GetLastError ()

String

Returns a string value describing the most recent error that occurred in relation to this object.

This function is rarely used as an exception is thrown when an error occurs.

 

Update ()

Boolean

Update the current DiagramLink object after modification or appending a new item.

If false is returned, check the GetLastError function for more information.

 

Learn more