Updating a REC by removing model element(s)

Hello,

I am facing the following issue when I want to update an existing REC and my question is : which mistake did I make?

I created a REC, from PA, with structural parts (1 node and 1 behavior component) and 2 functions allocated to the behavior component.

If I update my REC (right click on the REC->REC/RPL->Update REC->from selection), and remove a function, this function will be deleted in the model (not only the link in the REC)

As a consequence, the only way I have found to remove the function from the REC is to go in the project explorer, in the REC itself, and remove manually the links to the function I want to remove.

Thank you for your help

To update your REC (not the RPL)

  • go to your origin PA / your source of your REC,
  • make your changes (delete the function etc.)
  • select yor model elements → right click on the selection → REC/RPL ->Update REC->from selection.

Have a look in the HELP: Capella Guide → User Manual → Replicable Elements

Thank you for your help.

I want to remove an element in the REC (not in the source, only to modify the REC content)

I checked the documentation once again.
It is explained how to :

  1. update a REC from its source (by adding/removing elements from the model)

  2. update a REC from one of its RPL

  3. doesn’t comply with what I want to do as the model elements are modified/deleted

  4. I still face the same issue : once the DiffMerge view is open, removed elements (those I want to remove in the REC) are highllighted in the right widget. If I select them and select “Apply deletion on the right”, the source elements are also removed.

Sorry, please understand “I want to remove an element in the REC, without modifying the source”

Your REC is referencing the source - do NOT delete it.
Make your changes in the “source”, then update your REC.

For a better management (separation) generate a Capella-Library and generate your source(s) and RECs in the Lib.

Yes the REC is a list of link to model elements.

When you right click on the REC->REC/RPL->Update REC->from selection, remove an element, this element is deleted (in the model) instead of REC link deletion

I created a lib. This lib contains all features I need. My RECs are a catalog of sub-systems. Each REC has a set of features described in my model. If I want to remove a feature from a REC (whatever is the reason), I need to update this REC by removing an element. And here is my issue : it deletes it in the source, not only the links in the REC.

The REC is only an envelope for the source/origin to transport your “feature” into your other models. The source/origin is the master. You should not modify the REC itself.