Book a Demo

Author Topic: Import or transfer a diagram  (Read 4096 times)

Joseph Shanahan

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Import or transfer a diagram
« on: September 11, 2009, 03:17:25 pm »
I have an EA diagram in a model that I want to transfer to another model. Just the diagram none of the classes. When I use export it wants to export the whole package including classes which I do not want to do because they already exist in the target mode.
How do I do this.

Joseph

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Import or transfer a diagram
« Reply #1 on: September 11, 2009, 03:55:07 pm »
If the elements in your target model have the same guid as the elements of the source model then that should be possible.
I suggest you try putting the diagram in a seperate package, export that package to xmi and try to import it into the target model.

Geert

NeilS

  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: Import or transfer a diagram
« Reply #2 on: September 11, 2009, 06:35:32 pm »
Look at the strip guids checkbox option when you import.

Occasionally I have exported to xmi, imported to a new package stripping the guids and copied what I need from there.




Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Import or transfer a diagram
« Reply #3 on: September 11, 2009, 07:20:49 pm »
Actually stripping the guid's while importing will have the opposite effect.
The elements on the diagram will no longer be resolved to the elements of the target model.
I though Joseph wanted to transfer his diagram referencing existing elements in his target model.

Geert

Joseph Shanahan

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Import or transfer a diagram
« Reply #4 on: September 15, 2009, 09:22:18 am »
Thanks to each of you for your contributions.
What I ended up doing is importing the package and stripping the guids like was suggested. Currently I am importing Sequence diagrams. After import the objects exist with all of the links in place. So then I right click on each of them, the Advanced->Instance Classifier and set the element.
I don't have a lot of experience with EA but it does appear that everything is coming in correctly.

As a footnote.
What we had was a number of models scattered and each of them modeled the same code base. We have consolidated each of them and created a SQL Server database model. We are now in the process of merging all of these disparate models and trying to get everything aligned so that our model accurately reflects our implementation.

Cheers

Joseph Shanahan

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Import or transfer a diagram
« Reply #5 on: September 15, 2009, 03:22:17 pm »
Quote
As a footnote.
What we had was a number of models scattered and each of them modeled the same code base. We have consolidated each of them and created a SQL Server database model. We are now in the process of merging all of these disparate models and trying to get everything aligned so that our model accurately reflects our implementation.

Ouch, good luck with that, rather you than me 8-)

Geert