How to copy Custom properties value

hi,

I used this code.

HeatTreatment = Part.CopyCustomInfo2 "", "HeatTreatment", swCustomInfoText  --> error

any example for above code.

SolidworksApi macros