Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: furman76 on January 16, 2017, 07:36:13 am

Title: Model Template
Post by: furman76 on January 16, 2017, 07:36:13 am
How do I package model templates with MDG Technology file? When technology is imported, the file is copied to the APPDATA, but the template doesn't, and I have no control over its location on the users computer.
Title: Re: Model Template
Post by: Uffe on January 18, 2017, 09:43:58 pm
Hello,

Model templates are not packaged or distributed with an MDG Technology. The technology XML file simply contains the location of the template XMI file, which you've added to the technology's MTS file.

In order for the EA client to find the template XMI file, it must be placed in a shared folder which is accessible from the clients' machines.
So place the templates in a shared folder, and make sure to use UNC path names in your MTS files.

If you don't have any shared folders which all clients can access, model templates are essentially unviable. You could create an MSI installer which places the template XMI files in some specific folder on the client machine, refer to that location in the MTS file and then make sure that all clients install the MSI package, but that's an awful lot of work for very little gain.

HTH,


/Uffe