Book a Demo

Author Topic: Custom Code Generation Template Problem  (Read 3072 times)

phoey01

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Custom Code Generation Template Problem
« on: August 05, 2010, 03:15:14 am »
Hello,

I am currently using the 30 day trial of Enterprise Architect 8, with the Professional license enabled.

I am trying to create custom logic for the Code Generation Templates. I basically created a New Language template and copied all of the templates from the C++ code generation into the new language one for one. I am basically using the C++ templates as a base for the custom language templates that I want to create.

When I go to generate the source code (Generate Code) on a class diagram with my custom language selected as my target language, the only file that gets generated is the header file (.h). If I switch the target language to C++, it generates both the header (.h) and the source file (.cpp) which is the behavior I would expect.

I guess I am asking what step am I missing in order to generate BOTH the header and the source file? Again, the custom target language at this point is a 1 to 1 copy of the C++ Code Generation Templates.

Any help would be appreciated. Thanks.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Custom Code Generation Template Problem
« Reply #1 on: August 05, 2010, 08:09:31 am »
Create an MDG technology to specify implementation file details.  See http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/addingcodemodulesinmdgtec.htm for details.