Author Topic: Export attributes to CSV  (Read 6716 times)

EA_enthusiast

  • EA User
  • **
  • Posts: 172
  • Karma: +0/-0
  • I'm a lifelong learner
    • View Profile
Export attributes to CSV
« on: December 28, 2020, 06:45:19 am »
Hello, EA Experts,

I am trying to export a package that includes data types with attributes and stereotypes (shown in the screenshot)

I could not find "Attribute" in the "Available Element Field", does that mean I cannot export attributes to CSV?

https://ibb.co/sJS4kcs

Thank you,
Mo
Thank you to all the contributors who spread their knowledge and experience!

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Export attributes to CSV
« Reply #1 on: December 28, 2020, 09:02:24 am »
Hi Mo,

Unfortunately yes. You can't export attributes or operations to CSV, nor indeed connectors.

/Uffe
My theories are always correct, just apply them to the right reality.

EA_enthusiast

  • EA User
  • **
  • Posts: 172
  • Karma: +0/-0
  • I'm a lifelong learner
    • View Profile
Re: Export attributes to CSV
« Reply #2 on: December 28, 2020, 10:49:05 am »
Thank you, Uffe for your response.

It's unfortunate that exporting attributes or operations to CSV is not possible  :(
Thank you to all the contributors who spread their knowledge and experience!

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1311
  • Karma: +120/-10
  • Its the results that count
    • View Profile
Re: Export attributes to CSV
« Reply #3 on: January 04, 2021, 09:35:50 am »
...
It's unfortunate that exporting attributes or operations to CSV is not possible  :(

Whilst not possible using the CSV Export tool it could be done using scripts. For example  if you look at the script library via Specialise>Tools>Script Library you'll see there are the building blocks for either JScript or VB Script to assist.
In Local scripts you can see how to manage attributes including listing them from "attribute lifecycle example" and in EA Script Library you'll see there is a CSV script for importing and exporting to CSV files.
Once you've got the attributes exported you could use a similar technique to export operations.

Not sure why you want to export to CSV but consider you may not be using the right approach to achieving your goal. Sometimes if you explain why you trying to do something you might be receive a suggestion to do it a better way.
« Last Edit: January 04, 2021, 06:42:23 pm by Sunshine »
Happy to help
:)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13287
  • Karma: +557/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Export attributes to CSV
« Reply #4 on: January 04, 2021, 04:03:53 pm »
Another alternative is to write an SQL search that returns attributes, and then export the results to CSV.

Geert