Part Properties through drawing

Does anyone know how to access custom properties of a partthrough a drawing?

I am writing some code which runs on a drawing but I also need toaccess some of the properties of the part/assembly that itreferences.

Any ideas?

ThanksSolidworksApi macros