MDG_PreGenerate

Topics

Topic

Detail

See also

Details

MDG_PreGenerate enables the Add-In to deal with unsaved changes.

This function is called immediately before Enterprise Architect attempts to generate files from the model. A possible use of this function would be to prompt the user to save unsaved source files.

 

MDG_PostGenerate

Syntax:

Function MDG_PreGenerate(Repository As EA.Repository, PackageGuid As String) As Long

The MDG_PreGenerate function syntax contains the following elements:

Parameter

Type

Direction

Description

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.

 

PackageGuid

String

IN

The GUID identifying the Enterprise Architect Package sub-tree that is controlled by the Add-In.

 

Return Value:

Return a zero value to abort generation. Any other value enables the generation to continue.