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

EA_OnPostNewDiagram

Topics

Topic

Detail

See also

Details

EA_OnPostNewDiagram notifies Add-Ins that a new diagram has been created. It enables Add-Ins to modify the diagram upon creation.

 

EA_OnPreNewDiagram

Syntax:

Function EA_OnPostNewDiagram(Repository As EA.Repository, Info As EA.EventProperties) As Boolean

The EA_OnPostNewDiagram function syntax contains the following elements:

Parameter

Type

Direction

Description

Info

EA.EventProperties

IN

Contains the following EventProperty objects for the new diagram:

DiagramID: A long value corresponding to Diagram.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 diagram has been updated during this notification. Return False otherwise.