EA_OnPostNewAttribute

Topics

Topic

Detail

See also

Details

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

This event occurs when a user creates a new attribute on an element by either drag-dropping from the Project Browser, using the Attributes Properties dialog, or using the in-place editor on the diagram. The notification is provided immediately after the attribute is created.

 

EA_OnPreNewAttribute

Syntax:

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

The EA_OnPostNewAttribute function syntax contains the following elements:

Parameter

Type

Direction

Description

Info

EA.EventProperties

IN

Contains the following EventProperty objects for the new attribute:

·AttributeID: A long value corresponding to Attribute.AttributeID

 

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 attribute has been updated during this notification. Return False otherwise.