Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: owieland69 on January 11, 2006, 03:09:56 am
-
Hello,
in my project I like to create code templates for C. For sanity reasons I prefer to have an own template set.
EA has the option to define new languages, but up to now I didn't find a way to copy an existing one and modify it afterwards.
Also the way to export an existing template set and reimport it afterwards does not to work, since templates from existing languages cannot be exported (or I didn't find out how :-().
Is there a way to create a new language by copy an existing template set?
Thanks for your suggestions
Kind regards,
Olli
-
The reason why you couldn't export the built in languages is that you don't have any saved templates for that language.
The only way to copy existing templates is a fairly long process. Here it is, as I've described in another thread.
- Click the save button for each of the templates in the original transformation. This makes sure that each of the templates will be included when exported.
- Export the templates. Tools | Export Reference Data | <language>_Code_Template
- Delete the saved copy of each of the templates. This is to free up the unique identifiers for the templates you just exported.
- Change the name in the exported templates to the new transformation name.
- Re-import the templates.
It would be nice if there was a copy feature, but until there is, this is how you do it.
-
If anyone has or does define a new language, wouldn't it be useful for that to be posted somewhere for download by others ? (eausergroup ?)
-
Hi Graham,
there are a few there, have a look. There is ColdFusion, PL/SQL... there may be others, not sure off the top of my head.
Bruno
If anyone has or does define a new language, wouldn't it be useful for that to be posted somewhere for download by others ? (eausergroup ?)
-
Thanks Bruno !