dimensioning profiles

Hi,

is there a way to dimension profiles as shown below (automatically)? If I write x40x2 by hand the dimensions will not update if I change profile, so it would need to stay linked.

60x40x2, meaning dimensioned = 60, not visibile = 40, thickness = 2

also assuming it was a pipe it would be 60x2

Another way could be having something like thread callout, so it would write profile name to secondary dimension... ?

SolidworksDrawings And Detailing