Alignment to Feature and Origin Creation

Alignment to Feature and Origin Creation

Is there a tutorial for how to align to a feature such as a "line" and then setting an origin based on the X & Y axis intersection?