• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD 2010/2011/2012 DWG Format

    Reply
    Active Member
    Posts: 7
    Registered: ‎06-26-2009

    Where did the window go???

    1162 Views, 23 Replies
    03-25-2011 12:37 PM

    Whenever I insert a block with attributes (via lisp), I am missing the attribute edit window. The entry is only done in the command window. ATTDIA is 1. What am I missing?

    Please use plain text.
    *Expert Elite*
    ToanDN
    Posts: 1,839
    Registered: ‎09-26-2006

    Re: Where did the window go???

    03-25-2011 01:57 PM in reply to: dthurston

    ATTREQ = 1

    Please use plain text.
    Mentor
    Steve_Johnson
    Posts: 583
    Registered: ‎05-01-2005

    Re: Where did the window go???

    03-28-2011 01:24 AM in reply to: dthurston

    In recent releases, the attribute dialog box is suppressed when INSERT is called from LISP. You can suppress the prompts with (setvar "ATTREQ" 0) before the insertion, then put ATTREQ back how it was. Then call the dialog box after the fact with (command "_.DDATTE" (entlast)), assuming the insertion was successful.

    Steve Johnson - blog nauseam - ClassicArray
    Please use plain text.
    Active Member
    Posts: 7
    Registered: ‎06-26-2009

    Re: Where did the window go???

    03-28-2011 06:16 AM in reply to: dthurston

    attreq is 1, attdia is 1. several other variables are the same for dialogs and attribute settings... there is something, somewhere that I must be missing...

    Please use plain text.
    Mentor
    Steve_Johnson
    Posts: 583
    Registered: ‎05-01-2005

    Re: Where did the window go???

    03-28-2011 08:25 AM in reply to: dthurston

    Please reread my post.

    Steve Johnson - blog nauseam - ClassicArray
    Please use plain text.
    Active Member
    Posts: 7
    Registered: ‎06-26-2009

    Re: Where did the window go???

    03-28-2011 08:36 AM in reply to: Steve_Johnson

    shouldn't have to add the edit command since it works in 2011 and prior. It's something different with 2012.

     

    I have used SYSVLDG to extract the 2011 and 2012 variables and compared them in excel.

     

    I can't find a variable that would affect this behavior in 2012.

     

    Please use plain text.
    *Expert Elite*
    rkmcswain
    Posts: 1,352
    Registered: ‎11-13-2006

    Re: Where did the window go???

    03-28-2011 10:10 AM in reply to: dthurston

     


    dthurston wrote:

    shouldn't have to add the edit command since it works in 2011 and prior. It's something different with 2012.

     


     

    Maybe they just changed the way it works.

    In the meantime, use this

     

     

    (defun C:foo ()
      (setvar "attreq" 0)
      (vl-cmdf "._insert" "big" (list 0.0 0.0 0.0) 1.0 1.0 0.0)
      (setvar "attreq" 1)
      (vl-cmdf "._DDATTE" (entlast))
    )

     

     

     

     

    Please use plain text.
    Mentor
    Steve_Johnson
    Posts: 583
    Registered: ‎05-01-2005

    Re: Where did the window go???

    03-28-2011 11:24 PM in reply to: dthurston

    I have no idea why this was still working for you in 2011, because I had to code around it quite a few years ago. Can't remember exactly when, but I would say about AutoCAD 2005. Regardless of when it changed and whether it should have, it has changed. The solution proposed by RK and myself will allow you to deal with this change, it's not difficult to do, and it will still work with previous releases if you have that need.

    Steve Johnson - blog nauseam - ClassicArray
    Please use plain text.
    Active Member
    Posts: 7
    Registered: ‎06-26-2009

    Re: Where did the window go???

    03-29-2011 05:17 AM in reply to: Steve_Johnson

    just an FYI. I just installed 2012 on the 25th and copied a couple directories over from 2011. 2011 is still installed also, and the same lisp routines between both versions. 2012 doesn't work correctly, 2011 does.

     

    It is not a problem to create a work-around, but the question still remains, why does -insert work prior to 2012? BUG REPORT!

    Please use plain text.
    Contributor
    Posts: 14
    Registered: ‎08-11-2009

    Re: Where did the window go???

    04-05-2011 04:41 AM in reply to: dthurston

    Same problem here.

    In LISP the command filles the attributes with the next commands in stead of de defaultvars

    Attreq is not a good option

     

    Johan

     

     

     

    Please use plain text.