Room labels for section cuts

Is there a way to create these room labels in AutoCad, if yes how?

I would create them using the polyline command and create a text in the middle. Use the polar angle for the angled line.
Then copy it over and stretch through the middle area to change its length.