Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: chrvi on September 19, 2007, 02:28:28 pm
-
Hi there,
I've always worked through Java API with an existing .eap file but how can I create new such a file (containing let's say one class view model)?
I bet I've seen it discussed somewhere but...
All your hints are welcome.
Radek
-
File/New ?
If you are talkig about DB repository: chose the above to create an empty EAP. The create a new DB as usual and transfer the empty EAP into that.
-
Or actually create an empty template project, stored someplace predictable. Through your API copy the template to your target location and name. Then open it as usual.
-
Well, actually I'd like to create a brand new .eap via automation interface without any prepared existing .eap files somewhere.
I do not want to be dependent on some storage with an empty .eap file.
It'd be fine for me to create it on the fly...
-
Then why not use the good old COPY? Create an empty EAP manually, then copy it...
-
Well, actually I'd like to create a brand new .eap via automation interface without any prepared existing .eap files somewhere.
I do not want to be dependent on some storage with an empty .eap file.
Even EA can't do this. It relies on EABase.eap being in the same directory as the executable.
-
chrvi, when EA creates a new project, it copies the EABase.eap file from the install directory of EA.
-
I see... OK.
Thanks, guys.