Physical length of text?

Physical length of text?

Anonymous
Not applicable
197 Views
3 Replies
Message 1 of 4

Physical length of text?

Anonymous
Not applicable
Does anyone know how I can get the physical length of a text entity? What I
want to do is compare the text against a specific length and then adjust the
width factor is to make it fit. I don't want to use fit text because if the
length is less than the compare length I don't want to change the width
factor.

--

Dave Gardner
0 Likes
198 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
In lisp it's as easy as

(caadr (textbox (entget ename)))

Assuming ename is corresponds to a text entity.

David M. Gardner wrote in message ...
>Does anyone know how I can get the physical length of a text entity? What I
>want to do is compare the text against a specific length and then adjust the
>width factor is to make it fit. I don't want to use fit text because if the
>length is less than the compare length I don't want to change the width
>factor.
>
>--
>
>Dave Gardner
0 Likes
Message 3 of 4

Anonymous
Not applicable
There's always GetBoundingBox (with all the usual caveats).

--
http://www.acadx.com
"Thank goodness! I thought my boots were cracked."

"David M. Gardner" wrote in message
news:FEC33897FE5C8BA935C3B717A190E938@in.WebX.maYIadrTaRb...
> Does anyone know how I can get the physical length of a text entity? What I
> want to do is compare the text against a specific length and then adjust the
> width factor is to make it fit. I don't want to use fit text because if the
> length is less than the compare length I don't want to change the width
> factor.
>
> --
>
> Dave Gardner
>
0 Likes
Message 4 of 4

Anonymous
Not applicable
What about VBA? I don't know lisp. Can I pass an entity that was just
created by VBA to lisp and return that lisp function?

--

Dave Gardner
"Michael Puckett" wrote in message
news:3FC580221FBF37D70D421A9808CB63D7@in.WebX.maYIadrTaRb...
> In lisp it's as easy as
>
> (caadr (textbox (entget ename)))
>
> Assuming ename is corresponds to a text entity.
>
> David M. Gardner wrote in message ...
> >Does anyone know how I can get the physical length of a text entity?
What I
> >want to do is compare the text against a specific length and then adjust
the
> >width factor is to make it fit. I don't want to use fit text because if
the
> >length is less than the compare length I don't want to change the width
> >factor.
> >
> >--
> >
> >Dave Gardner
>
0 Likes