Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Mats_swe on June 18, 2008, 11:40:48 pm
-
Hi,
Does anyone know how I can to transfer my code template to another project without copy-and-paste work?
-Mats
-
See http://www.sparxsystems.com.au/EAUserGuide/index.html?importingcodetemplatesfrom.htm
User-defined Code Templates can be imported and exported as Reference Data (see Import and Export Reference Data in the Enterprise Architect User Guide). The templates defined for each language appear in a list of tables with the language name suffixed with _Code_Templates.
You could also embed them in an MDG technology. (http://www.sparxsystems.com.au/EAUserGuide/index.html?addingcodemodulesinmdgtec.htm)
-
You can export the template as an RTF document in the template editor and can then import it into a new project using the import function in the template editor. You have to create an empty template in the destination project to access the import function