Automatic dimension with a link

I think this may solve your problem: