Hello @ Romée
As rightly points out @stefbeno you risk losing your constraints.
But normally with the "replace components" function, if it can't find the face in the asm, it offers you either to isolate it or to select the missing faces.
This feature doesn't care if it's volume, sheet metal, or soft caramel. He considers a part with constraints and that's all that already simplifies the problem a little.
I did a mini test with Three Constraints (see the attached PDF for better readability)
-Face
-Parallel
-Coaxial
Part 1 is a sheet metal part
Piece 3 is a volume piece.
I selectively replaced only one of the two parts N°1 part that I replaced with a N°3.
It works, but only if you clearly identify the order of the constraints of the part to be changed for each ASM (here the 1 changed to 3)
Indeed, the "replace components" function has its own logic, which means that you should not choose the proposed order but the one that allows you to align as you want.
Otherwise, it doesn't always align the constraints correctly.
Obviously it all depends on the number of constraints you have on this part (here I only have three and they are simple constraints).
The key is to know if it is easier to insert the component by hand and do the constraints by hand or to use the "replace components" function because the constraints are sometimes scattered in the creation tree, especially if they are different ASMs.
(( By the way I think that because from one asm to another the constraints will not be in the same place, it probably makes the use of a macro difficult or even impossible but I'm a marble in macro))
The "replace components" function makes you work hard but you have to understand how the replacement of constraints works that it does not find on its own.
On the other hand, for the multiple ASMs in which the part is located, nothing except to change all the active ASMs by hand and leave the old ASMs aside, but that's you who know;-)
Here is a possible answer ;-)
Kind regards
remplacement_dans_asm.pdf