Enterprise Architect Add-in Framework Documentation
This event is triggered once for each rule defined in EA_OnInitializeUserRules to be performed on each connector in the selection being validated. If you don't want to perform the rule defined by RuleID on the given connector, then simply return without performing any action. On performing any validation, if a validation error is found, use the Repository.ProjectInterface.PublishResult method to notify Enterprise Architect.

Namespace: EAAddinFramework
Assembly: EAAddinFramework (in EAAddinFramework.dll) Version: 1.0.4064.9398

Syntax

C#
public virtual void EA_OnRunConnectorRule(
	Repository Repository,
	string RuleID,
	long ConnectorID
)
Visual Basic
Public Overridable Sub EA_OnRunConnectorRule ( _
	Repository As Repository, _
	RuleID As String, _
	ConnectorID As Long _
)
Visual C++
public:
virtual void EA_OnRunConnectorRule(
	Repository^ Repository, 
	String^ RuleID, 
	long long ConnectorID
)

Parameters

Repository
Type: Repository
An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.
RuleID
Type: System..::..String
The ID that was passed into the Project.DefineRule command.
ConnectorID
Type: System..::..Int64
The ID of the connector to potentially perform validation on. Use the Repository.GetConnectorByID method to retrieve the connector object.

See Also