In some cases we need to defined a dimension like attached figure below

in this case, the only way to defined the dimension from a strait line to the extension of to intersecting lined by creating a new sketch to defined that.
I hope to create this automatically be selecting the two intersecting lines to get the intersect point, after that select the strait line to defined the dimension.