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.

Set Repository.SuppressEADialogs to true to suppress Enterprise Architect from showing its default dialogs.

Also look at EA_OnPreNewDiagram.

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.