How to add the dimension

When i insert the view from relative command in drawing, after that i apply the dimension with reference to line is not selected, Please help me out .

SolidworksDrawings And Detailing