Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

EA_OnPostNewPackage

Topics

Topic

Detail

See also

Details

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 window onto a diagram, or by selecting the New Package icon from the Project Browser.

 

EA_OnPreNewPackage

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

Info

EA.EventProperties

IN

Contains the following EventProperty objects for the new package:

PackageID: A long value corresponding to Package.PackageID
 

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.

 

Return Value:

Return True if the package has been updated during this notification. Return False otherwise.