Pré. | Proc. |
EA_OnPostNewElement
EA_OnPostNewElement notifies Add-Ins that a new element has been created on a diagram. It enables Add-Ins to modify the element upon creation.This event occurs after a user has dragged a new element from the Toolbox or 'Resources' tab of the Browser window onto a diagram. The notification is provided immediately after the element is added to the model.
Set Repository.SuppressEADialogs to True to suppress Enterprise Architect from showing its default 'Properties' dialog.
Syntax
Function EA_OnPostNewElement (Repository As EA.Repository, Info As EA.EventProperties) As BooleanThe EA_OnPostNewElement 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 element:
|
EventProperties Class |