Book a Demo

Author Topic: Base Project  (Read 4941 times)

charrington

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Base Project
« on: February 05, 2007, 06:27:58 pm »
The manual says "To create a new Enterprise Architect project, you must select a project template that will form the base model for the new project". But nowhere does it explain what a base project is. And if 'you must ...' then why is there an option to create a new project? This doesn't make any sense.

thomaskilian

  • Guest
Re: Base Project
« Reply #1 on: February 06, 2007, 06:39:00 am »
The reason is that there is no unique base project. This is always defined by you, depending on what kind of task you have to fulfill. You can start with a complete empty project and fill it on demand or you can select several predefined templates. You even can (like I do it) create a template project with predefined structures and create a new one starting from there. So you are right: as EA permits great flexibility here, you are also free to create nonsense.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Base Project
« Reply #2 on: February 06, 2007, 07:02:53 am »
Actually Thomas, recent versions of EA provide an EABase project. EA uses this as it's (sort of) internal baseline when creating a new project.

I don't know how (or even if) the new project templates are stores there. However, if you edit EABase to change settings like default code generation language, the new settings will be the default for new projects.

The above is only true for projects created the new way, not copied like us old-timers do.

David
No, you can't have it!

charrington

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Base Project
« Reply #3 on: February 06, 2007, 08:00:26 am »
Ok, so the long and short of it is what? Should I do what the manual says I have to do (start with a base project)? Or is creating a new project doing exactly the same thing under the hood?

thomaskilian

  • Guest
Re: Base Project
« Reply #4 on: February 06, 2007, 08:46:35 am »
My advice was mor or less: give both variants a try and take what fits best to you. There is no wrong or right...

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Base Project
« Reply #5 on: February 06, 2007, 09:21:28 am »
Thomas is quite correct. You have to think about what will work best for you, and consider each new project individually.

I have edited EABase (after making a backup copy) to use my preferred defaults. This lets me use the new project button in EA - I usually don't include any of the templates - and get a basic project shell.

One thing I did was clear out the glossary and such, so that resulting new projects were empty (or at least emptier).

However, if I need a really empty project shell, or one with some different customization, I start by copying an empty 'reference' project.

HTH, David
No, you can't have it!

charrington

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Base Project
« Reply #6 on: February 07, 2007, 09:26:19 am »
Thanks all for the hints. One question: how does this play out if you use SQL Server as you repository instead of Access files?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Base Project
« Reply #7 on: February 07, 2007, 09:41:59 am »
Basically you need to add a few steps.

If you use SQL Server (or any of the DBMS repositories) you need to set up an empty schema before you can load a model. Depending on your configuration this could be through a corporate procedure - working with your friendly local DBA - or something you do yourself (perhaps through SQL Server Express). This involves running the scripts provided by Sparx to 'bootstrap' the schema so it can accept a model.

Having done this, you need to transfer a model into the DBMS, using the facilities EA provides for you. This could be a newly-created model as we've discussed above.

Now for the interesting part. You can create a few bare-bones models, one for each of your typical starting configurations. Load each of these into its own DBMS database. Now you can copy these - via some means you will develop yourself, and which is specific to your DBMS - each time you start a new model. The result is a predictable base project without having to go through all the preliminary steps.

HTH, David
No, you can't have it!

charrington

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Base Project
« Reply #8 on: February 07, 2007, 10:10:17 am »
Thanks David