Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
I am trying to make a filter but something is wrong. Could you help me please?
(defun C:FT (/ ent) (while (setq ent (nentsel "\n ** Select Text, Mtext, Attribut or <exit>: **")) (progn (cond ((eq (cdr (assoc 0 (entget (car ent)))) "TEXT") (command "_textedit" ent) );eq ((eq (cdr (assoc 0 (entget (car ent)))) "MTEXT") (command "_mtedit" ent) );eq ((eq (and (cdr (assoc 0 (entget (car ent)))) "ATTRIB") (= "A" (cdr (assoc 2 ent))) ;<------I think the problem is here. I am trying to filter an attribute tag A );and (command "_attipedit" ent) );eq ((eq (and (cdr (assoc 0 (entget (car ent)))) "ATTRIB") (= "G02" (cdr (assoc 2 ent))) ;<-------And here. I am trying to filter an attribute tag G02 );and (command "_attedit" ent) );eq );cond );progn );while );defun
Thanks
Marcelo
Solved! Go to Solution.