AutoCAD 2010/2011/2012 DWG Format
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Where did the window go???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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?
Re: Where did the window go???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
ATTREQ = 1
Re: Where did the window go???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: Where did the window go???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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...
Re: Where did the window go???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Please reread my post.
Re: Where did the window go???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: Where did the window go???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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)) )
R.K. McSwain
CADpanacea.com | twitter | Cadalyst Tips
Re: Where did the window go???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: Where did the window go???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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!
Re: Where did the window go???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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



