Problem SwDocumentManager GetCustomProperty2 - How Resolve Value?

Hallo,

I need to get the resolved value of a custom property using SwDocumentManager.

I use this code, but the result is not the resolved value of the property:

Dim MyValue as string

MyValue= swDoc.GetCustomProperty2("PESO",30)

The result i need should be:

19.3 Kg

instead the result is the formula:

"D2@MyWeight@18035-004.SLDPRT" Kg

There is another way to get the result by means of SwDocumentManager

I attach picture to understand my need

Thank

Roberto

SolidworksApi macros