How to link extrusion height to sketch distance...

Hi,

How would you link an extrusion height or angle to something already specified in the part drawing or another part?

thank you

SolidworksParts And Features