前页 | 后页 |
EA_Connect
Add-Ins can use EA_Connect events to identify their type and to respond to Enterprise Architect start up.
This event occurs when Enterprise Architect first loads your Add-In. Enterprise Architect itself is loading at this time so that while a Repository object is supplied, there is limited information that you can extract from it.
There are two key uses for EA_Connect:
- Initializing global Add-In data, along with identifying the Add-In as an MDG Add-In
- Initializing a Workflow script.
Syntax
Function EA_Connect (Repository As EA.Repository) As String
The EA_Connect function syntax has this parameter:
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. |
Repository Class |
Return Value
A string identifying a specialized type of Add-In:
Type |
Details |
See also |
---|---|---|
"MDG" |
MDG Add-Ins receive MDG Events and extra menu options. |
MDG Events |
"Workflow" |
Workflow add-ins receive additional events to control user ability to change specific fields. |
Workflow Add-In Events |
"" |
A non-specialized Add-In. |