Repository navigation
DWGUNITS Command
github-actions[bot] edited this page Nov 29, 2026
·
3 revisions
Changes the unit the drawing is measured in and scales model space so every object keeps its real size.
| Command | DWGUNITS |
| Web app | Available |
| Since | 0.9.4 |
- Run
DWGUNITS. The command line shows the current unit. - Choose the unit to convert to: Millimeters (
mm), Centimeters (cm), Meters (m), Kilometers (km), Inches (in), Feet (ft), Miles (mi) or Yards (yd). Click a button or type the name or its short form. - Choose whether to scale the objects in the drawing to the new unit: Yes (the default, press Enter) or No.
With Yes, the drawing's unit is changed, and everything in model space is scaled about the origin by the conversion factor. The command line reports the units, how many objects were scaled, the factor, and how many viewports were reframed.
- With No, only the unit changes: use it for a drawing whose objects are already drawn in the new unit but whose unit setting is wrong.
- You can also type the unit and the answer after the command, for example
DWGUNITS mmorDWGUNITS mm No. - Layout viewports are reframed so they keep showing the same part of the model. The layouts themselves stay in paper units.
- Objects on locked layers are converted too, so the whole drawing stays at one scale.
- Length settings such as the linetype scale, the default text height and the starting radii for fillet and chamfer are converted with the drawing.
- Dimension styles keep their look: their overall scale is converted too.
- The active annotation scale is adjusted to match.
- If the drawing was unitless, only the unit label changes; nothing is scaled.
- Choosing the unit the drawing already uses does nothing.
- The Convert drawing... link in the status-bar units menu runs this command.
- To relabel the unit without scaling anything, use
UNITS.
Open CAD Studio is free software under the GPL-3.0 licence · Source code · Download · Web app · Discussions
Get started
- Installation
- Your First Drawing
- Tutorials
- The User Interface
- Ribbon Reference
- Workspaces and Toolbars
- Navigating the Drawing
Draw and edit
- Drawing Setup and Units
- Precision Drawing
- Isometric Drafting
- Drawing Objects
- Multilines
- Selecting Objects
- Modifying Objects
- Hatches and Fills
- Layers and Properties
Annotate
Organise and reuse
Present and share
3D
Tools
Reference