TheSwamp

CAD Forums => CAD General => Topic started by: adrian on October 20, 2004, 07:59:17 PM

Title: Dimscale keeps reseting
Post by: adrian on October 20, 2004, 07:59:17 PM
I have a drawing that does not keep my dimscale setting.  It always defaults back to 1:96 when ever I open the drawing.
Every time I open the drawing it goes back to 1:96 even though it was saved to 1:10. I am running R2005 with a StucPlus add on.
Can anyone help.
Thanks  :)
Title: Dimscale keeps reseting
Post by: Keith™ on October 20, 2004, 10:03:20 PM
I don't know for sure but there could be a custom object with a reactor that does that ... since you ARE using an addon....
Title: Dimscale keeps reseting
Post by: adrian on October 20, 2004, 10:07:09 PM
Why would it do it to only 1 drawing? If so, is there any way I can find out?
Thanks for your reply.
Title: Dimscale keeps reseting
Post by: Keith™ on October 20, 2004, 10:10:39 PM
Have you tried opening it in another installation of AutoCAD ? on another computer?
Title: Dimscale keeps reseting
Post by: ronjonp on October 21, 2004, 02:13:09 PM
I've had the same problem with this drawing. I openend it in 2004 and 2005 and the dimscale was set to 96 after I had changed it.

I found this in the drawing (not sure exactly how it works but it looks fishy):


Code: [Select]
AEC_VARS_DWG_SETUP
  2
AecDbVarsDwgSetup
  3
AecBase40|Product Desc: Autodesk Architectural Desktop 2005 |Company: Autodesk,Inc. |WEB Address: www.autodesk.com


Here is the drawing:
http://theswamp.org/lilly_pond/ronjonp/Xkeymap.zip?nossi=1



I used keith's endit lisp and it fixed it. BTW Keith, that routine kicks ace.


Ron
Title: Dimscale keeps reseting
Post by: Keith™ on October 21, 2004, 02:22:38 PM
Thanks Ron ....
Title: Dimscale keeps reseting
Post by: dubb on October 21, 2004, 04:01:13 PM
ive had a similar problem....there was this block called acad_zz or something like that....after i got rid of it...it the scale never changed...also the other symptons that the block has is....whenever autosave saved the scale would change to 1/96. thats what i know from my experience
Title: Dimscale keeps reseting
Post by: adrian on October 21, 2004, 05:49:57 PM
Keith, I did try it on another machine and it saved the dimstyle fine.  So it must be the add on.  What does the lisp file ronjonp was mentioning do? Is there any chance I could get the code to try on this drawing?

Thanks
Title: Dimscale keeps reseting
Post by: ronjonp on October 21, 2004, 06:26:25 PM
Here is the code:

Code: [Select]
(defun C:ENDIT (/ expert cmdecho)

 (setq expert (getvar "EXPERT")
cmdecho (getvar "CMDECHO")
  )
  (setvar "EXPERT" 5)
  (setvar "CMDECHO" 0)
  (command "-wblock"
  (strcat (getvar "dwgprefix") (getvar "dwgname"))
  "*"
  )
  (setvar "EXPERT" expert)
  (setvar "CMDECHO" cmdecho)
)
Title: Dimscale keeps reseting
Post by: Keith™ on October 21, 2004, 08:37:11 PM
It essentially cleans out any junk not needed in the drawing....sortof like a purge but it also resets handles to start back to zero.
Title: Dimscale keeps reseting
Post by: adrian on October 21, 2004, 08:44:10 PM
Thanks guys. I tried it, but it didnt fix the problem.  I even inserted the drawing & exploded it and that didnt work.  I have ended up overlaying the drawing as an xref, then binding as an insert, then exploding it.  It keeps the setting after I do all that.  So somewhere along that long winded path, it loses the 96.  
Still it would be nice to know what the problem was, or where the setting was taking effect.
Thanks for your help.  :)
Title: Dimscale keeps reseting
Post by: ronjonp on October 22, 2004, 10:44:21 AM
Quote
Thanks guys. I tried it, but it didnt fix the problem.


After you run the lisp close the drawing without saving changes and reopen it. Then it should work. Also make sure you don't have another drawing xrefed in that has the same problem.

Ron
Title: Dimscale keeps reseting
Post by: whdjr on October 22, 2004, 11:29:02 AM
Adrian,

Can you post your drawing?
Title: Dimscale keeps reseting
Post by: adrian on October 24, 2004, 06:55:17 PM
Ronjonp, I ran the lisp file like you said and it worked.  Thanks alot.
You are a champion!  :D