Book a Demo

Author Topic: Convert Component into Packaging Component  (Read 7640 times)

whizzo

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Convert Component into Packaging Component
« on: May 29, 2012, 07:05:32 pm »
I have a number of components I would like to convert to "packaging Components". Is there a quick way of doing this or do I need to do it the long way - deleting and recreating?

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Convert Component into Packaging Component
« Reply #1 on: May 31, 2012, 02:24:04 pm »
Well that is an interesting question.
I think that there is a feature request/bug request possible here.

The approach I would have taken is to select the component and from the Menu bar choose Element > Advanced > Change Type ...


But, hmmm, there is no "Package component" to change it to.

For orthogonality's sake I tried to convert a package component to a component (or anything really), but you don't even get to first base

Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Convert Component into Packaging Component
« Reply #2 on: May 31, 2012, 05:13:53 pm »
If you look under the hood a component is an object but the packaging component is a package and these are stored in two different tables thus its not as easy as changing a component to say a class.
You could write a javascript program to convert the components to component packaging and copy the relationships. The trick will be identifying which component you want to convert if you didn't want to convert them all. One or two obstacles may be in converting the relationships as not all the relationships for components are valid for component packaging. Another is that you can't attach an interface.

Another option is to create a transformation to transform the components to component packaging.

Well there are a couple of ideas - good luck

« Last Edit: May 31, 2012, 05:16:46 pm by phenzell »
Happy to help
:)

whizzo

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Convert Component into Packaging Component
« Reply #3 on: May 31, 2012, 08:20:31 pm »
Thanks for the constructive replies. I ended up doing the job manually by creating new packaging components - it didn't take too long in the end but I may consider submitting an enhancment request.