Author Topic: RefGUIDList Tagged Values inconsistency after copy  (Read 3676 times)

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
RefGUIDList Tagged Values inconsistency after copy
« on: July 16, 2014, 05:50:21 pm »
Hi all,

the problem:

Some elements have tagged values with the predefined RefGUIDList type. As soon as the package is copied and pasted, the copied elements have new GUIDs, but unfortunately, this is not reflected in the tagged values, which causes the model to be incosistent.

Any thoughts on avoiding manual update of tagged values in this case?

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: RefGUIDList Tagged Values inconsistency after
« Reply #1 on: July 16, 2014, 06:49:19 pm »
Hi,

I didn't catch it.

The copied elements have new GUIDs. That's ok and there is now way around it.

What's with the tagged values (type RefGUIDList)? They should be copied without change.  

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: RefGUIDList Tagged Values inconsistency after
« Reply #2 on: July 17, 2014, 09:53:45 am »
I've just done a quick experiment. Package P has classes A and B, A has RefGUID tagged value that references B. Copy and paste P (Ctrl+C, Ctrl+V) and the copy of A has a tagged value that points to the copy of B.

However, if you select A and B on a diagram and Ctrl+Drag to copy both elements, new A's tagged value still points to the old B.

So I think the answer is it depends how you make the copies. The first method is atomic, the second isn't.
The Sparx Team
[email protected]