Book a Demo

Author Topic: Create Multiple elements from Excel sheet  (Read 5349 times)

vladap

  • EA User
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
Create Multiple elements from Excel sheet
« on: April 08, 2020, 09:42:53 pm »
Hi All,

I am looking for a good solution how to create/import multiple elements from a list which I have in the Excel sheet.
I don´t want to create 50 elements one by one if I already have a list of there names in a sheet, I would like to use this list as and input
for creating these lements?

Is there a function for that or do I need to write a JV script?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Create Multiple elements from Excel sheet
« Reply #1 on: April 08, 2020, 09:46:48 pm »
There's a CSV import and a more adanced script in EA's lib. I guess that Geert will chip an and point you to his solution on github ;-)

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Create Multiple elements from Excel sheet
« Reply #2 on: April 08, 2020, 10:36:12 pm »
There's a CSV import and a more adanced script in EA's lib. I guess that Geert will chip an and point you to his solution on github ;-)

q.

I'ts not actually on github, but you can download it for free from my website :)
https://bellekens.com/product/ea-excel-import-export/

But if you only need elements and not attributes or tagged values, you can also use the standard CSV import.

Geert
« Last Edit: April 08, 2020, 11:16:14 pm by Geert Bellekens »

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Create Multiple elements from Excel sheet
« Reply #3 on: April 08, 2020, 11:06:06 pm »
Hello,

If you're on the Ultimate edition there is an Office integration package. There's a free trial as well if you only need to use it once. :)

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

Giu Platania

  • EA User
  • **
  • Posts: 88
  • Karma: +4/-0
  • As Above so Below
    • View Profile
    • Linkedin
Re: Create Multiple elements from Excel sheet
« Reply #4 on: April 08, 2020, 11:20:00 pm »
More and more I use Prolaborate "add elements" to mass create specific elements.

advantages:
1. Prolaborate supports stereotypes, so as long the MDG language is defined you have the proper mask
2. Yo can not only import files (excel and SVS) but also copy paste values
3. It's possible to directly edit values in the mask and save them

Disavantages:
1. you need ProCloudServer and Prolaborate


Hi All,

I am looking for a good solution how to create/import multiple elements from a list which I have in the Excel sheet.
I don´t want to create 50 elements one by one if I already have a list of there names in a sheet, I would like to use this list as and input
for creating these lements?

Is there a function for that or do I need to write a JV script?
Giuseppe Platania
Enterprise Architect
Door Business Consulting
+++
"As above so below, to accomplish the miracles of the One Thing" - Trismegistus
===
The above content reflects my own opinion and is not endorsed by Monthy Python
***
The above is NOT a reference to Monty Python

vladap

  • EA User
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
Re: Create Multiple elements from Excel sheet
« Reply #5 on: April 09, 2020, 01:16:08 am »
ok guys, thanks for the precious advises. I see there is more options. For my case it looks fine to use csv import only  :)

Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: Create Multiple elements from Excel sheet
« Reply #6 on: April 09, 2020, 09:45:07 am »
Hi all.

The simplest way if Excel has only name:
1. Select cells in Excel and press Ctrl+C (cells must be vertical)
2. Ctrl+Right click on the EA diagram background and select 'Create Multiple Elements...'
3. Change 'Type' in the list in the dialog to which you want to create, the click the list to apply the change
4. right-click on the list and select 'Import Names from Clipboard' and press OK button

Not only Excel, but every text is okay at step 1 if the text contains line breaks

HTH,
--
t-kouno