Entmod fonction

Discussion in 'AutoCAD' started by MarcelGoulet, Dec 16, 2003.

  1. MarcelGoulet

    MarcelGoulet Guest

    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
     
    MarcelGoulet, Dec 16, 2003
    #1
  2. MarcelGoulet

    zeha Guest

    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.")
    )
     
    zeha, Dec 16, 2003
    #2
  3. MarcelGoulet

    MarcelGoulet Guest

    It doesn't work !

    Thanks anyway
     
    MarcelGoulet, Dec 16, 2003
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.