预订演示
前页 后页

EA_OnPostNewConnector

EA_OnPostNewConnector notifies Add-Ins that a new connector has been created on a diagram. It enables Add-Ins to modify the connector upon creation.

This event occurs after a user has dragged a new connector from the Toolbox or 'Resources' tab of the Browser window onto a diagram. The notification is provided immediately after the connector is added to the model.

Syntax

Function EA_OnPostNewConnector (Repository As EA.Repository, Info As EA.EventProperties) As Boolean

The EA_OnPostNewConnector function syntax contains these parameters.

Parameter

Type

See also

Repository

EA.Repository

Direction: IN

Description: An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.

EventProperties Class

Info

EA.EventProperties

Direction: IN

Description: Contains this EventProperty object for the new connector:

  • ConnectorID: A long value corresponding to Connector.ConnectorID
EventProperties Class

Return Value

Return True if the connector has been updated during this notification. Return False otherwise.

Learn more