| 对于这个想法,先生,我也更喜欢列表法 我的尝试有点不同
 
 子功能
 
 http://www.cadtutor.net/forum/showthread.php?89739-Format-MTEXT-with-Numbered-List(defun [color="blue"]mtxno[/color] (p $ lst / i doc wid num str) ;hanhphuc 2014 (setq        i   0doc (vlax-get-acad-object)wd (*(apply '+(mapcar ''((x) (apply x (mapcar 'strlen (cons $ lst)) ) )'(min max))) (getvar "textsize") 0.5)) ;_ end of setq (repeat (length lst) (setq num (cons (itoa (setq i (1+ i))) num))) (vla-AddMText   (foreach x '(ActiveDocument ActiveLayout Block) (setq doc (vlax-get doc x))) ;_ end of foreach   (vlax-3d-point p)   wd   (foreach x '((mapcar ''((a b) (strcat a ".\t" b "\\P")) (reverse num) lst)         (cons          (strcat $ "\\P\\pxi-"           (rtos wd 2 1) ",l"           (rtos (/ wd 8.) 2 1) ",t"           (rtos wd 2 1) ";")          str          )         ([color="blue"]vl-string-right-trim[/color] "\\P" (apply 'strcat str))          )     (setq str (eval x))     ) ;_ end of foreach   ) ;_ end of vla-AddMText ) ;_ end of defun
 
比尔的例子 
([color=“blue”]mtxno'(0.0.0。)                        ; |