Author Topic: Changing all Packaging Components into Components  (Read 3975 times)

adepreter

  • EA User
  • **
  • Posts: 187
  • Karma: +10/-9
    • View Profile
Changing all Packaging Components into Components
« on: January 12, 2012, 10:26:48 pm »
Hello,

In the Sparx UI, when trying to change the value of the "Type" property of a Packaging Component, the system says "this type cannot be changed to another".

Does anybody knows how to automatically change all Packaging Components into Components (wtithout loosing all the relationships)?

Any available code or little app to perform this?

Thanks

Alain

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +568/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Changing all Packaging Components into Compone
« Reply #1 on: January 13, 2012, 12:17:20 am »
You could try to "hack" into the database and change the type there.
No guarantees however as to what will happen.

Geert

adepreter

  • EA User
  • **
  • Posts: 187
  • Karma: +10/-9
    • View Profile
Re: Changing all Packaging Components into Compone
« Reply #2 on: January 13, 2012, 02:30:59 am »
Thank you Geert.

Not sure that would work. In the Sparx repository data model, the Package does not seem to be an Object (No Object ID as secondery key in t_package).

It probably needs to be done by code.

Alain