Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: McMannus on July 16, 2014, 05:50:21 pm

Title: RefGUIDList Tagged Values inconsistency after copy
Post by: McMannus 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?
Title: Re: RefGUIDList Tagged Values inconsistency after
Post by: Helmut Ortmann 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
Title: Re: RefGUIDList Tagged Values inconsistency after
Post by: KP 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.