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.
Syntax
Function EA_OnPostNewPackage(Repository As EA.Repository, Info As EA.EventProperties) As Boolean
The EA_OnPostNewPackage 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.  | 
||
Info  | 
EA.EventProperties  | 
IN  | 
Contains the following EventProperty Objects for the new package: 
 
 
  | 
Return Value
Return True if the package has been updated during this notification. Return False otherwise.
Details
This event occurs when a user drags a new package from the UML toolbox or Resource Tree, onto a diagram, or by invoking the New Package command from the Project Browser window. Set Repository.SuppressEADialogs = true to suppress Enterprise Architect from showing its default dialogs.
See Also


