Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: safanth 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
-
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
-
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)?
-
To protect the shared elements I've found it best to use integration with version control.
Geert