how to take the field quantity from a BOM in an assembly?

I want to write a note in the drawing of a part with the quantity of the component that is included into an assembly.

the name of drawingi want to write a note with the quantity: PIPPO-01.slddrw

the name of part: PIPPO-01.1.sldprt

the name of assembly: PIPPO-01.1.sldasm

it's possible?

a macro?

Thank for your help !

SolidworksApi macros