Book a Demo

Author Topic: Creating a code template  (Read 2749 times)

Mats_swe

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Creating a code template
« 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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8090
  • Karma: +118/-20
    • View Profile
Re: Creating a code template
« Reply #1 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?

Mats_swe

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Creating a code template
« Reply #2 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