Author Topic: Trying to automate MDA Transformation  (Read 3694 times)

abdul.shukur

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Trying to automate MDA Transformation
« on: November 11, 2014, 08:45:35 pm »
We are trying to to automate MDA transformation using custom template.
I have imported Transformation template manually into the repository and  tried to Transform one package using following code.

Project pi = rep.GetProjectInterface();
pi.TransformPackage("AIRM2GML(Complex)", "E57EFEB3-B409-48e9-A6E6-79EC2CFC6B61", "FB835C47-5C14-40d3-8A8C-80463D6EDF65", "SubPackages=true");
pi.ReloadProject();

I am getting the result as "false" and transformation is not happening.
I tried debugging but its using native functions to transform.
Can any on help me how to get this working.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Trying to automate MDA Transformation
« Reply #1 on: November 11, 2014, 09:28:22 pm »
Just an idea: the GUIDs do not look well. Without proof: the help will tell if you need the guids in the converted format. If so the ProjectInterface offers a conversion method (in both directions to and from XML format). If you need pure guids then add the curly brackets.

q.