Match Text LISP routine not working in V12

The text below I am trying to call from a macro button :

The button code is this: 

^c^c_mt (mt because the code below is meant to use a shortcut. 

The lisp file in the support folder is named TEXTMATCH.LSP. 

What am I doing wrong? - Thanks 


(defun c:matchtext (/ cEnt mEnt)

(if (and (setq cEnt (car (nentsel "\nSelect Source Text: ")))
(member (cdr (assoc 0 (entget cEnt)))
'("TEXT" "MTEXT" "ATTRIB")))
(progn
(redraw cEnt 3)
(while (and (setq mEnt (car (nentsel "\nSelect Destination Text: ")))
(member (cdr (assoc 0 (entget mEnt)))
'("TEXT" "MTEXT" "ATTRIB")))
(entmod (subst (assoc 1 (entget cEnt))
(assoc 1 (entget mEnt))
(entget mEnt))))
(redraw cEnt 4))
(princ "\n<!> Incorrect Selection <!>"))
(princ))

Comments

This discussion has been closed.