Editing texts

Discussion in 'AutoCAD' started by fabio_godoi, Feb 21, 2005.

  1. fabio_godoi

    fabio_godoi Guest

    Hello,

    Would like to edit a text in autoCad in the menu text windows, without that the box of I dialogue was opened.

    I intend to make one script and for this reason I have that to modify the text for a command line.

    Tanks ..
     
    fabio_godoi, Feb 21, 2005
    #1
  2. fabio_godoi

    OLD-CADaver Guest

    Something was lost in the translation. Please expand your explanation some.
     
    OLD-CADaver, Feb 21, 2005
    #2
  3. fabio_godoi

    Adesu Guest

    Hi fabio,here my script,you can test it,maybe suitable for you

    ; rt is stand for revised text
    ; Design by Ade Suharna <>
    ; 1 December 2004
    ; Program no. 145/12/2004
    ; Edit by
    (defun c:rt (/ ent info1 opt remtex revtex ed)
    (while
    (setq ent (entget (car (entsel "\nCLICK TEXT FOR EDIT:"))))
    (setq info1 (cdr (assoc 1 ent)))
    (setq opt (getstring T "\nENTER NEW TEXT TO INSERT IT: "))
    (setq remtex (getstring T "\nENTER OLD TEXT TO REMOVE: "))
    (setq revtex (vl-string-subst opt remtex info1))
    (setq ed (subst (cons 1 revtex)(assoc 1 ent) ent))
    (entmod ed)
    )
    (princ)
    )


    that the box of I dialogue was opened.
     
    Adesu, Feb 22, 2005
    #3
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.