Importing Table Definitions from a Spreadsheet

577 views
Skip to first unread message

Colley@localhost Duane Colley

unread,
Oct 8, 2014, 10:45:32 AM10/8/14
to sparx-enterprise-archite...@googlegroups.com
Hi All

Using EA 10, is there a way to mass import table/column definitions into a Data Model Diagram from a spreadsheet.  Database doesn't exist yet.

Spreadsheet would be typical layout.
table name, column name, type, precision, scale.

Thanks.

[original message]

qwerty

unread,
Oct 8, 2014, 1:15:10 PM10/8/14
to sparx-enterprise-archite...@googlegroups.com
A couple of ways: a) use the VB/Java script that comes with EA and adapt it. b) use Geerts importer. c) Use eaDocx.

q.

[original message]

B@localhost Aaron B

unread,
Oct 8, 2014, 8:06:03 PM10/8/14
to sparx-enterprise-archite...@googlegroups.com
RE: using scripting to import CSV (option 'a' mentioned by qwerty) -

Enterprise Architect includes scripting libraries to assist with writing your own custom CSV Import/Export functions using EA's automation and scripting interface.  These libraries allow much greater control over CSV import/export (E.g. import/export of attributes, operations, connectors, etc).  Scripting is available in EA Corporate edition or higher. See the "Scripting" topic in EA help for details. The CSV scripting library can be found under Tools | Scripting > EAScriptLib > JScript-CSV.

You can find some import and export script examples on the following pages:
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1396310555/0#1
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1396913036/0#1

[original message]

Bellekens@localhost Geert Bellekens

unread,
Oct 9, 2014, 2:35:59 AM10/9/14
to sparx-enterprise-archite...@googlegroups.com
For option b) see Simple VBA Excel to EA importer V3 (http://bellekens.com/2013/04/30/simple-vba-excel-to-ea-importer-v3/)

It works out of the box for table name, column name and column type.
You'll have to adapt the VBA code a bit to include precision and scale, but that should be less then two hours of work.

Geert

[original message]

Bellekens@localhost Geert Bellekens

unread,
Oct 9, 2014, 2:36:49 AM10/9/14
to sparx-enterprise-archite...@googlegroups.com
So now we just need a reply from Ian about option C  ;D

Geert

[original message]

Mitchell@localhost Ian Mitchell

unread,
Oct 9, 2014, 5:45:38 AM10/9/14
to sparx-enterprise-archite...@googlegroups.com
Oh - so I'm allowed to answer a question with 'use eaDocX' am I?  ;)
Normally I get abuse when I do that :)
Geert's right - I can also be done - bi-directionally - with the Excel support in eaDocX.

[original message]

qwerty

unread,
Oct 9, 2014, 7:06:25 AM10/9/14
to sparx-enterprise-archite...@googlegroups.com

58505F545C58455259545D5D310 wrote:
- I can also be done -

Well done ;D

q.

[original message]

Ron Sonntag

unread,
Aug 15, 2017, 1:40:54 PM8/15/17
to Sparx Enterprise Architect General, sparx-enterprise-archite...@googlegroups.com
None of your links below work any longer.
Reply all
Reply to author
Forward
0 new messages