rectangle around annotation text

 From:  pressure (PEER)
11125.1 
I'm trying to draw a rectangle around some text with some padding. I tried the textbox outline = rect at first because that seemed perfect, but there aren't any snaps on the rectangle shape so I can't do very much with it.

I want annotation text specifically so that I can edit it and also so that it gets exported to SVG etc. as filled.

How can I get the bounding box of some annotation text scaled by model units? I tried the command boundingBox and that gives an empty result. I also tried all of the bounding box script methods and properties and get a box of size 0 from all.

Is there something like an optional parameter that I can pass to one of the bounding box script methods to get it to include annotation text?

- Peer