Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: ChuckZ on August 10, 2012, 01:29:53 am
-
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.
-
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.
-
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
-
Thanks for the Update Geert.
Great to hear updating was addressed