(setq str (getstring "\nText content to mark: ") basept (getpoint "\nBase point for marking Lines: ") ); setq (if (setq ss (ssget "_X" (list (0 . "TEXT") (cons 1 str) (cons 410 (getvar CTAB))))) (repeat (setq n (sslength ss)); then (entmake (list (0 . "LINE") (cons 10 basept) (cons 11 (cdr (assoc 10 (entget (ssname ss (setq n (1 n))))))) ); list ); entmake ); repeat (alert "No Text found with that content."); else ); if (princ) ); defun _______________________________________________________________________________________ _______________________________________________________________________________________ __________________________ (defun C:MTM (/ str basept ss n); = MText Mark (setq str (getstring "\nText content to mark: ") basept (getpoint "\nBase point for marking Lines: ") ); setq (if (setq ss (ssget "_X" (list (0 . "MTEXT") (cons 1 str) (cons 410 (getvar CTAB))))) (repeat (setq n (sslength ss)); then (entmake (list (0 . "LINE") (cons 10 basept) (cons 11 (cdr (assoc 10 (entget (ssname ss (setq n (1 n))))))) ); list ); entmake ); repeat (alert "No Text found with that content."); else ); if (princ) ); defun _______________________________________________________________________________________ _______________________________________________________________________________________ _____________________________ (defun C:BM (/ str basept ss n); = BLOCK Mark (setq str (getstring "\nText content to mark: ") basept (getpoint "\nBase point for marking Lines: ") ); setq (if (setq ss (ssget "_X" (list (0 . "insert") (cons 2 str) (cons 410 (getvar CTAB))))) (repeat (setq n (sslength ss)); then (entmake (list (0 . "LINE") (cons 10 basept) (cons 11 (cdr (assoc 10 (entget (ssname ss (setq n (1 n))))))) ); list ); entmake Page 1
new text mark
); repeat (alert "No Text found with that content."); else ); if (princ) ); defun _______________________________________________________________________________________ _______________________________________________________________________________________ ________________________