Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: abdul.shukur on November 11, 2014, 08:45:35 pm

Title: Trying to automate MDA Transformation
Post by: abdul.shukur 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.
Title: Re: Trying to automate MDA Transformation
Post by: qwerty 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.