预订演示

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

前页 后页

EA_OnPreActivateTechnology

EA_OnPreActivateTechnology notifies Add-Ins that an MDG Technology resource is about to be activated in the model.
This event occurs when a user selects to activate an MDG Technology resource in the model (by clicking on the Set Active button on the 'MDG Technologies' dialog or by selecting the technology in the list box in the Default Tools toolbar).
The notification is provided immediately after the user attempts to activate the MDG Technology, so that the Add-In can permit or disable activation of the Technology.

Syntax

Function EA_OnPreActivateTechnology (Repository As EA.Repository, Info As EA.EventProperties) As Boolean
The EA_OnPreActivateTechnology 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 these EventProperty objects for the MDG Technology to be activated:

  • TechnologyID: A string value corresponding to the MDG Technology ID

EventProperties Class

Return Value


  • Return True to enable activation of the MDG Technology resource in the model

  • Return False to disable activation of the MDG Technology resource

Learn more