EA_OnInitializeUserRules

Return to Introduction  Previous page  Next page

EA_OnInitializeUserRules is called on Enterprise Architect start-up and requests the Add-In provide Enterprise Architect with a rule category and list of rule IDs for model validation.

Syntax

Sub EA_OnInitializeUserRules(Repository As EA.Repository)

The EA_OnInitializeUserRules function syntax contains the following elements:

Parameter

Type

Direction

Description

Repository

EA.Repository

IN

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

Details

This function must be implemented by any Add-In that is to perform its own model validation. It must call Project.DefineRuleCategory once and Project.DefineRule for each rule - these functions are described in the Project Interface section.