Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Part naming/ID after breaking a part into three pieces

I'm working on a piano-related project. I've modeled all the keys and combined them into a single part by extruding a long block to connect them to each other. I'm then trying to select a particular key based on a variable. I translate the block of keys so that the desired key is aligned to a sketch, then extrude from the sketch to delete part of the bit that connects all the keys. This leaves me with three pieces — the desired key, a block of higher keys, and a block of lower keys. Then I want to delete the two blocks of keys, leaving me with the one I was trying to isolate.
I would think that the three parts that are left after the cut would be the same, regardless of which key I was cutting out. The problem is that they change depending on which key I'm cutting. As a result, when I set it to correctly delete the two blocks of keys for one setting, changing the variable to cut out a different key leaves behind one of the blocks, not the desired key. The three parts after the cut have switched around.
To simplify: Is there a way to make sure that when I cut part 1, the resulting part on the left is now part 1 and the one on the right is part 2?
The first 3 screenshots below show the process working correctly. The second three show the process working incorrectly. The only thing I've changed is the initial translation of the block of keys.
Comments
could you make your document public and share a link here? that will help in better understanding your way of working and figuring out a solution.
perhaps this would work
transform→copy in place the whole keyboard (maybe even twice if you want 3 parts) (this is the most reliable way of knowing what is the original part you may want to keep.
extrude intersect with the original part to provide the key cap
extrude intersect or cut with the copied part (or cut away stuff)
I'm not sure if the "assign identity" FS would help here (https://cad.onshape.com/documents/fcf31e8bc171b06037008400/v/7e1b5b2304e2bd6d9223a41a/e/e076332e1669ea9babcaf65b)… maybe worth a shot.
However I have to ask why you are combining into a single part and later trying to extract a single key from that… This seems like a strange workflow and I suspect there might be a better way of doing what you are trying to achieve but it's hard to tell without knowing what you are trying to do…