Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Mats_swe on June 17, 2008, 10:16:57 pm

Title: Creating a code template
Post by: Mats_swe on June 17, 2008, 10:16:57 pm
Hi,
I want to create a code template for the mof language so I can generate code directly from created CIM models. I have found the syntax in the manual and started to write the template. The problem is that It won't generate any code, not even a file.

If I press Generate Code for a class and choose mof it states 'Generation Complete!' but no file is created. When generating a Java file the window closes and the file is generated perfectly. Does anyone know why it won't generate a file? I have only written a few lines in the template so far, but it should still generate a file, although not perfect, right?

I have also looked any tools to convert a xmi file to mof. The xmi file generated from EA isn't compatible with the tools, information is missing.

Thank you for all help contributions possible.
-Mats
Title: Re: Creating a code template
Post by: Eve on June 18, 2008, 08:30:57 am
What have you put in your file template?

If you put plain text in does it generate that to a file?
Title: Re: Creating a code template
Post by: Mats_swe on June 18, 2008, 05:49:34 pm
Thanks. I missed that the reading starts from the 'file' template. So now I'll give it a try.
-Mats