Volumes

Can anyone tell me how I can use a 3-D solid part to cutspaceout of a volume in the exact shape of that part (e.g. have amodelof a coffee cup, then somehow cut a coffee cup-shaped volumeout ofa a cube of space and save that volume)?SolidworksGeneral