Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: naxx on September 12, 2016, 08:12:47 pm

Title: EA generated GUIDs
Post by: naxx on September 12, 2016, 08:12:47 pm
Hello,

Can you tell me, if exists some rules according to Enterprise Architect generated element´s GUID?

Thanks for your answers.
Title: Re: EA generated GUIDs
Post by: Geert Bellekens on September 12, 2016, 08:54:24 pm
any standard GUID will do

Geert
Title: Re: EA generated GUIDs
Post by: qwerty on September 12, 2016, 11:29:43 pm
GUIDs of packages and their element pendant are identically. There is another quirk where the GUID contains context information (somewhere with parameters??, TVs?? or so) but the details slipped my mind. But else you can use any GUID generator as Geert said.

q.
Title: Re: EA generated GUIDs
Post by: Uffe on September 13, 2016, 06:00:47 pm
In terms of format, I think they all need to be brace-enclosed, hyphen-separated 8-4-4-4-12 groups ("B" format in .NET Guid.ToString() (https://msdn.microsoft.com/en-us/library/97af8hh4(v=vs.110).aspx)).

So if you're using a GUID generator, go with one that can deliver that format.

/Uffe