Permlink Replies: 7 - Last Post: Nov 4, 2009 4:14 PM Last Post By: mstringer@amfca... Threads: [ Previous | Next ]
dondi_m

Posts: 5
Registered: 11/25/08
Help...System Var ATTDIA??
Posted: Nov 25, 2008 2:59 AM
  Click to reply to this thread Reply
It seems that AutoCAD Mechanical doesn't save the system vaiable ATTDIA when changed. When I change the variable to 0 and close out the program and re-open the program it reverts back to 1. This seems to only be a problem with "Mechanical" versions of AutoCAD. Straight versions save the system variable to whatever it was changed to last. I could change it each time I start using the .mnl file but lack the knowledge. Is there something I'm missing?? I've set up several versions of AutoCAD with custom menus that require ATTDIA be set to 0 in order to function properly. Every "Mechanical" version I've ran across has this does this. I don't how to get it to change permanently. Can someone shed some light on this issue? Has anyone else experienced this?
Sridhar-Autodesk

Posts: 586
Registered: 12/19/06
Re: Help...System Var ATTDIA??
Posted: Nov 25, 2008 8:59 AM   in response to: dondi_m in response to: dondi_m
  Click to reply to this thread Reply
Hi,



I could reproduce the issue in AutoCAD Mechanical 2009 SP2. Thank you for reporting this issue. Unfortunately, I don't have a workaround for this issue.



I have logged this issue in our system and notified the development team.





Regards,



Sridhar

Software QA Engineer

Manufacturing Solutions Division

Autodesk, Inc.
CrAzY-MiKe

Posts: 178
Registered: 06/04/03
Re: Help...System Var ATTDIA??
Posted: Nov 25, 2008 1:26 PM   in response to: dondi_m in response to: dondi_m
  Click to reply to this thread Reply
Attachment acad2008doc.zip (8.4 KB)
Here is a workaround until Autodesk can fix this.

Attached is the file acad2008doc.lsp, in a ZIP file. It loads every time you use Autocad Mech. I added some LISP code that sets ATTDIA to zero.

The file is usually found in the folder C:\Program Files\Autodesk\ACADM 2008\Support.

You can copy the attached file to that location and replace the existing copy, or you can edit the existing copy yourself and add this line to the end of the file...

(command "ATTDIA" "0")

I am a LISP programmer for more years than I care to think about, and I often add snippets of code to address issues like this.

CrAzY-MiKe
dondi_m

Posts: 5
Registered: 11/25/08
Re: Help...System Var ATTDIA??
Posted: Nov 25, 2008 5:09 PM   in response to: CrAzY-MiKe in response to: CrAzY-MiKe
  Click to reply to this thread Reply
Whereas the workaround should have worked...it didn't. I can see the command (attdia 0) at the end of the startup routine but when I check, ATTDIA is still set to 1. I actually tried this exact thing yesterday but thought I was doing something incorrect as I know about enough about lsp to be dangerous.
Any other suggestions?
CrAzY-MiKe

Posts: 178
Registered: 06/04/03
Re: Help...System Var ATTDIA??
Posted: Nov 25, 2008 6:49 PM   in response to: dondi_m in response to: dondi_m
  Click to reply to this thread Reply
You're right! I tried it myself in AMech2009 and even though it ran the code, when I typed in ATTDIA the value was 1. I noticed that in MY setup the very last thing that loaded was Express Tools (after my LISP set it to zero). I wonder if something in the Tools sets it back to 1.
dondi_m

Posts: 5
Registered: 11/25/08
Re: Help...System Var ATTDIA??
Posted: Nov 3, 2009 6:39 PM   in response to: dondi_m in response to: dondi_m
  Click to reply to this thread Reply
Any word from Autodesk on a fix for this as yet? It's kind of annoying having to change this variable everytime.
Sridhar-Autodesk

Posts: 586
Registered: 12/19/06
Re: Help...System Var ATTDIA??
Posted: Nov 4, 2009 1:00 PM   in response to: dondi_m in response to: dondi_m
  Click to reply to this thread Reply
Hi,

The issue is not yet fixed. I will keep you updated once a fix is available.

Thanks,

Sridhar
mstringer@amfca...

Posts: 14
Registered: 03/05/04
Re: Help...System Var ATTDIA??
Posted: Nov 4, 2009 4:14 PM   in response to: dondi_m in response to: dondi_m
  Click to reply to this thread Reply
Hello,

The only thing I would do to get around this problem is to modify all my routines to include the (setvar "attdia" 0) to be sure that the dialog box does not appear.

It's a long shot but it's worth a try.

Hope this helps

Marc