Book a Demo

Author Topic: CSV import Issue for Class diagram  (Read 3602 times)

megzari

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
CSV import Issue for Class diagram
« on: December 31, 2013, 10:57:58 pm »
Hello,

I have an excel file (or csv file) with this structure (for example):

Package;Class;Class Stereotype;Attribut;Stereotype Attribut;type
Package1;Class11;bz;Attribut11;pk;string
;;;Attribut12;pk;string
;;;Attribut13;fk;long
;;;Attribut14;;date
;Class12;bz;Attribut21;pk;string
;;;Attribut22;pk;string
;;;Attribut23;fk;hexBinary
;;;Attribut24;;integer
Package2;Class21;bz;Attribut211;pk;string
;;;Attribut212;pk;string
;;;Attribut213;fk;long
;;;Attribut214;;date
;Class22;bz;Attribut221;pk;string
;;;Attribut222;pk;string
;;;Attribut223;fk;hexBinary
;;;Attribut224;;integer

How we could generate 2 EAP with 2 class diagrams as bellow in EA10? I have not been able to do with CSV import!
If it’s possible with CSV import could you please explain me how we do it step by step?


Diagram1.EAP contains

Package1, class11 and class12 (with attributs, types and stereotypes)


Diagram2.EAP contains

 Package2, class21 and class22 (with attributs, types and stereotypes)


Thank you for your response.

Best regards,

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: CSV import Issue for Class diagram
« Reply #1 on: January 02, 2014, 09:21:16 am »
The built-in CSV import doesn't import attributes.

Various people have done it using automation, you should be able to find something by searching.

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: CSV import Issue for Class diagram
« Reply #2 on: January 02, 2014, 03:40:58 pm »
See the Community site entry for an Excel VBA script to import elements and attributes into EA:
http://community.sparxsystems.com/community-resources/488-simple-vba-excel-to-ea-importer
(Courtesy of Geert).