Jump to content

-DWGUNITS in vanilla


Recommended Posts

I don't have vanilla AutoCAD, I have the Mechanical version so I can't test this. Autodesk support is telling me -dwgunits doesn't exist in the vanilla product. Is that true? Can someone with vanilla try and then report back. I see this mentioned as a solution so often in here I assumed it was in the vanilla versions.

Link to comment
Share on other sites

Dunno bout without the dash, but -dwgunits has been in vanilla AutoCad for a Loooooooonnng time. They even moved it into LT for 2015 (maybe before). LT definitely has no dwgunits without the dash.

Link to comment
Share on other sites

Works in plain vanilla just great. This screenshot is from Vanilla 2013.

Had there been anything in Paperspace when I ran it, there would be an additional question about the option to scale paperspace entities too.

Just curious, if you open your version as Autocad, instead of as Mechanical, if you might have it available there?

As useful as it is, I am quite surprised that Autodesk support is unaware of it. :|

-DWGUNITS in 2013 vanilla.JPG

Edited by Dadgad
Link to comment
Share on other sites

What do you want to change you can get at the sysvars directly

(SETVAR "LUNITS" 2)

(SETVAR "ANGBASE" 0.0)

(SETVAR "ANGDIR" 0)

(SETVAR "LUPREC" 0)

(SETVAR "AUNITS" 0)

(SETVAR "AUPREC" 0)

Link to comment
Share on other sites

What makes this so useful for me, is that it enables one to easily and comprehensively, with a single command, view these numerous system variable settings, and either confirm or rectify them.

I find this particularly helpful when receiving a drawing from someone else, as, in my own work, I will know those values which will have been determined by the use of my default .dwt file. :beer:

Link to comment
Share on other sites

Maybe do a test using the sysvars and produce a screen answer. copy direct to command line as example, you can put your own wording

 

; strcat answer
(alert "Angbase is 0.0 OK\nAngdir is not 0.0\nLuprec is 1 not 0")

 

Another thought is the recent post I did about 1 2 or 3 auto line dcl just add a lot more lines to code for more dcl entries you could then do a message change or not preset to default value.

Edited by BIGAL
Link to comment
Share on other sites

I was asking because in a vertical product using -dwgunits it will override the insunits setting, but it won't change insunits. So going through -dwgunits you might change to millimeters but insunits will still report inches. Supposedly in vanilla -dwgunits will also change insunits, maybe someone could report back on whether or not that happens.

 

I asked the Autodesk support for clarification but their answer seems wrong and or conflicting. For one they they state that -dwgunits isn't in vanilla AutoCAD.

Link to comment
Share on other sites

Works fine here.

 

Default response is to NOT change the INSUNITS, if you just hit enter at the prompt. You must select Y, then enter.

Link to comment
Share on other sites

Here is my commandline history after a little test.

 

-DWGUNITS

Drawing units:

1. Inches

2. Feet

3. Millimeters

4. Centimeters

5. Decimeters

6. Meters

Unit for length : *Cancel*

 

Command: measurement

 

Enter new value for MEASUREMENT :

 

Command: -SYNCINSUNITS

 

Match INSUNITS to drawing units? [Yes/No] :

 

Command: -SYNCINSUNITS

 

Match INSUNITS to drawing units? [Yes/No] : y

 

Command: Specify opposite corner or [Fence/WPolygon/CPolygon]:

Command: -DWGUNITS

 

Drawing units:

1. Inches

2. Feet

3. Millimeters

4. Centimeters

5. Decimeters

6. Meters

Unit for length : 1

 

Drawing unit display formats:

1. Scientific

2. Decimal

3. Engineering

4. Architectural

5. Fractional

Linear display format :

 

Architectural linear display precision formats:

0. 1"

1. 1/2"

2. 1/4"

3. 1/8"

4. 1/16"

5. 1/32"

6. 1/64"

7. 1/128"

8. 1/256"

Linear display precision :

 

Scale objects from other drawings upon insert? [Yes/No] : y

 

Match INSUNITS to drawing units? [Yes/No] : y

 

 

** WARNING: you have changed the unit for this drawing database. **

** All new objects will be drawn according to the new unit, but **

** existing objects will not change size unless you specifically **

** ask to have automatic scaling occur. **

 

Scale objects in current drawing to reflect change in units? [Yes/No] : y

 

Include objects in Paper Space? [Yes/No] : y

 

Scaling the entire database...

Scaling AecDbObject(s)...

Scaling entities in Model Space...

Scaling entities in Paper Space...

Command: MEASUREment

 

Enter new value for MEASUREMENT :

 

Seems to do everything that it was meant to, including resetting the MEASUREMENT variable appropriately.

 

Clearly the Support Tech knows less about this question than you do.

Which while lamentable, doesn't surprise me one bit! :beer:

 

Shouldn't we expect said individual, to immediately attempt to call the command on Vanilla, and realize that it does exist?

default units after running -dwgunits.jpg

changes block units.JPG

reporting units.JPG

Link to comment
Share on other sites

Drawing was Inches and Architectural.

 

Command: -dwgunits

 

Drawing units:

1. Inches

2. Feet

3. Millimeters

4. Centimeters

5. Decimeters

6. Meters

Unit for length : 3

 

Drawing unit display formats:

1. Scientific

2. Decimal

Linear display format :

 

Linear display precision : 3

 

Scale objects from other drawings upon insert? [Yes/No] : y

 

Match INSUNITS to drawing units? [Yes/No] : y

 

 

** WARNING: you have changed the unit for this drawing database. **

** All new objects will be drawn according to the new unit, but **

** existing objects will not change size unless you specifically **

** ask to have automatic scaling occur. **

 

Scale objects in current drawing to reflect change in units? [Yes/No] :

 

Include objects in Paper Space? [Yes/No] :

 

Scaling the entire database...

Scaling AecDbObject(s)...

Scaling entities in Model Space...

Scaling entities in Paper Space...

 

Units are changed appropriately

DWGUNITS.png

Link to comment
Share on other sites

Dadgad - thanks. Tech support guy did write back to say they were updating their information on this so at least they admitted they had the wrong information. I have gotten some good tech support from them in the past but this latest guy was annoying. He didn't get a good customer survey response.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...