Enterprise Architect Add-in Framework Documentation
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.
Namespace: EAAddinFrameworkAssembly: EAAddinFramework (in EAAddinFramework.dll) Version: 1.0.4064.9398
Syntax
C# |
---|
public virtual bool EA_OnPostNewDiagram(
Repository Repository,
EventProperties Info
) |
Visual Basic |
---|
Public Overridable Function EA_OnPostNewDiagram ( _
Repository As Repository, _
Info As EventProperties _
) As Boolean |
Visual C++ |
---|
public:
virtual bool EA_OnPostNewDiagram(
Repository^ Repository,
EventProperties^ Info
) |
Parameters
- Repository
- Type: Repository
An EA.Repository object representing the currently open Enterprise Architect model.
Poll its members to retrieve model data and user interface status information.
- Info
- Type: EventProperties
Contains the following EventProperty object for the new diagram:
- DiagramID: A long value corresponding to Diagram.DiagramID.
Return Value
Return True if the diagram has been updated during this notification. Return False otherwise.
See Also