AutoCAD 2010/2011/2012

AutoCAD 2010/2011/2012

Reply
Active Member
7 Posts
0 Kudos
Registered: ‎06-26-2009
Post 1 of 24

Where did the window go???

1273 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*
1,894 Posts
61 Kudos
Registered: ‎09-26-2006
Post 2 of 24

Re: Where did the window go???

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

ATTREQ = 1

Mentor
604 Posts
34 Kudos
Registered: ‎05-01-2005
Post 3 of 24

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
7 Posts
0 Kudos
Registered: ‎06-26-2009
Post 4 of 24

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
604 Posts
34 Kudos
Registered: ‎05-01-2005
Post 5 of 24

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
7 Posts
0 Kudos
Registered: ‎06-26-2009
Post 6 of 24

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*
3,726 Posts
474 Kudos
Registered: ‎11-13-2006
Post 7 of 24

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
604 Posts
34 Kudos
Registered: ‎05-01-2005
Post 8 of 24

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
7 Posts
0 Kudos
Registered: ‎06-26-2009
Post 9 of 24

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
15 Posts
0 Kudos
Registered: ‎08-11-2009
Post 10 of 24

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

 

 

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!