Book a Demo

Author Topic: How to merge two instances of the same class  (Read 3258 times)

LHS

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
How to merge two instances of the same class
« on: October 14, 2009, 06:25:11 pm »
Hi.

i have the problem, that i have the same class twice in the project. Both of them are used in various diagrams.

How can i merge them?

Thanks.

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 merge two instances of the same class
« Reply #1 on: October 14, 2009, 06:45:48 pm »
I had the same issue here.
I wrote a small C# tool to replace all usages of one class with the other.
This includes:
- usage on a diagram
- end of a relation
- type of attribute
- type of parameter

If you have specially defined tagged values that reference the GUID of a class you might want to check those too.

Geert

LHS

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: How to merge two instances of the same class
« Reply #2 on: October 16, 2009, 09:35:53 pm »
Your tool works on the XMI-files? My project is in a database.

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 merge two instances of the same class
« Reply #3 on: October 16, 2009, 09:52:02 pm »
No, the tool uses the EA API to do all this.

Geert