Go to Tools, Options, Document Properties, Detailing.
Under 'Auto insert on view creation' ensure that 'Dimensions marked for drawing is selected'. This will automatically put a dimension in for the extrusion length when you create the correct view.
(This is in SW 2004)
Roller1