get a part or drawing custom property from assmbly

While writing code for an assembly, I want to extract  a custom property from all parts or drawings associated with the assembly - in the other words,  to extract a custom property from a path + file name (not from active document)?

is there any function call for this?

Thank you

SolidworksApi macros