MDG_NewClass

Return to Introduction  Previous page  Next page

MDG_NewClass

 

The MDG_NewClass enables the Add-In to alter details of a class before it is created.

 

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 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.

CodeID

String

IN

A string used to identify the code element before it is created, for more information see MDG_View

Language

String

IN

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.

 

Details

 

This method is called when EA 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.

See Also