Enterprise Architect Add-in Framework Documentation
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.
Also look at MDG_PostGenerate.
Namespace: EAAddinFrameworkAssembly: EAAddinFramework (in EAAddinFramework.dll) Version: 1.0.4064.9398
Syntax
C# |
---|
public virtual long MDG_PreGenerate(
Repository Repository,
string PackageGuid
) |
Visual Basic |
---|
Public Overridable Function MDG_PreGenerate ( _
Repository As Repository, _
PackageGuid As String _
) As Long |
Visual C++ |
---|
public:
virtual long long MDG_PreGenerate(
Repository^ Repository,
String^ PackageGuid
) |
Parameters
- Repository
- Type: Repository
An EA.Repository object representing the currently open Enterprise Architect model.
Poll its members to retrieve model data and user interface status information.
- PackageGuid
- Type: System..::..String
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.
See Also