Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: EA_enthusiast 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
-
Hi Mo,
Unfortunately yes. You can't export attributes or operations to CSV, nor indeed connectors.
/Uffe
-
Thank you, Uffe for your response.
It's unfortunate that exporting attributes or operations to CSV is not possible :(
-
...
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.
-
Another alternative is to write an SQL search that returns attributes, and then export the results to CSV.
Geert