Glad you got it to work the way you wanted it to. Tim
Hi Gary, I thought this is a great routine, only I'm getting this message after selecting the text ; error: An error has occurred inside the *error* functiontoo many arguments, can you tell me why? Thanks. Josh
Need this function: ;;;by: Peter Jamtgaard 2003 ;;;usage (ARCH:MTLS 0.825) (defun ARCH:MTLS (spght / sset factor cnt) (setq SSET (ssget "x" (list (cons 0 "MTEXT"))) CNT 0) (repeat (sslength SSET) (vla-put-LineSpacingFactor (vlax-ename->vla-object (ssname SSET CNT)) spght) (setq CNT (1+ CNT))) (princ)) Gary
Does Express Tools' "Convert Text to Mtext" not do what you want? Or does this do it in some way that's different or better? If not, the Express Tool should get you away from the error message. [ By the way, there's no such entity type as "Dtext" -- that's just a different means of putting in Text, in a Dynamic way to make it easier to see what you're getting as you type it in. But the things you want to convert to Mtext are not Dtext, they're Text, as you can see from the (ssget) item in the code.] -- Kent Cooper, AIA