Book a Demo

Author Topic: Importing data into Sparx  (Read 4310 times)

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Importing data into Sparx
« on: July 02, 2014, 10:46:58 am »
I have just started looking to import our data into EA Sparx using the Model Import/Export function.

Importing of stereotypes based on Element metaclasses has proven to be pretty simple.

However, when I tried to import stereotypes based on Connector metaclasses, this is where I came unstuck.

Connectors don't appear in the project browser making it pretty well impossible to specify a file specification for them.

I'm not sure if this is because it is not possible to import connectors in this manner or that I am just missing something.

I tried exporting the package as an XMI file to see if I could manipulate that and then re-import. However, I decided that is definitely "Plan B" as the format is both verbose and complicated.

Is this something that can only be reasonably achieved using scripting?
If so, does anyone have a script they can paste here that does something similar?

I've not done scripting in Sparx before, although I am in the process of buying qwerty's book on it.

Thanks in advance

Jays  :)

Sam Courtney

  • EA User
  • **
  • Posts: 58
  • Karma: +1/-0
    • View Profile
Re: Importing data into Sparx
« Reply #1 on: July 02, 2014, 11:01:05 am »
We have built a model import adapter based on csv format to help import and export content into EA. If you are interested in looking into this further, please send me a private msg and I'll get you access to our adapter. There are some known limitations in the import/export of models for EA.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Importing data into Sparx
« Reply #2 on: July 02, 2014, 04:23:50 pm »
Jayson,

Importing connectors via scripting really isn't that difficult or complicated.
You could start with the Simple Excel Importer I published a while ago.
With that Excel file you can currently import classes, attributes and the glossary. It shouldn't be too hard to extend that to import connectors as well.

Geert