AutoCAD 2010/2011/2012

AutoCAD 2010/2011/2012

Reply
Active Member
dthurston
Posts: 7
Registered: ‎06-26-2009
Message 1 of 24 (1,270 Views)

Where did the window go???

1270 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?

*Expert Elite*
ToanDN
Posts: 1,878
Registered: ‎09-26-2006
Message 2 of 24 (1,250 Views)

Re: Where did the window go???

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

ATTREQ = 1

Mentor
Steve_Johnson
Posts: 604
Registered: ‎05-01-2005
Message 3 of 24 (1,196 Views)

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
Active Member
dthurston
Posts: 7
Registered: ‎06-26-2009
Message 4 of 24 (1,167 Views)

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...

Mentor
Steve_Johnson
Posts: 604
Registered: ‎05-01-2005
Message 5 of 24 (1,130 Views)

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
Active Member
dthurston
Posts: 7
Registered: ‎06-26-2009
Message 6 of 24 (1,127 Views)

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.

 

*Expert Elite*
rkmcswain
Posts: 3,343
Registered: ‎11-13-2006
Message 7 of 24 (1,107 Views)

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))
)

 

 

 

 

Mentor
Steve_Johnson
Posts: 604
Registered: ‎05-01-2005
Message 8 of 24 (1,058 Views)

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
Active Member
dthurston
Posts: 7
Registered: ‎06-26-2009
Message 9 of 24 (1,033 Views)

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!

Contributor
IG-Emmen
Posts: 15
Registered: ‎08-11-2009
Message 10 of 24 (945 Views)

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

 

 

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.