预订演示

请注意 : 本帮助页面不适用于最新版本的Enterprise Architect. 最新的帮助文档在这里.

前页 后页

EA_OnPostNewDiagram

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

Syntax

Function EA_OnPostNewDiagram (Repository As EA.Repository, Info As EA.EventProperties) As Boolean
The EA_OnPostNewDiagram function syntax contains these parameters.

Parameter

Type

See also

Repository

EA.Repository
Direction: IN
Description: An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.
Repository Class

Info

EA.EventProperties
Direction: IN
Description: Contains this EventProperty object for the new diagram:

  • DiagramID: A long value corresponding to Diagram.PackageID

EventProperties Class

Return Value

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

Learn more