Enterprise Architect Add-in Framework Documentation
MDG_NewClass enables the Add-In to alter details of a Class before it is created. This method is called when Enterprise Architect generates a new Class, and requires information relating to assigning the language and file path. The file path should be passed back as a return value and the language should be passed back via the language parameter. Also look at MDG_PreGenerate

Namespace: EAAddinFramework
Assembly: EAAddinFramework (in EAAddinFramework.dll) Version: 1.0.4064.9398

Syntax

C#
public virtual string MDG_NewClass(
	Repository Repository,
	string PackageGuid,
	string CodeID,
	ref string Language
)
Visual Basic
Public Overridable Function MDG_NewClass ( _
	Repository As Repository, _
	PackageGuid As String, _
	CodeID As String, _
	ByRef Language As String _
) As String
Visual C++
public:
virtual String^ MDG_NewClass(
	Repository^ Repository, 
	String^ PackageGuid, 
	String^ CodeID, 
	String^% Language
)

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.
CodeID
Type: System..::..String
A string used to identify the code element before it is created, for more information see MDG_View.
Language
Type: System..::..String%
A string used to identify the programming language for the new Class. The language must be supported by Enterprise Architect.

Return Value

Returns a string containing the file path that should be assigned to the Class.

See Also