前页 | 后页 |
EARules_GetEquivalentDiagram
EARules_GetEquivalentDiagram allows an Add-In registered to provide rules for a language to override the diagram type created when a UML diagram would otherwise be created.This event occurs during user requests to create a structure that includes a diagram.
Syntax
Function EARules_GetEquivalentDiagram (Repository As EA.Repository, Language As String, DiagramType as String) As StringThe EARules_GetEquivalentDiagram 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 |
DiagramType |
String Direction: IN Description: Specifies the type of diagram that has been requested. |
Return Value
A string containing the qualified name of a diagram type to replace the UML diagram requested.Return an empty string to allow the base rules to control the diagram type.