Book a Demo

Author Topic: CSV  Export - Hierarchy of elements.  (Read 4482 times)

Christian Lenz Austria

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
CSV  Export - Hierarchy of elements.
« on: November 27, 2014, 03:39:35 am »
Hi there!

I want to get a csv list with all related elements within a diagram.
The elements (classes) are stored in different Project branches.

Can I get all elements within a diagram in a csv-export?

My Approach is to build functional classes with efforts as tagged values (own effort, R&D effort, client's effort).
Next I aggregate these classes to a main class and want to Export the data to a csv list to get the overall effort for different Options of grouping functions together.
« Last Edit: November 27, 2014, 03:39:57 am by ChrisLenz »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: CSV  Export - Hierarchy of elements.
« Reply #1 on: November 27, 2014, 03:41:50 am »
You would need to adapt the CSV export script which is coming with EA. It's not possible to do what you want with the default CSV export.

q.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: CSV  Export - Hierarchy of elements.
« Reply #2 on: November 27, 2014, 09:28:01 am »
The built-in CSV Import/Export specifications feature would not be able to produce the CSV output that you describe, however Enterprise Architect includes scripting libraries to assist with writing your own custom CSV Import/Export functions using EA's automation and scripting interface.  These libraries allow much greater control over CSV import/export (E.g. import/export of attributes, operations, connectors, etc).  Scripting is available in EA Corporate edition or higher. See the "Scripting" topic in EA help for details. The CSV scripting library can be found in the Scripting windows under EAScriptLib > JScript-CSV.

You can find some import and export script examples on the following pages:
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1396310555/0#1
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1396913036/0#1