You can draw the line, click it and hold option + shift and drag it over till you have the spacing you want. After you let go hold command + D and it will repeat what you just did over and over till you let go. As for filling it in a rectangle I'd just use a mask.