Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: ms_butterfly on July 27, 2004, 03:21:31 am

Title: Templates - but not about classes!!
Post by: ms_butterfly on July 27, 2004, 03:21:31 am
Hi!
I want to use UML templates in my projects...for example, to have a standard project, with some classes that are always used, and model the other projects over this one (like the MS Word's templates).
I could make a work-around saving a project, marking as read-only and always starting from this project and "Saving AS", but I wonder if there is a easier way...
thanx!
Title: Re: Templates - but not about classes!!
Post by: JP on July 27, 2004, 05:17:35 am
Why don't you create a pattern of your own ?
This is typically the kind of situation where it applies.
EA allows users to define theirs.
JP
Title: Re: Templates - but not about classes!!
Post by: ms_butterfly on July 27, 2004, 05:51:50 am
yeah, i think it can be a good idea. But I'm trying to test the pattern stuff and, when I add a pattern to a diagram, the button "Finish" does not become enabled!!
Title: Re: Templates - but not about classes!!
Post by: ms_butterfly on July 27, 2004, 07:33:30 am
Anyway, I still think I need to make a template...
Title: Re: Templates - but not about classes!!
Post by: Bruno.Cossi on July 27, 2004, 08:31:48 am
Hi,

there is an easy solution. Create a new project and build the template, i.e. build the package structure that you want to always use, build the classes that you want to have in your every project etc.
Then, when you want to create a new project, notice that in the window (File > New) you are asked for the Model Project (by default EABase.eap). Just replace this with the path to the model project you have created yourself.

Hope this helps!

Bruno
Title: Re: Templates - but not about classes!!
Post by: ms_butterfly on July 28, 2004, 01:10:20 am
Hum...great idea Bruno...and will this Model Project add any overhead in the project?
Thanx!
Title: Re: Templates - but not about classes!!
Post by: Bruno.Cossi on July 28, 2004, 05:39:12 am
Hi,

I do not think it will add any overhead, at least I don't see how it would.
You are already using a model project when creating new EA Project, only this mo0del project, this template, has been created by SparxSystems and it contains nothijg but package structure.

Bruno
Title: Re: Templates - but not about classes!!
Post by: ms_butterfly on July 30, 2004, 02:23:50 am
Thanx Bruno, it really worked!  ;D
have a nice day!
Title: Re: Templates - but not about classes!!
Post by: Bruno.Cossi on July 30, 2004, 05:45:43 am
Glad to have helped! :-)