Create Custom Language Template

Enterprise Architect can forward generate code for languages that it does not specifically support, if the appropriate code generation templates are defined for that language. This topic outlines the steps required to define templates for custom languages.

How to

To define a template for a custom language



See also


Create the custom language as a new product:

Select the Settings | Code Datatypes menu option; the Programming Languages Datatypes dialog displays
In the Product Name field type the name of the new language, and in the Datatype field type a datatype (one is enough to declare that the new language exists)




Data Types


Select the Settings | Code Generation Templates menu option.

The Code Templates Editor view displays.




In the Language field, click on the drop-down arrow and select the custom language.




From the Templates list, select one of the base templates.




Define the template using the Code Templates Editor.




Click on the Save button to store the template in the .EAP file.




Repeat steps 1 to 6 for each of the relevant base templates for the custom language.




The File template must be defined for the custom language; the File template can then see the Import Section, Namespace and Class templates