How to express D1 at Extrude1 for configuration specific value.

I am trying to link the custom property "Length " with a configured D1 value on an  Extrude feature. In the property summary window I have tried entering ="D1@Extrude1" in the value/Text Expression column but the evaluated value is Just the text "D1@Extrude1" . What am I missing? I am running SW2017

SolidworksApi macros