Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: lmajano on April 15, 2009, 08:26:05 am

Title: Override Default Code Templates and export as MDG
Post by: lmajano on April 15, 2009, 08:26:05 am
My question is the following.  I imported a custom language MDG technology to my project and global.

It comes with several code generation templates and it works great.  However, I have modified the base templates so it generates code as I see fit.  It works and it saves the overrides in my eap project.  However, now I want these templates to be the default ones for ANY project.  I also want to export a new MDG technology and I want it to include all the overrides I did to the code templates.

How in the world do I do this?  I have read all the docs and have no clue how to override the base templates, without me modying the original import xml.
Title: Re: Override Default Code Templates and export as
Post by: Nizam Mohamed on April 17, 2009, 09:00:46 am
Did you have a chance to look at the "SDK for EA-> MDG Tech is SDK -> Create MDG Technologies->Add Code Modules" section of the help document, this shall facilitate you to include ur template changes to the resultant technology file, on top of the hitherto available templates.
Title: Re: Override Default Code Templates and export as
Post by: lmajano on April 17, 2009, 09:09:59 am
I am sorry, but I cannot find that!!  ANy instructions?
Title: Re: Override Default Code Templates and export as
Post by: Aaron B on April 17, 2009, 09:16:55 am
Here is the online version of the help page that Nizam was referring to..
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/addingcodemodulesinmdgtec.html