Automatic dimensioning in SolidWorks
I made a sample tutorial just for you :)
Open your model
Create a drawing
Insert model views that you need
Open smart dimension
Select the autodimension tab in the left menu
Select an edge or a line as central point and watch the magic happen!