editing a custum length

I am modeling a half pipe and I need to import its length to my drawing. the pipe is built from sketch.

I added in the file properties / configuration specific/,  "length" as property name but I  couldn't link its value to a dimension from that sketch or that feature. the only thing I could do is edit it manually. how can I make dynamic to take its value from the sketch ?

Thanks & regards

SolidworksBill Of Materials