Enterprise Architect Add-in Framework Documentation
EA_OnRetrieveModelTemplate requests that an Add-In pass a model template to Enterprise Architect. This event occurs when a user executes the Add a New Model Using Wizard command to add a model that has been defined by an MDG Technology. See the Incorporate Model Templates topic for details of how to define such model templates.

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

Syntax

C#
public virtual string EA_OnRetrieveModelTemplate(
	Repository Repository,
	string sLocation
)
Visual Basic
Public Overridable Function EA_OnRetrieveModelTemplate ( _
	Repository As Repository, _
	sLocation As String _
) As String
Visual C++
public:
virtual String^ EA_OnRetrieveModelTemplate(
	Repository^ Repository, 
	String^ sLocation
)

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.
sLocation
Type: System..::..String
The name of the template requested. This should match the location attribute in the [ModelTemplates] section of an MDG Technology File. For more information, see the Incorporate Model Templates in a Technology topic.

Return Value

Return a string containing the XMI export of the model that is being used as a template.

See Also