Book a Demo

Author Topic: Copy Relations  (Read 4506 times)

progress

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Copy Relations
« on: November 15, 2016, 01:44:05 am »
Hi,

Does anyone know if it is possible to copy relations from one object to another object?
For example we have an application artefact that is used/referenced by serveral other applications.
Then we make a company to create a new version, in this case version 2. Once we want to release Version 2, we would need to move the references from the artefact Version 1 to Version2. Is this possible without having to manually check and duplicate the relations?

Regards



Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Copy Relations
« Reply #1 on: November 15, 2016, 02:35:12 am »
Do you mean copy or move?

In case of copy you'll have to make a new relation using Element.Connectors.AddNew() and copy the details from the original relation.
In case of a move you just have to update the source and/or target ID.

Geert

progress

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Copy Relations
« Reply #2 on: November 15, 2016, 08:08:17 pm »
Hi,

What I meant is the second case "In case of a move you just have to update the source and/or target ID"

I guess there is no way of doing this semi-automatic? In some cases we have a large ammount of links and they are spread over mutiple diagrams.

Regards



qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Copy Relations
« Reply #3 on: November 15, 2016, 09:29:20 pm »
Semi-automatically would mean you have to write a add-in. That's likely possible in your case. Just hire Geert ;-)

q.