Smart Text - Insert point dependent text

Is there a way to associate smart text with dependent points so as objects move so does the text?

i.e slope text to a line at the middle of a segment. As you move an end, the text moves as well.