Pré. | Proc. |
EARules_CreateModel
EARules_CreateModel allows an Add-In registered to provide rules for a language to create a wrapping element when a new diagram is created.
This event occurs during diagram creation.
Syntax
Function EARules_CreateModel (Repository As EA.Repository, Language As String, Diagram as EA.Diagram) As Integer
The EARules_CreateModel function syntax contains these parameters.
Parameter |
Description |
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. |
Repository Class |
Language |
String Direction: IN Description: Specifies the language for the rule that Enterprise Architect is requesting. This will match one of the values returned from EARules_Initialize. |
EARules_Initialize |
Diagram |
EA.Diagram Direction: IN Description: Specifies the diagram currently being created. |
Diagram Class |
Return Value
- Return zero or a positive value if no further action is required
- Return a negative value to use the behavior from the base rule