Book a Demo

Author Topic: Automatic addition of ea_guid  (Read 4587 times)

John Brand

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Automatic addition of ea_guid
« on: August 03, 2010, 11:58:59 pm »
I see Geert talks of entering classes from EXCEL. Surely these classes are then added without an ea_guid? Is it possible to add bulk quantity of classes from ACCESS, or through SQL etc., but outside EA into EA and to somehow allocate an ea_guid?

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Automatic addition of ea_guid
« Reply #1 on: August 04, 2010, 12:49:48 am »
If you connect to EA via the Automation Interface (AI), EA will allocate the GUID for you when you store the item.

That's what Geert is talking about when he mentions using Excel.

If you wish to add GUIDs without the AI it can get quite complicated.  It depends on what facilities you have in the access method you choose.

I've done it from Access but it is not for the faint hearted and involves creating a table which generates the GUIDs for you and some serious action queries.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Automatic addition of ea_guid
« Reply #2 on: August 04, 2010, 08:23:07 am »
Also, adding element from Excel may refer to CSV import.  This will automatically generate guids if they aren't specified or don't match the format expected by EA.
« Last Edit: August 04, 2010, 08:23:25 am by simonm »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automatic addition of ea_guid
« Reply #3 on: August 04, 2010, 03:31:19 pm »
John,

When you are talking "bulk", what numbers are you thinking about?.
The excel importer I wrote will import a few thousand classes/attributes in a matter of minutes.

And since it uses the API the ea_guid's (and all other imported fields that you might not think about) are filled in.

Of course adding classes/attributes to the database directly is possible, but unless you have a very good reason to do so I would stick with the API.

Geert

John Brand

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Re: Automatic addition of ea_guid
« Reply #4 on: August 05, 2010, 06:43:46 pm »
Thanks for replies - loading tables (class) through ODBC (approx. 1 - 2 K) and copying as entities (different type of class) through form, sql or script. Will test it and come back next week. Thanks again.

John Brand

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Re: Automatic addition of ea_guid
« Reply #5 on: September 29, 2010, 11:21:27 pm »
Sorry for delay in replying; it worked and thanks again. :)