Part dimensions in bom

Is there a way to get the dimension of parts in bom automatically?