Entmod fonction

MarcelGoulet

Usenet Archive
Joined
Jul 25, 2003
Messages
34
Reaction score
0
Hi,

I have a drawing with two text style with no name.
When I do (setq ASSOC_LISTE (tblnext "style")), I can find them (2 . ""). I can't purge them or rename them because AutoCAD doesn't see them. Using lisp, how could I delete them or rename them ?
I tried that : (setq ASSOC_LISTE (subst (cons '2 "Correction_1") (assoc 2 ASSOC_LISTE) ASSOC_LISTE)) (entmod ASSOC_LISTE), but it doesn't work.

Thanks
 
Marcel try this
i don't now of it work but try it

(if (setq tblobj (tblobjname "style" ""))
(if (entmod (setq tblobj (entget tblobj) tblobj (subst (cons 2 "new")(assoc 2 tblobj) tblobj))) (alert "Changed. in new") (alert "Wrong.") ) (alert "Noting changed.")
)
 

Member Recommended

Back
Top