Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I disable AECDWGSETUP in Civil 3D?

27 REPLIES 27
Reply
Message 1 of 28
pmascaro
1166 Views, 27 Replies

How do I disable AECDWGSETUP in Civil 3D?

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
27 REPLIES 27
Message 2 of 28
Anonymous
in reply to: pmascaro

I doubt it can be deleted or disabled.

-DWGUNITS is the command you can run from within the acaddoc.lsp to set it
to feet when drawings are opened.

--
Matt Kolberg
Global CADD Systems - A division of Cansel
Message 3 of 28
pmascaro
in reply to: pmascaro

Thanks Matt, but then the text window opens and the command to close the text window doesn't work in acaddoc.lsp...

Any ideas how to fix that? My goal is to fix this in the background if at all possible...
Message 4 of 28
Anonymous
in reply to: pmascaro

I would think you could clean this out of the template by purging regapps?
Have you tried? -purge at the command line, R option.

--
John Mayo, PE

Core i7 920 6GB DDR3
Radeon 4870HD 1 GB
Vista64
Message 5 of 28
pmascaro
in reply to: pmascaro

Yeah, No luck with purge... Thanks though...

Civil 3D was built on Architectural Architecture so I have a feeling that it is some how stuck in there...
Microdesk (ATC) Civil 3D Support said that this is an AEC Command that is only for AutoCAD Architectural but it still shows up in C3D for some reason...

If it's not suppose to be in Civil 3D and Civil has it's own AECC version for units that doesn't have inches in it then I would hope there is a way to fix old drawings that were caught in some cross platform glitch...

My new template doesn't have this issue as I stated my 2010 templates from scratch but all of my old drawings do and since this is imbedded in my old drawings I'm stuck w/ thousands of drawings that have this issue...

Ugh!
Message 6 of 28
Anonymous
in reply to: pmascaro

-aecdwgsetup works fine in C3D

--
Lance W.
______________________________
my advice is congruent and factual..

"Paul Mascaro" wrote in message news:6341883@discussion.autodesk.com...
> Thanks Matt, but then the text window opens and the command to close the
> text window doesn't work in acaddoc.lsp...
>
> Any ideas how to fix that? My goal is to fix this in the background if at
> all possible...
Message 7 of 28
pmascaro
in reply to: pmascaro

Thanks but the text window opens with that command too....

I've tried -aecdwgsetup, -dwgunits, -aecdwgunits.
All of them open the text window and then you manually have to close it.

If I can do this in the background that would be great but I can't ask everyone to mannual close their text window everytime they open a drawing so that's my only issue with using the above commands to set the units...

If there was a way to get that text window to close after the command ran then I would be set.

I tried adding graphscr to the end of acaddoc.lsp and it doesn't work on start up only after start up will it work so I'm stuck unless someone knows another way to get it to close or not to open at all on startup....

(Not sure why that text window opens itself anyway.... If I want to see what's going on I'll hit F2....)
Message 8 of 28
Anonymous
in reply to: pmascaro

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
Message 9 of 28
pmascaro
in reply to: pmascaro

Your the Man Jeff !! Thanks, I'll test it out and post my results to this thread as soon as I get a chance.

-Paul
Message 10 of 28
Anonymous
in reply to: pmascaro

It doesn't come up if run thru a lisp

--
Lance W.
______________________________
my advice is congruent and factual..

"Paul Mascaro" wrote in message news:6341907@discussion.autodesk.com...
> Thanks but the text window opens with that command too....
>
> I've tried -aecdwgsetup, -dwgunits, -aecdwgunits.
> All of them open the text window and then you manually have to close it.
>
> If I can do this in the background that would be great but I can't ask
> everyone to mannual close their text window everytime they open a drawing
> so that's my only issue with using the above commands to set the units...
>
> If there was a way to get that text window to close after the command ran
> then I would be set.
>
> I tried adding graphscr to the end of acaddoc.lsp and it doesn't work on
> start up only after start up will it work so I'm stuck unless someone
> knows another way to get it to close or not to open at all on startup....
>
> (Not sure why that text window opens itself anyway.... If I want to see
> what's going on I'll hit F2....)
Message 11 of 28
pmascaro
in reply to: pmascaro

Ok, Thanks! I'll keep that in mind for future reference.
Message 12 of 28
pmascaro
in reply to: pmascaro

Tested it on a few drawings and It works Great. Much Appreciated.

Now I just have to figure out how to get the "Scale Objects Inserted From Other Drawings" Check box to un-check in old drawings and I'll be set...

Thanks Again,
-Paul
Message 13 of 28
pmascaro
in reply to: pmascaro

Tested it on a few drawings and It works Great. Much Appreciated.

Now I just have to figure out how to get the "Scale Objects Inserted From Other Drawings" Check box to un-check in old drawings and I'll be set...

Thanks Again,
-Paul
Message 14 of 28
Anonymous
in reply to: pmascaro

Check

INSUNITS
INSUNITSDEFSOURCE
INSUNITSDEFTARGET

--
Lance W.
______________________________
my advice is congruent and factual..

"Paul Mascaro" wrote in message news:6342369@discussion.autodesk.com...
> Tested it on a few drawings and It works Great. Much Appreciated.
>
> Now I just have to figure out how to get the "Scale Objects Inserted From
> Other Drawings" Check box to un-check in old drawings and I'll be set...
>
> Thanks Again,
> -Paul
Message 15 of 28
Anonymous
in reply to: pmascaro

Add 1 line to the code I posted......should do it.

{code}
......
(if (> curunits 2);;not feet or meters
(progn
(if (= 0 (getvar "measureinit"))
(vlax-put settings 'drawingunits 1);;feet
(vlax-put settings 'drawingunits 2);;meters
)
)
)
(vlax-put settings 'ScaleObjectsFromOtherDrawings 0);;add this line
......
{code}

"Paul Mascaro" wrote in message news:6342385@discussion.autodesk.com...
> Tested it on a few drawings and It works Great. Much Appreciated.
>
> Now I just have to figure out how to get the "Scale Objects Inserted From
> Other Drawings" Check box to un-check in old drawings and I'll be set...
>
> Thanks Again,
> -Paul
Message 16 of 28
pmascaro
in reply to: pmascaro

Nice! Thanks Again...

This is a very big help... :^)
Message 17 of 28
pmascaro
in reply to: pmascaro

Thanks Lance,



The AEC Controls override the standard drawing units so even if you change the insunits etc the AEC units stay in inches. Same w/ the insert controls the AEC Controls are also separate from the standard CAD Control for inserting....

The First Lisp Jeff sent me seems to work great. I'll test out the second part and post my results but I think the lisp that digs into the AEC units is the fix I'm looking for.

Wish it was this easy but I guess you need lisp to resolve the AEC issue...
Message 18 of 28
pmascaro
in reply to: pmascaro

This one works great too!! Thanks Again Jeff!!
Message 19 of 28
Anonymous
in reply to: pmascaro

Super! Happy to help, especially when it works! 🙂

"Paul Mascaro" wrote in message news:6342474@discussion.autodesk.com...
> This one works great too!! Thanks Again Jeff!!
Message 20 of 28
Anonymous
in reply to: pmascaro

Now all that's left is to find out how/if this can be done with vanilla
AutoCAD.

--
Matt Kolberg
Global CADD Systems - A division of Cansel

"Jeff Mishler" wrote in message
news:6342919@discussion.autodesk.com...
> Super! Happy to help, especially when it works! 🙂
>
> "Paul Mascaro" wrote in message news:6342474@discussion.autodesk.com...
>> This one works great too!! Thanks Again Jeff!!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report