Book a Demo

Author Topic: Automation transformation interface?  (Read 3244 times)

mattb

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Automation transformation interface?
« on: June 16, 2007, 04:30:18 pm »
I have successfully code generated via the automation interface.  Now I need to do some tranformations via automation.  I don't see an obvious Transform() method in the API?  

 Any Hints?

 PS: I wonder if I just set the code type to my transformation template name instead of my DSL's code template name, but then I wonder, how do I specify the destination path in the model for the transformed output?

Matt Brown
Sr Software Engineer
Intuit Inc.

thomaskilian

  • Guest
Re: Automation transformation interface?
« Reply #1 on: June 17, 2007, 02:27:44 am »
Hi, I do it using the EXEC_EA_ADDIN method inside a transformation template. I generate the intermediate code which unfortunately is not documented (or maybe it is meanwhile but I don't know where). It was quite some work to find out the intermediate format. I did that by using the Write Now button for existing transformations and look at the results.

mattb

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Automation transformation interface?
« Reply #2 on: June 17, 2007, 10:05:51 am »
Let me be more specific:

 I want to execute a transformation from outside EA via the Automation Interface.  

thomaskilian

  • Guest
Re: Automation transformation interface?
« Reply #3 on: June 17, 2007, 11:24:48 am »
I see, but that question I can't answer.

mattb

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Automation transformation interface?
« Reply #4 on: June 17, 2007, 12:29:56 pm »
YAY!  answer found.

  Use the current version of the EA COM interface.

I found TransformPackage() and TransformElement() in the current version of the API

Object Model 2.10 version 2.a (version 6.5.806 of EA).