Over 1.091.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and variables.
CAD tip # 8201:
Question
A
The TXT2MTXT command can be used to convert multiple texts to a single Mtext. But if you need to just convert the type of multiple drawing objects from Text to MText - without combining them - you can use the following simple AutoLISP code.
Save it to txt1mtxt.lsp, load it with APPLOAD and start the TXT1MTXT command:
; CADstudio TXT1MTXT - text to mtext (individual) (defun c:txt1mtxt (/ ss lst x) (setvar "CMDECHO" 0) (command "_undo" "_begin") (setq ss (ssget '((0 . "TEXT")))) (setq lst (vl-remove-if 'listp (mapcar 'cadr (ssnamex ss)))) (mapcar '(lambda (x) (command "txt2mtxt" x "")) lst) (command "_undo" "_end") (setvar "CMDECHO" 1) (princ) )
ACAD


10.9.2011
19025×
applies to: AutoCAD ·