Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Ian Mitchell on October 28, 2013, 11:12:18 pm
-
Does anyone know of a way to test if two elements, created using the ClonePackage call, are identical i.e. has the clone been changed ?
Clearly, the GUIDs will always be different, so I need to ignore that, but there seems to be an almost limitless depths to checks needed to say whether one has changed: not just basic attribute values (Name, Status), but Attributes & Methods (and all their internal sub-structure e.g. parameters), Tagged value names and values, sub-elements like Constraints.....
There must be an easier way ? Maybe ? (and No, I don't want to create baselines : this is for an element-by-element comparison)
-
Ian,
You probably have to bite the bullet and do a comparison of "everything possible". However, I'd say it's just a question of diligence ;)
q.
-
I'm not aware of one. A few years back (v. 8?) I implemented something along those lines for my then-employer, and ended up traversing the structures. The Modified timestamp is not enough, I know that.
But seeing as both baselines and model audit (maybe even gap analysis?) have this type of function, it seems reasonable to assume there's some sort of clever underlying implementation so it might be worth it to ask (beg) Sparx to open it up in the API.
/Uffe
-
@Sparx - does this function exist internally?
Please can you externalize it ? It would make the CloneProject function REALLY useful....
-
Baseline comparison is always model to XMI with a matching guid.
Auditing there is only a list of changes to that element to work with (not before/after)
I don't think the function is available for export.