Book a Demo

Author Topic: Import "packaging components" using a CSV file  (Read 3549 times)

pajorelo

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Import "packaging components" using a CSV file
« on: July 19, 2010, 08:46:01 pm »
I'm trying to import elements using a CSV file but I'm not been able to import an element of type "Packaging Component". I already imported Package and Component elements but I don't know which type should I put in the CSV file in order to import an element of type "Packaging Component".

Does anyone know how to do it?

Thanks in advance.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Import "packaging components" using a CSV file
« Reply #1 on: July 20, 2010, 11:50:40 am »
Hi!

Create a packaging component in the model and see what the t_object table contains.  That should provide the information you need.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

pajorelo

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Import "packaging components" using a CSV file
« Reply #2 on: July 20, 2010, 09:33:00 pm »
Thank you so much for your tip.

The problem is that the Type for a Package and for a Packaging Component is exactly the same: Package.

But using your tip about the t_object table I built a custom search that allowed me to find the single difference between a Package and a Packaging Component which is the field NType. A Package has NType=0 and a Packaging Component has NType=20.

Now the issue is how to set the attribute NType in a CSV import file because the NType attribute (or something similar) is not available in the CSV Import/Export Specification fields' list.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Import "packaging components" using a CSV file
« Reply #3 on: July 20, 2010, 10:16:00 pm »
Pajorelo,

If I were you I would quickly write my own import tool.
You can you the excel vba import tool I've published on the community site as a basis.

Geert

pajorelo

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Import "packaging components" using a CSV file
« Reply #4 on: July 21, 2010, 12:14:14 am »
Thanks Geert.

Unfortunately I don't have download access to the file or any file of the scripts session for that matter.

Do you know how can I get access?

pajorelo

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Import "packaging components" using a CSV file
« Reply #5 on: July 21, 2010, 03:36:29 am »
You'll need to create an (community site) account to access the community resources.

Geert