Book a Demo

Author Topic: Duplicate entities on source import  (Read 3441 times)

florin

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Duplicate entities on source import
« on: November 24, 2010, 09:34:51 pm »
Hi all,

I've imported some source files (c#). I already had some of the files in there already imported. When imported, used the settings: sync existing files.

When importing, it prompted if i want to "set the current package to be a namespace root". Not sure exactly what this implies, and said "yes".

Now I ended having duplicate entities for all the existing classes and there is no option (to my knowledge) to merge the two entities.

Cannot remove all and import as they are already used in different diagrams and also fixing it by hand is not something I am looking for as there are 20-50 classes in a number of diagrams.

Using EA 8.0.861

Thanks,
florin
« Last Edit: November 24, 2010, 09:36:16 pm by florin.daneliuc »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Duplicate entities on source import
« Reply #1 on: November 24, 2010, 11:09:40 pm »
Then I guess there no other option then to revert back to your backup

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Duplicate entities on source import
« Reply #2 on: November 25, 2010, 11:02:05 am »
Usually duplicates are created due to a changed source location, I've dealt with ways to handle this in various posts, but won't go into it here as it doesn't appear to be your core issue.

Using automation you should be able to merge.  The complexity will depend on if there are additional connectors, classifiers etc.

florin

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Duplicate entities on source import
« Reply #3 on: November 25, 2010, 06:48:01 pm »
I'm relatively new to EA, can you please point me to some information on EA automation?

And thanks!
florin

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Duplicate entities on source import
« Reply #4 on: November 25, 2010, 06:58:54 pm »
Florin,

This seems a good place to start:
http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/automation_and_scripts/automation_interface.html

But I must warn you, if you are not familiar with EA and it API then you're going to spend a lot of time trying to merge the two.
I think it will be more cost-effective if you start over  :-/

Geert