Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nicolas de loof

Pages: [1]
1
Thanks for the tip.

It was simplier in my case to iterate through the Packages hierarchy from repo.getModels() based on packages names.

My XMI export no works based on EAP file.

I now have to make it work with a server connection.

2
I just found by myself I can get the active project using :
Code: [Select]
Project proj = r.GetProjectInterface();
Now, proj.ExportPackageXMI has no effect. The guid is set from a CSV export, and is :
Code: [Select]
String guid = "{E82323AE-48E3-4008-953D-61CB45F1B591}";
Is this the right format ?

Another question : how can I connect to an Oracle based repository in place of loading an EAP file ?

3
Automation Interface, Add-Ins and Tools / XMI export automation from Java
« on: October 23, 2008, 12:00:19 am »
Hello,

I'd like to automate XMI export from EA using Java automation.
My current code is :

Code: [Select]
       Repository r = new Repository();
        r.OpenFile( modelFile.getAbsolutePath() );
        App app = r.GetApp();
        Project proj = app.GetProject();
        proj.ExportPackageXMI( guid, EnumXMIType.xmiEADefault, 1, 1, 1, 1, output.getAbsolutePath() );
        r.CloseFile();

This fails as r.getApp() returns null.

Did I miss something ?

Pages: [1]