Dtext 2 Mtext <selection order>

Discussion in 'AutoCAD' started by GaryDF, Jan 3, 2005.

  1. GaryDF

    T.Willey Guest

    Glad you got it to work the way you wanted it to.

    Tim
     
    T.Willey, Jan 3, 2005
    #21
  2. GaryDF

    Josh Limas Guest

    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
     
    Josh Limas, Jan 10, 2005
    #22
  3. GaryDF

    GaryDF Guest

    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


     
    GaryDF, Jan 10, 2005
    #23
  4. 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


     
    Kent Cooper, AIA, Jan 10, 2005
    #24
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.