Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: chrvi on September 19, 2007, 02:28:28 pm

Title: how to create an empty project?
Post 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
Title: Re: how to create an empty project?
Post by: thomaskilian on September 21, 2007, 01:25:55 am
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.
Title: Re: how to create an empty project?
Post by: «Midnight» on September 21, 2007, 03:24:14 am
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.
Title: Re: how to create an empty project?
Post by: chrvi on September 21, 2007, 03:41:44 am
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...
Title: Re: how to create an empty project?
Post by: thomaskilian on September 21, 2007, 03:43:52 am
Then why not use the good old COPY? Create an empty EAP manually, then copy it...
Title: Re: how to create an empty project?
Post by: Eve on September 24, 2007, 01:14:52 pm
Quote
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.
Title: Re: how to create an empty project?
Post by: bmioch on September 24, 2007, 07:08:18 pm
chrvi, when EA creates a new project, it copies the EABase.eap file from the install directory of EA.
Title: Re: how to create an empty project?
Post by: chrvi on October 01, 2007, 10:43:43 pm
I see... OK.

Thanks, guys.