Author Topic: Transferring EA projects into a single one incl. images  (Read 2578 times)

Guillaume

  • EA User
  • **
  • Posts: 777
  • Karma: +22/-0
    • View Profile
    • www.umlchannel.com
Transferring EA projects into a single one incl. images
« on: September 13, 2016, 08:16:54 pm »
Hi,

I have several EA Projects that were all duplicated by a team from the same empty/base project. I need to copy each project's model root into a central new EA project.
As all projects have GUIDs in common, I have to strip GUIDs when importing into my new project (I use the XMI Model export/import).

My issue is that I'm losing associations with images. Even when I run an export/import reference data of the model images, it doesn't solve my issue.

Is there any workaround available?

Thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 10504
  • Karma: +232/-190
  • I'm no guru at all
    • View Profile
Re: Transferring EA projects into a single one incl. images
« Reply #1 on: September 13, 2016, 08:29:15 pm »
That's not easy in many respects.

Loosing the image relation can only be solved by diving deep into EA's internals. So you have to move over the images and change the primary keys to be uniques and then to alter the references. This is a lot of work and probably best to have a manual re-work. I always try to restrict the use of those non-UML thingies (for good reason).

When you strip GUID you make elements that are meant to be the same different. What you would need is a merge mechanism. Again something you will not find ready packed.

Your major issue is that you started this un-synched development in first place. Don't put the horse behind the carriage.

q.

Guillaume

  • EA User
  • **
  • Posts: 777
  • Karma: +22/-0
    • View Profile
    • www.umlchannel.com
Re: Transferring EA projects into a single one incl. images
« Reply #2 on: September 13, 2016, 11:55:55 pm »
Thanks Q for your feedback.
These EA projects were set up this way years ago and this is a one off consolidation task so I'm running it manually (I don't see in this instance useful to investigate in a script)

Guillaume
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 10504
  • Karma: +232/-190
  • I'm no guru at all
    • View Profile
Re: Transferring EA projects into a single one incl. images
« Reply #3 on: September 14, 2016, 12:07:35 am »
Prepare for a lot of work :-/ I guess the best approach is to name one repository the master and have an integration team getting from the different other repos what's needed manually.

q.

PeterHeintz

  • EA User
  • **
  • Posts: 812
  • Karma: +47/-17
    • View Profile
Re: Transferring EA projects into a single one incl. images
« Reply #4 on: September 14, 2016, 12:48:07 am »
Hi Guillaume,
just an idea maybe worth to try out.
I assume when you use one project and copy the entire content within that project your copy still has the right images.
Once you delete the original content, you may be able to import the project without strip GUID. By copying and deleting for each project you maybe save your images.
Best regards,

Peter Heintz

qwerty

  • EA Guru
  • *****
  • Posts: 10504
  • Karma: +232/-190
  • I'm no guru at all
    • View Profile
Re: Transferring EA projects into a single one incl. images
« Reply #5 on: September 14, 2016, 01:34:09 am »
That will work with a single copy, but not with multiple sources, I guess.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6789
  • Karma: +63/-6
    • View Profile
Re: Transferring EA projects into a single one incl. images
« Reply #6 on: September 14, 2016, 08:38:01 am »
XMI export can include the alternate images.

There's a checkbox on the XML specifications page of the user options. 'Export Alternate Images'.

With that enabled, export all the packages you want from whatever sources and import them into the target model.
Eve

support@sparxsystems.com

Uffe

  • EA Practitioner
  • ***
  • Posts: 1274
  • Karma: +93/-8
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Transferring EA projects into a single one incl. images
« Reply #7 on: September 14, 2016, 08:37:30 pm »
That is Useful Information (TM).

Out of interest, if I have used the same alternate image in multiple elements, does EA retain that information in the XMI file?

Or will importing the XMI result in a number of duplicates in the image library?

/Uffe
My theories are always correct, just apply them to the right reality.

qwerty

  • EA Guru
  • *****
  • Posts: 10504
  • Karma: +232/-190
  • I'm no guru at all
    • View Profile
Re: Transferring EA projects into a single one incl. images
« Reply #8 on: September 14, 2016, 09:20:51 pm »
My tests show that EA recognizes existing pictures (and not by their name, but by their content). Very smart, that. Hats off!

q.