Book a Demo

Author Topic: How to reuse defined elements among projects?  (Read 2877 times)

safanth

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
How to reuse defined elements among projects?
« on: May 21, 2010, 04:47:54 pm »
Hello,

I am new to using EA and try to achieve the following:

I'd like to define classes and datatypes and reuse those as predined classes/datatypes within other projects.

For example, I'd like to define a class named CMoneyValue, store that as a central reusable repository for any other project in EA. A new EA project could define a class and assign CMoneyValue to one of it's attributes.

How can I achieve this?

Thanks,
Simon

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: How to reuse defined elements among projects?
« Reply #1 on: May 21, 2010, 04:53:01 pm »
Hi Simon,

You create a package to hold the common elements.  You can then export it from one repository and import it into another.

The import function includes the checkbox [  ] Strip GUIDs - this must not be marked if you wish to identify the same element in all the repositories in the same way...

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

safanth

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: How to reuse defined elements among projects?
« Reply #2 on: May 21, 2010, 05:05:27 pm »
Thank Paolo,

I tried it and I got that working indeed!

I do have a couple of follow up question though:

1) Is it possible to protect the imported definitions so they can be used to assign but not altered?
2) Is it possible to do the same for: Stereotypes?
3) Is it possible to do the smae for styles (colors)?



Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to reuse defined elements among projects?
« Reply #3 on: May 21, 2010, 05:18:11 pm »
To protect the shared elements I've found it best to use integration with version control.

Geert