merging of vertex and curves only for a certain volume

Dear all,

For merging two entities we use

merge vertex 1 2
merge curve 1 2

However, I have 2 contacting surfaces between two different volume. These volumes have multiple vertices and curves which are merge-able. When I do merge all, it also merges the contact surface. I could switch merge off for those two surface but I am interested to know if there is a method just to merge all the curves and vertex in a single volume like

merge vertex all in volume 1

merge curve all in volume 1

is there a command for that?

regards

You are real close. Here is an example

reset
brick x 1
vol 1 copy move x 1
merge curve in volume all

You can also use

merge vertex in volume all