Table of Contents

Enum DxfUnits

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

The unit a DXF file says its drawing is in, the header variable $INSUNITS, numbered as the DXF reference numbers it: a file DxfWriter writes is in Millimeters, 4. Not DxfUnit, AutoCAD's Unit, which numbers the resolution of an image's pixels and the unit images are scaled in: a millimetre is 4 here and 1 there.

public enum DxfUnits

Fields

Undefined = 0

No unit given, 0, or a number the DXF reference does not list; also a file with no $INSUNITS.

Inches = 1

Inches, 1: 25.4 millimetres.

Feet = 2

Feet, 2: 304.8 millimetres.

Miles = 3

Miles, 3: 1 609 344 millimetres.

Millimeters = 4

Millimetres, 4.

Centimeters = 5

Centimetres, 5: 10 millimetres.

Meters = 6

Metres, 6: 1 000 millimetres.

Kilometers = 7

Kilometres, 7: 1 000 000 millimetres.

MicroInches = 8

Microinches, 8: 2.54E-5 millimetres.

Mils = 9

Mils, thousandths of an inch, 9: 0.0254 millimetres.

Yards = 10

Yards, 10: 914.4 millimetres.

Angstroms = 11

Angstroms, 11: 1E-7 millimetres.

Nanometers = 12

Nanometres, 12: 1E-6 millimetres.

Microns = 13

Microns, 13: 0.001 millimetres.

Decimeters = 14

Decimetres, 14: 100 millimetres.

Dekameters = 15

Decametres, 15: 10 000 millimetres.

Hectometers = 16

Hectometres, 16: 100 000 millimetres.

Gigameters = 17

Gigametres, 17: 1E12 millimetres.

Astronomical = 18

Astronomical units, 18: 1.495978707E14 millimetres.

LightYears = 19

Light years, 19: 9.4607304725808E18 millimetres.

Parsecs = 20

Parsecs, 20: 3.0856775814913673E19 millimetres.

USSurveyFeet = 21

US survey feet, 21: 1 200 / 3 937 of a metre, 304.80061 millimetres.

USSurveyInch = 22

US survey inches, 22: a twelfth of a US survey foot, 25.400051 millimetres.

USSurveyYard = 23

US survey yards, 23: three US survey feet, 914.40183 millimetres.

USSurveyMile = 24

US survey miles, 24: 5 280 US survey feet, 1 609 347.2 millimetres.