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.


Topics - Radiogamer

Pages: [1]
1
I've managed to construct some add-ins now that exports an Enterprise Architect project to XMI and allows me to continue with this XMI file.
For this I would need to specify the directory this XMI file is to be stored in. This is currently set on the Desktop, and using the FolderBrowsingDialog one can select the desired directory.

What would be more useful is if I can set this default location to the directory the EA project is located. Setting this default location in my add-in is easy, but I would need to get this directory first. Hence my question: Is it possible to obtain the directory as string of the currently opened project? I've looked into the user guide and API, but I haven't found anything yet that allows me to get the directory.

Thanks in advance.

2
Automation Interface, Add-Ins and Tools / Add-in export to xml
« on: September 14, 2016, 05:07:40 pm »
Hello all,

I'm fairly new with the use of Enterprise Architect and things are going good. I'm currently checking out add-ins and am trying to build one myself. Right now I got a simple add-in working that opens a message saying "Hello World".

What I'm wondering is if it's possible to call functionalities of EA from the add-in. I'd like to be able run my add-in on a model to have it converted to xml and stored in the same directory as the model. Hence is it possible to perform this in an add-in, and if so what kind of methods should I use?

Thanks in advance.

Pages: [1]