Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

devitg
en respuesta a: Kent1Cooper

@Kent1Cooper , hi Kent , what about I want the text to fill the rectangle .

I try with this code 

 

 (setq rect-heigth  ( * (distance pt1 pt2) (sin (angle pt1 pt2))))
(setq text-height (*  0.80 rect-heigth))
(setq text-obj (vlax-ename->vla-object  (entlast)))
(vla-put-Height text-obj text-height)

But it exceed the rectangle wide . I test with 0.80 the rectangle height , but it depend from the how much  characters   has te text .  

Thanks in advance