Can I CSV export/import class attributes?

2,874 views
Skip to first unread message

ChuckZ

unread,
Aug 9, 2012, 11:29:00 AM8/9/12
to sparx-enterprise-archite...@googlegroups.com
I have figured out ... fairly quickly how to export/import the names and descriptions of classes and type defs, but I need to update MANY attributes and definitions. Going into each individual attribute is very time consuming.

Is there a way to export attribute data, update it then import the changes? It would be nice if this could be accomplished at the package level.

[original message]

Dermot

unread,
Aug 10, 2012, 12:56:00 AM8/10/12
to sparx-enterprise-archite...@googlegroups.com
There is code for importing Classes and Attributes from a spreadsheet, however I assume this does not synchronise to an existing model.
See: http://community.sparxsystems.com/resources/scripts/simple-vba-excel-ea-importer

One point to note is the diagram edit feature of Attributes (Click on the attribute - press F2), allows editing an Attributes: Scope, Stereotype, Name and Type -see:
http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/modeling_basics/editattributekeywords.html

That might make it simpler than doing an export/import process if those fields are all that needs to be altered.

[original message]

Bellekens@localhost Geert Bellekens

unread,
Aug 10, 2012, 3:00:00 AM8/10/12
to sparx-enterprise-archite...@googlegroups.com

614057484A51250 wrote:
There is code for importing Classes and Attributes from a spreadsheet, however I assume this does not synchronise to an existing model.
See: http://community.sparxsystems.com/resources/scripts/simple-vba-excel-ea-importer

Dermot, you underestimate me :D

It does "synchronise". That is it overwrites existing attributes based on the name of the attribute. It won't delete or rename any attributes.

A (little) bit more info can be found on my blog:
http://geertbellekens.wordpress.com/2012/07/15/simple-vba-excel-to-ea-importer-v2/

Geert

[original message]

Dermot

unread,
Aug 13, 2012, 8:28:00 AM8/13/12
to sparx-enterprise-archite...@googlegroups.com
Thanks for the Update Geert.
Great to hear updating was addressed

[original message]
Reply all
Reply to author
Forward
0 new messages