前页 | 后页 |
EA_OnPostNewPackage
EA_OnPostNewPackage notifies Add-Ins that a new Package has been created on a diagram. It enables Add-Ins to modify the Package upon creation.
This event occurs when a user drags a new Package from the Toolbox or 'Resources' tab of the Browser window onto a diagram, or by selecting the from the Browser window.
Syntax
Function EA_OnPostNewPackage (Repository As EA.Repository, Info As EA.EventProperties) As Boolean
The EA_OnPostNewPackage function syntax contains these parameters.
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 |
Info |
EA.EventProperties Direction: IN Description: Contains this EventProperty object for the new Package:
|
EventProperties Class |
Return Value
Return True if the Package has been updated during this notification. Return False otherwise.