Measures a specified text object, and returns the diagonal coordinates of a box that encloses the text
(textbox elist)
Arguments
entget.
An entity definition list defining a text object, in the format returned byIf fields that define text parameters other than the text itself are omitted from elist, the current (or default) settings are used.
textbox is that of the text itself.
The minimum list accepted byReturn Values
nil.
A list of two points, if successful; otherwisetextbox describe the bounding box of the text object as if its insertion point is located at (0,0,0) and its rotation angle is 0. The first list returned is generally the point (0.0 0.0 0.0) unless the text object is oblique or vertical, or it contains letters with descenders (such as g and p). The value of the first point list specifies the offset from the text insertion point to the lower-left corner of the smallest rectangle enclosing the text. The second point list specifies the upper-right corner of that box. Regardless of the orientation of the text being measured, the point list returned always describes the lower-left and upper-right corners of this bounding box.
The points returned byExamples
The following command supplies the text and accepts the current defaults for the remaining parameters:
Command: (textbox '((1 . "Hello world.")))
((0.000124126 -0.00823364 0.0) (3.03623 0.310345 0.0))