Author Topic: Transferring a code template to another project  (Read 3698 times)

Mats_swe

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Transferring a code template to another project
« 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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Transferring a code template to another projec
« Reply #1 on: June 19, 2008, 08:55:27 am »
See http://www.sparxsystems.com.au/EAUserGuide/index.html?importingcodetemplatesfrom.htm
Quote
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)

cweng

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Transferring a code template to another projec
« Reply #2 on: June 19, 2008, 03:52:13 pm »
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