Author Topic: Import of many objects in a structure  (Read 3058 times)

ADucci

  • EA Novice
  • *
  • Posts: 16
  • Karma: +1/-0
    • View Profile
Import of many objects in a structure
« on: August 17, 2012, 10:17:22 pm »
Hi.. I am trying to import a Hierarchy of Classes into EA.. i have looked at the XMI import and that would work if i could generate the XMI structure, however all i have is a Spreadsheet with data as follows:
-car (attributes)
   -door (attributes)
      -handle (attributes)
      -lock (attributes)
   -engine (attributes)
      -starter (attributes)
      ...
I tried the CSV import, and that works, however i would like to have the class hierarchy defined by the import also...
any ideas?

Paulus

  • EA User
  • **
  • Posts: 152
  • Karma: +0/-0
    • View Profile
Re: Import of many objects in a structure
« Reply #1 on: August 17, 2012, 10:31:58 pm »
take a look at the CVS importer  by Geert Bellekens on the community site:
http://community.sparxsystems.com/resources/scripts/simple-vba-excel-ea-importer
« Last Edit: August 17, 2012, 10:33:41 pm by pmaessen »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Import of many objects in a structure
« Reply #2 on: August 17, 2012, 11:39:25 pm »
You'll still need to tweak the code a bit to get it to do exactly what you need.

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