Erase for entlast

Discussion in 'AutoCAD' started by Adesu, Feb 8, 2005.

  1. Adesu

    Adesu Guest

    My question is easy and stupid question ,more try to do it but not yet
    success,here this code
    (setq p1 (list 0 0 0))
    (setq p2 (list 10 5 0))
    (command "_line" p1 p2 "")
    (setq p3 (entget (entlast)))
    (command "_erase" p3 "")
     
    Adesu, Feb 8, 2005
    #1
  2. Adesu

    Alaspher Guest

    (setq p3 (entlast))
    (command "_erase" p3 "")
    or
    (entdel p3)
     
    Alaspher, Feb 8, 2005
    #2
  3. By way of further explanation of Alaspher's reply --

    What (entget) returns is the association list for an entity, not the entity.
     
    Kent Cooper, AIA, Feb 8, 2005
    #3
  4. Adesu

    Adesu Guest

    Yes ,this perfect,thanks a lot
     
    Adesu, Feb 11, 2005
    #4
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.