BoM generation through blocks instead of balloons.

Is there a way to generate the Bill Of Material through the attributes assigned to CAD blocks instead of through balloons?