Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: David Coon on June 14, 2013, 09:51:03 am

Title: How to import "intermediate language (il) file?
Post by: David Coon on June 14, 2013, 09:51:03 am
I'm developing a transformation and would like to be able to test/debug by importing il files directly (to test the results).  Is there an "import il file" option somewhere that I'm missing?
Title: Re: How to import "intermediate language (il) file
Post by: RoyC on June 14, 2013, 10:01:48 am
Not specifically, as far as I know.

Is there anything in these two Help topics that you can use?

Model Transformation > Write Transformations > Intermediary Language

Model Transformation > Write Transformations > Intermediary Language Debugging
Title: Re: How to import "intermediate language (il) file
Post by: Dermot on June 14, 2013, 03:01:33 pm
Given the MDA is "Model Driven" I am not sure that would make sense. The intermediary file is generated from the model purely for checking that the source/transform has what is required. So, best to get the model/transform right first.
Title: Re: How to import "intermediate language (il)
Post by: Stephane B on July 15, 2013, 06:01:06 pm
Hi, haven't tested it but I may have a hack for this :
- create a transformation template that just outputs the notes of a class.
- copy-paste the IL you want to import in an dummy class' notes
- transform this class.
Title: Re: How to import "intermediate language (il) file
Post by: Stephane B on July 15, 2013, 06:55:51 pm
Tested and working. But dirty it is!

The transformation "ImportIL" is :
-In the "File" template, you just write: %Class%
-In the "Class" template, simply: %classNotes%
And that's it.