SIMETRIUM .COM INSUNITS · 1 unit = ?
SERIES · DRAFTING AND CAD
EN|36 languages
Notation
The INSUNITS system variable, an integer from 0 to 21. In the UNITS dialog it is called «Insertion scale», in DXF it is $INSUNITS with group code 70.
Do not confuse
LUNITS and LUPREC only set how a number is written on screen: decimal, fractional, architectural. They do not define the unit of length.
On the plate is a steel 4″ class 150 flange above a mounting plate drilled for it. In the supplier’s file the flange diameter is written as the number 9. While INSUNITS = 0, that is 9 mm — a speck in the middle of the plate. With the «inches» tag AutoCAD multiplies by 25.4, and the eight bolt holes fall into place. If the tag is set by mistake, the flange grows another 25.4 times — to 5.8 m, and the view has to be zoomed out.
Quantity passport · drafting and CAD · drawing units

Drawing units and INSUNITS

A dimensionless number in the dwg · a unit tag for insertion · a factor between files

An AutoCAD file has no millimetres. A line 160 long is stored as the number 160, and whether that is millimetres, inches or metres only the person who drew it knows. As long as the drawing lives on its own, it makes no difference. The difference appears when a block from someone else’s file is inserted into it.

For this a file has the INSUNITS tag: 4 — millimetres, 1 — inches, 6 — metres, 0 — unitless. On insertion AutoCAD compares the block’s tag with the host’s and multiplies by the ratio. A flange from an inch file arrives in a metric drawing multiplied by 25.4. If the tag is missing or lies, the multiplication either does not happen or turns out to be one too many.

NotationINSUNITS — a drawing system variable · $INSUNITS in DXF
Definitioncode of the unit in which the file’s numbers are written; used when inserting blocks and xrefs
Values0 unitless · 1 inches · 2 feet · 4 mm · 5 cm · 6 m · 10 yards · 13 µm · 21 US survey feet · 22 codes in all
Factork = u block / u host: inches to mm — 25.4, feet to mm — 304.8, m to mm — 1000
Defaultacadiso.dwt template — 4, mm · acad.dwt template — 1, inches
Typical mistakes«unitless» block at 1:1 — 25.4 times too small · false «inches» tag — 25.4 times too large · a plan in metres in an mm file — 1000 times too small
To block insertion AutoCAD tip
01 · Definition

A number without a unit and the tag next to it

Coordinates in a dwg are double-precision numbers, about 16 significant digits. The unit is not part of them: AutoCAD stores «160» the same way for a shaft in millimetres and for a warehouse in metres. A dimension on the drawing shows the same number, and the mm label next to it is added by a person or by the dimension style.

INSUNITS does not change a single coordinate. Change 4 to 1 and the shaft does not become 25.4 times larger, it simply has a different tag. The tag works one way: when this file is inserted into another, the factor is taken from the ratio of the tags. If one side has tag 0, AutoCAD substitutes INSUNITSDEFSOURCE or INSUNITSDEFTARGET; if that is 0 too, the factor is one.

N — number in the file · u — length of one unit, mm · k — insertion factor · L — full-size length
Interactive · one number in the file

What this number means under different INSUNITS

The buttons are the number written in the file. The rows are the same entry under nine tags. The bar is the full-size length on a logarithmic scale from 1 mm to 100 km, with something to compare it with on the right. Green rows are metric tags, purple ones imperial.

Number in the file

Interactive · inserting blocks from other files

A supplier’s part: three files, three tags, one drawing

The main action is the «Start insertion» button. Below the scene you choose the part: a 4″ class 150 flange, a de Laval nozzle, a 30:1 worm gear set or a 1″ bearing ball. Each already has its place in the host drawing — a plate with holes, the wall of a test stand, a gearbox housing or an empty pocket in a bearing cage. The supplier has sent three files with the same part in inches. The first is tagged «inches», the second has no tags, the third is drawn in millimetres but tagged as inches. AutoCAD inserts them one by one and each time multiplies by the ratio of the tags. Then the mistakes are fixed with the SCALE command and a known dimension is checked. There you also choose the host unit and what to treat an untagged file as. The slider rewinds the insertion both ways.

left: control panel — host and block tags, factor, diameter on the drawingright: dwg header, caliper, insert dialog
Main action
Rewind0.0 s
Part
Host · INSUNITS
Treat untagged file as · INSUNITSDEFSOURCE
Insertion factor
—
—
Part on the drawing
—
—
Should be
—
—
Host
—
—

—

Three parts on the drawing
main dimension, mm, logarithmic scale
The bars are the parts from the three files at this moment. The dashed line is the true full-size dimension of the part. Orange — wrong size, green — correct.
Twenty-two INSUNITS codes
length of one unit, mm, logarithmic scale
From the ångström to the parsec — 26 orders of magnitude. The green ring is the host, the purple one the tag of the inserted block, the orange square what the block is actually drawn in.
View scale over time
half-width of the view in the model, mm, logarithmic scale
The hump is «Zoom Extents» after the false tag: a part 25.4 times too large pushes the host into a dot.
02 · Conversion
into a drawing tagged
in the host drawing
codeunit1 unit in mmyour number

Three numbers worth remembering: 25.4 — inches to millimetres, 304.8 — feet to millimetres, 1000 — metres to millimetres. The inverses: 0.03937, 0.003281 and 0.001.

The US survey foot is 1200/3937 m, two parts per million longer than the international foot. On a part drawing there is no difference; on a geodetic survey of a 300 km state it amounts to 60 cm.

03 · Orders of magnitude
INSUNITS UNITS FROM ÅNGSTRÖM TO PARSEC, LOGARITHMIC SCALE

04 · Measuring instruments
Drawing UnitsLength · TypeDecimal ▾Accuracy0.00 ▾Insertion scaleMillimeters ▾Sample Output: 1.5.2.0039.0OK
«drawing units» dialog
The UNITS command. The top half is the format and precision of the readout, LUNITS and LUPREC. The bottom line, «Insertion scale», is INSUNITS itself.
0SECTION2HEADER9$INSUNITS7049$MEASUREMENT7010ENDSEC
file header
In DXF the tag is visible right in the text: $INSUNITS, group code 70, value 4. Next to it is $MEASUREMENT: 1 — metric hatch patterns and linetypes, 0 — imperial.
101.60mm — on topin — below
caliper mm / in
The upper scale is in millimetres, the lower in inches; a digital one has a toggle button. A 4″ flange is measured with one tool in both units: Ø228.6 mm = 9.000″.
Insert block · flange_4in_150Block UnitUnit: InchesFactor: 25.4Scale X 1 Y 1Insertion point 0.0
insert block dialog
Before inserting, AutoCAD shows the block unit and the factor. The line «Factor: 25.4» is the last chance to notice that the tag in the supplier’s file is wrong.
05 · Writing rules
Correct
start a metric drawing from acadiso.dwt: INSUNITS 4, MEASUREMENT 1
each block has its own «Block unit»; «Unitless» only for symbols
before inserting, check the «Factor» line in the dialog
after inserting, measure with DIST and compare with the dimension in the supplier’s specification
INSUNITS 4 — mm, 1 — in, 6 — m
Incorrect
changing INSUNITS to «convert the drawing to inches» — the coordinates will not change
an «inches» tag on a file drawn in millimetres
fixing the inserted size with DIMLFAC — the dimension says one thing, the geometry another
inserting a plan in metres into an mm drawing with tag 0 — 1000 times too small
taking LUNITS = 4 for «architectural millimetres» — it is feet and inches
Series · Drafting and CAD
desk tips for every sheet
AutoCAD · units and insertion
Command:
Drawing unitINSUNITS · insertion factor
Lit.
Units
Scale
У
mm
1:1
SIMETRIUM · «Drafting and CAD» seriesin the title block — the unit, in the file — INSUNITS
06 · Neighbouring units
07 · Historical section
LINE 0.0→ 160.0unit?160 mm — shaft160 in — 4.06 m160 m — warehouse
one number, three lengths
Metrological note

A dwg has no standard of length. The drawing unit is an agreement recorded as a single integer, and it cannot be checked from the coordinates themselves: a 160 mm shaft and a 160 m warehouse look the same in the file. So the tag is checked by sense — against a known dimension: the centre distance of holes, the width of a door, the diameter of a pipe.

The conversion itself is exact: since 1959 the inch has been exactly 25.4 mm, and the factors 25.4, 304.8 and 914.4 are exact decimals. The mistakes are made not in the arithmetic but in the tag. That is how the Mars Climate Orbiter was lost in 1999: one program computed impulse in pound-force seconds, another read the same numbers as newton-seconds.

×1×25.4×6459228.65806 mm
Ø9″ under three tags
Catalogue of quantities
the whole index →
the foundation · 7 units

The seven SI base units

on the sheet’s topic · drafting and CAD
The index lab: a glass of cabbage juice, a burner, a glass of water on a cold plate and a gear train
Index · all quantities on one page
The lab at the entrance to the index

A drop of acid changes the colour of the juice, salt colours the flame, water freezes at a tap. Below them are all Simetrium sheets, by discipline and alphabetically.

Open the index →
08 · Your language
every link is a real page in that locale

Read it in your own language

translated and checkeddraft translationqueued