Book a Demo

Author Topic: Link a Local Element to an Existing Element  (Read 7795 times)

sjarwah

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Link a Local Element to an Existing Element
« on: June 28, 2019, 12:44:59 am »
Hello,

Is there a way to link a local element on a diagram back to an existing element in other diagrams. This basically the opposit of Advanced-> Convert Linked Element to a Local Copy.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Link a Local Element to an Existing Element
« Reply #1 on: June 28, 2019, 01:04:44 am »
I never used "Advanced-> Convert Linked Element to a Local Copy" and it sounds as if I would never recommend to use it. Creating copies of elements is just not what you want to do when modeling since rather than abstracting you create a zoo of elements. Also UML is not about diagramming. A diagram is a view on the model. Use the model to express what you want.

q.

sjarwah

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Link a Local Element to an Existing Element
« Reply #2 on: June 28, 2019, 01:38:18 am »
Thanks! I agree with you. I am actually looking to reverse the effect of creating local copies and connect the duplicate elements back together. This shouldn't have happened in the first place, but currently there are some duplicate elements in the Models and I am looking at an easy way to identify them and remove duplicates.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Link a Local Element to an Existing Element
« Reply #3 on: June 28, 2019, 04:36:43 am »
You're probably bound to manual work. If the names are also identical you could run a search for all elements and locate each in diagrams by using Ctrl-U (resp. Alt-G to find it in the project browser).

q.

sjarwah

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Link a Local Element to an Existing Element
« Reply #4 on: June 28, 2019, 05:30:14 am »
Thank you! I was afraid I would get this answer ;-) and was hoping for a more automated way to replace the duplicates by the original...

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Link a Local Element to an Existing Element
« Reply #5 on: June 28, 2019, 05:33:37 am »
When it comes to that you need a set of rules to describe the identity. If you have that you can go the scripting way. But most of the time there's only the grey matter that can help :-/

q.