Clean up macro idea

Hi you brilliant folks.

I’m wondering if there perhaps exists a macro out there that could help in cleaning up multi body parts. In our workflow before exporting to CNC it would be helpful to eliminate small bodies that don’t serve a function, like leftovers from cutouts when we engrave numbers.

Something like a simple macro that selects the smallest body in a part by volume.

This one’s kinda fun.
SelBodiesBySize.swp (112 KB


)

Thanks Josh. That’s a cool one. Very much what I was looking for.

I was thinking about this one some more… Originally the slider selected or deselected components one-by-one, even though there are multiple identical bodies with the same volume. This update actually groups the bodies so that incrementing the slider by 1 will select all bodies of the next size increment.
SelBodiesBySize.swp (123 KB)

Coincidentally, SW 2026 has this new feature:

Only it doesn’t work as well as the macro above. Select by percent of part size??!

LOL that’s basically exactly the same as the macro! I’m guessing that the “Select Parent Feature” does the same thing as the button on the updated version…