Hi Paul,
I have exactly 1 drawing here that has this same issue. I wrote a small lisp
that I placed in my acaddoc.lsp which runs when a drawing is opened. On this
1 drawing, it has fixed the problem so I think it will work for you, too.
I'm including the code here in case you'd like to try it. It should not
affect any drawings that do not have the units set to inches, but PLEASE
test it on some backed up drawings before putting it into full time use. As
I said, it works on the 1 drawing I have which was fouled up, and has not
affected any others at all.
When this runs it first checks the existing units value, if it isn't feet or
meters then it will set the units to either feet or meters depending on the
MEASUREINIT sysvar value. Once the setting is changed, the inches (or other
invalid value of centimeters, millimeters, etc) will still be shown as an
option in the Drawing Settings during that session. But once the drawing is
saved, closed and opened again the only options available will then be the
feet & meters as expected.
I hope this helps you with your older drawings,
Jeff
{code}
;|add the entire contents between the code marks to the end of acaddoc.lsp,
create
one in the support folder if it doesn't exist |;
(defun jmm-resetunits (/ vrsn appstr acad-app civil-app civil-doc curunits
settings)
(vl-load-com)
(setq vrsn (vlax-product-key))
;;not sure if this command was available in earlier versions
(cond ((vl-string-search "R17.1" vrsn) (setq appstr "5.0"))
;;2008
((vl-string-search "R17.2" vrsn) (setq appstr "6.0"))
;;2009
((vl-string-search "R18.0" vrsn) (setq appstr "7.0"))
;;2010
(t (alert "This version of C3D not supported!"))
)
(if appstr
(progn
(setq acad-app (vlax-get-acad-object)
civil-app (vlax-invoke-method
acad-app
'Getinterfaceobject
(strcat "AeccXUiLand.AeccApplication." appstr)
) ;_ end of vlax-invoke-method
civil-doc (vla-get-ActiveDocument civil-app)
settings (vlax-get (vlax-get (vlax-get civil-doc 'settings)
'drawingsettings
)
'unitzonesettings
)
)
(setq curunits (vlax-get settings 'drawingunits))
(if (> curunits 2);;not feet or meters
(progn
(if (= 0 (getvar "measureinit"))
(vlax-put settings 'drawingunits 1);;feet
(vlax-put settings 'drawingunits 2);;meters
)
)
)
)
)
)
(jmm-resetunits)
{code}
"Paul Mascaro" wrote in message news:6341822@discussion.autodesk.com...
> This is part of AutoCAD Architectural. Not sure how but it is in a lot of
> my drawings. (I Never Installed Architectural or Architectural OE but it's
> in my old AutoCAD template and now in all of our old CAD Drawings that
> were started in AutoCAD (Not started in C3D / C3D template is Ok)
>
> I use Civil 3D a lot and all of our old AutoCAD Drawings have this setting
> default to inches and when I open them up in Civil 3D my Units show inches
> even though Civil 3D isn't suppose to have inches as a unit. This AEC Unit
> overrides C3D's default and you have to then go into Civil 3D's Units
> setup in every drawing and change it... (This has kept us from fully
> converting over to C3D)
>
> Does anyone know if there is a way to disable this?
>
> I would like to disable AECDWGSETUP on start up through. Maybe through
> acaddoc.lsp
> Is there a way to do this or is there a way to completely delete this
> override?
> Or is there a script I can run to force these units to feet so they do not
> conflict with my Civil 3D Imperial?
>
> Thanks!!
> Paul