Pré. | Proc. |
MDG_NewClass
Add-Ins can use MDG_NewClass 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.
Syntax
Function MDG_NewClass (Repository As EA.Repository, PackageGuid As String, CodeID As String, Language As String) As String
The MDG_NewClass 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 |
PackageGuid |
String Direction: IN Description: The GUID identifying the Enterprise Architect Package sub-tree that is controlled by the Add-In. |
|
CodeID |
String Direction: IN Description: A string used to identify the code element before it is created. |
MDG_View |
Language |
String Direction: OUT Description: A string used to identify the programming language for the new Class. The language must be supported by Enterprise Architect. |
Return Value
Return a string containing the file path that should be assigned to the Class.