Converting a Capella Project into a Capella Library ? Tranfert éléments from a project to another one

Is there something new about converting a Capella Project into a Capella Library ?

PS: I can’t acces the link in the previous discussion.

In fact my initial goal was the need to transfert éléments from a CAPELLA project to another one. I had the idea of transfering the elements in a library with REC/RPL tool, but the REC done in the project in not accessible in the library (usually it works in the opposite direction, so the new idea is to convert the project into a library to be in the good direction).

May be there is a simple solution to transfert elements from a project to another?

Thanks for your answer
Regards

Hi,

You can try the “Transfer” view to move some elements from a Project to a referenced Library.

see TransferView

Philippe

Hi,

To convert a Capella Project to Capella Library :

  • Open the “.project” file and replace “org.polarsys.capella.project.nature” by “org.polarsys.capella.library.nature”;

  • Open the “.melodymodeller” (before Capella 5.0) or “.capella” (since Capella 5.0) file and replace “org.polarsys.capella.core.data.capellamodeller:Project” by “org.polarsys.capella.core.data.capellamodeller:Library”;

Note: With a reverse approach you can convert Library to Project.

Valery

2 Likes

Hi, thanks for your usefull answers.
Bests regards

I tried, but it seems not work for me in Capella 6.0.

1 Like

Still works in Capella 6.0

Yes, It works on my following cases.

Something that caught me out, in the .melodymodeller file (for Capella 1.4.2), there is a org.polarsys.capella.core.data.capellamodeller:Project both at the top and the bottom of the file. Originally I only replaced the one at the top and the model failed to load the model structure. After going back and looking and replacing the second one, the model worked once again.

So watch out for both!