DWG is one of the most widely used CAD file formats, but unit handling in DWG files is not always as simple as many users expect. A drawing may look correct in the CAD application where it was created, but when the same file is converted to another format, the result may appear at the wrong size.
This does not necessarily mean that the DWG file is invalid or that the conversion failed. In many cases, the problem is that the file does not contain enough reliable information to determine the intended drawing unit automatically.
DWG drawings are often based on drawing units
In a DWG file, geometry is commonly stored as numeric coordinates. A line from
coordinate 0,0 to coordinate 100,0 is simply 100 drawing
units long.
The file itself may not clearly say whether those 100 drawing units represent 100 millimeters, 100 inches, 100 feet, or something else. That interpretation depends on how the drawing was created, which template was used, and how the CAD system was configured.
DWG files may contain unit hints
DWG files can contain header values that provide information about the intended
unit system. ViewCompanion checks values such as INSUNITS and
MEASUREMENT when automatic DWG unit detection is enabled.
These values can be useful, and for many files they provide enough information to select the correct unit automatically. However, they should be considered hints rather than a guaranteed answer.
Unit-related values may be missing, undefined, inherited from a template, or inconsistent with the actual geometry in the drawing. This can happen when files are imported from other CAD systems, converted from older formats, reused across projects, or edited by different applications over time.
Why automatic unit detection cannot always be perfect
ViewCompanion attempts to detect DWG units automatically by analyzing the unit information available in the file. This is the recommended default setting and works well for many drawings.
Still, no automatic method can guarantee the correct result for every DWG file. If the file does not contain reliable unit information, the software must choose the most likely interpretation based on the available data.
This is why a converted file may sometimes appear too large or too small even though the geometry, layers, colors, and layout were converted correctly. The drawing itself may be correct, but the assumed unit may not match the unit intended by the person who created the file.
Model space and paper space can add more complexity
DWG files may contain both Model space and one or more paper space layouts. Model space usually contains the actual drawing geometry. Paper space layouts are often used for plotting, printing, title blocks, viewports, and sheet setup.
This means that the unit used for the drawing geometry and the final printed page size are not always the same thing. A drawing may be created in millimeters or inches, while a layout is configured for a specific paper size such as A4, A3, Letter, or a custom sheet size.
Viewports in paper space can also apply their own scale. The conversion software must therefore determine not only which unit was used, but also which layout should be converted and how the drawing should be placed on the output page.
How ViewCompanion handles DWG units
ViewCompanion uses automatic DWG unit detection by default. When a DWG file is opened or converted, ViewCompanion analyzes available unit-related information in the file and attempts to select the correct unit.
If the automatic result is not correct, the DWG unit can be selected manually. This is useful when you know the source drawing was created using a specific unit, or when you need consistent conversion results for a group of files from the same customer, project, or CAD system.
| Unit option | Description |
|---|---|
| Auto-detect | ViewCompanion attempts to detect the drawing unit automatically. |
| Millimeters | Forces the DWG importer to use millimeters. |
| Centimeters | Forces the DWG importer to use centimeters. |
| Meters | Forces the DWG importer to use meters. |
| Inches | Forces the DWG importer to use inches. |
| Feet | Forces the DWG importer to use feet. |
| Yards | Forces the DWG importer to use yards. |
Practical advice when converting DWG files
For most DWG files, automatic unit detection is the best starting point. It avoids unnecessary manual configuration and uses the information available in the file.
Practical advice when converting DWG files
For most DWG files, automatic unit detection is the best starting point. It avoids unnecessary manual configuration and uses the information available in the file.
- Start with automatic DWG unit detection.
- Convert the file to the required output format.
- Check whether the output size and scale are correct.
- If the scale is wrong, select the expected DWG unit manually.
- Convert the file again and verify the result.
If you receive many DWG files from the same source, and you know they are always created using the same unit, manually selecting that unit can help produce more consistent conversion results.
Important to remember
A wrong output scale does not always mean that the DWG file is damaged. It often means that the unit information in the file was missing, incomplete, or not consistent with the actual drawing geometry.
Related ViewCompanion DWG conversion settings
ViewCompanion includes several settings that can affect DWG conversion behavior, especially when working with layouts, extents, and unit handling.
| Setting | Purpose |
|---|---|
DWGUNITS |
Selects automatic or manual unit handling for DWG import and conversion. |
DWGCONVERTDEFAULTONLY |
Controls whether only the default DWG layout is converted. |
DWGIGNOREMODEL |
Controls whether the Model layout is excluded when other layouts are available. |
DWGRECALCULATE |
Controls whether drawing extents are recalculated for each DWG layout during conversion. |
These settings can be useful when creating automated conversion workflows or when converting DWG files from different CAD sources.
Frequently asked questions
Why is my converted DWG file the wrong size?
The most common reason is that the drawing unit was not detected correctly. The DWG file may not contain reliable unit information, or the unit information may not match the actual geometry in the drawing.
Does a DWG file always store its unit?
No. A DWG file may contain unit-related values such as INSUNITS
and MEASUREMENT, but these values may be missing, undefined,
or inconsistent with the drawing geometry.
What unit setting should I use?
Use automatic detection first. If the converted result has the wrong scale, select the unit manually based on how the drawing was created.
Can paper space layouts affect the output scale?
Yes. Paper space layouts may include sheet sizes, title blocks, viewports, and plotting scale information. This can affect how the drawing is placed and scaled in the converted output.
Can ViewCompanion convert DWG files to PDF?
Yes. ViewCompanion Premium can convert DWG files to PDF and other supported output formats, with settings for unit handling, layout selection, scaling, and conversion options.
Convert DWG files with ViewCompanion Premium
ViewCompanion Premium can open, view, print, annotate, measure, and convert DWG files together with many other technical document formats.


