Skip to content
BadBit Documentation
Sign in Download the beta

DXF and DWG files

BadBit CAD opens and saves both AutoCAD formats:

  • DWG, AutoCAD's native format, from AutoCAD 2000 to AutoCAD 2018 (which is also the format of AutoCAD 2019 and later): 2000, 2004, 2007, 2010, 2013 and 2018;
  • DXF, the exchange format, from R12 to 2018, in text and in binary.

The goal is complete compatibility: the drawing opens with everything BadBit CAD knows how to do, and what it does not understand yet is not discarded — it is kept and goes back unchanged when the drawing is saved again in the same format and version. DWG and DXF go through the same path internally: a DWG and the DXF of the same version open in BadBit CAD exactly the same.

Commands

CommandWhat it does
OPENOpens a .bbd, a .dwg or a .dxf (the file dialog shows all three).
DXFINThe same as OPEN, with the DXF filter first.
QSAVEIn a drawing opened from a DWG or a DXF, saves back to the same format, in its version (the first time it asks, see below).
SAVEASWith the .dwg extension, asks for the DWG version; with .dxf, the version and whether it is binary.
DXFOUTThe same as SAVEAS, with the DXF filter first and the name ending in .dxf.
RECOVERThe same as OPEN, reporting the result of the check even when the file has no defects (reading DWG and DXF always repairs what it can, like AutoCAD's RECOVER).
IMPORTREPORTOpens the Import report of the drawing opened from a DWG or DXF again (the command belongs to BadBit CAD: the name is the same in all three languages).
AUDITChecks the drawing as it would go into the AutoCAD file (handles, owners, references, blocks of inserts and dimensions, layers, linetypes, styles, extended data applications, layouts) and says what it would find.

With FILEDIA at 0, the version is asked on the command line: type 2000, 2004, 2007, 2010, 2013 or 2018 (for DXF also R12; Enter keeps the version of the open file, or 2018); for DXF, B toggles binary on and off.

SAVEAS to a .dwg: the version on the command line
With FILEDIA 0, after the .dwg file name comes the DWG version.
SAVEAS to a .dxf: the version on the command line
With FILEDIA 0, after the file name comes the DXF version.

Opening a DWG

A DWG opens like a DXF (see the next section): in the background, with progress, in a new tab, with the same units, the same objects and the same Import report.

A DWG opened, with the Import report
The DWG opened: the sentence at the top and what looks different from AutoCAD.
  • Versions. 2000, 2004, 2007, 2010, 2013 and 2018 (and the formats of the AutoCAD releases that save in them: 2000i and 2002; 2005 and 2006; 2008 and 2009; 2011 and 2012; 2014 to 2017; 2019 and later).
  • Application objects (Civil 3D, AutoCAD Map, Architecture: styles, settings, points, surfaces, alignments) are kept byte for byte and go back unchanged when saving as DWG in the same version. The entities of these applications appear through the proxy graphics the file carries.
  • Damaged file. A wrong CRC, a missing section, a page that does not decompress and an unreadable object never prevent the file from opening: whatever can be read is read (like AutoCAD's RECOVER) and the report says what was repaired. Password-protected drawings open without the encrypted data (with a warning).
  • Performance. A DWG with one million objects opens in about 3 to 4 seconds (measured on an Apple M2 Pro), without freezing the window.

Opening a DXF

Reading runs in the background, with progress in the corner of the screen: the window keeps responding even with a file of one million objects (a few seconds). The drawing opens in a new tab, with the file name.

  • Units. An AutoCAD drawing is in drawing units (INSUNITS). BadBit CAD keeps exactly the numbers in the file and uses the file's unit and formats in that drawing (see "Drawing unit and precision", below): a DXF in millimeters opens in millimeters, with the same numbers as AutoCAD on screen, and a UTM survey in meters opens with the coordinates intact down to the last digit.
  • The view. As in AutoCAD, the drawing opens in the view in which it was saved (the active model view, the center and the height) and each layout, the first time it appears, in its paper view; with no saved view (or with a 3D view), it opens at zoom extents, which does not count frozen layers. When saving as DXF or DWG, the current model view goes into the file.
  • Text. Accented characters and symbols come out right in any version: the code page of an older file (ANSI_1252 and the others, including those for Japanese, Chinese and Korean), the UTF-8 of 2007 and later, and the \U+ and \M+ codes. A file that declares a code page but was written in UTF-8 by another program is read as UTF-8, with a warning.
  • What becomes a BadBit CAD object. Lines, polylines (lightweight and old-style, with arcs and widths), circles, arcs, ellipses, splines, construction lines and rays, points, single-line and multiline text, blocks with attributes, inserts (MINSERT becomes an array, with the columns and rows along the insert's axes also when the normal is not the top one; a tilted MINSERT becomes a one-cell array with the copies, each at its own place in space; one that was not changed goes back as a MINSERT in every version, as AutoCAD saves it), dimensions of all types (with the style and overrides), leaders, tolerances, hatches (pattern, solid and gradient, with islands and associativity), four-sided solids, tables, layouts with their page setup and viewports, layers (ACI and true color, linetype, lineweight, on, frozen, locked, plottable), linetypes, text styles (TrueType and SHX; SHX fonts are read from the AutoCAD font folders on the computer, see AutoCAD SHX fonts in the text chapter), dimension styles, multileader styles and table styles.
  • AutoCAD's mirroring. Objects with an inverted extrusion (the ones mirrored in AutoCAD) appear in the right place.
  • What BadBit CAD does not understand (Civil 3D and other application objects, proxy objects, 3D solids, images, extended data) is kept intact. On screen you see the drawing the file carries for those who do not have the application (the proxy graphics), the plan projection of 3D objects and the outline of images. In Properties, the type is "Object from another program", with the original type. These objects can be moved, copied and erased; changing one of them makes BadBit CAD save its drawing in place of the original (with a warning).
  • Damaged file. A truncated file, wrong group codes, duplicate handles, broken references and misplaced values never prevent the file from opening: whatever can be read is read, and the rest is counted in the report, as AutoCAD's AUDIT and RECOVER do.

Drawing unit and precision

Converting coordinates to another unit and back does not always return the same number (in millimeters, 2 out of every 100 coordinates would change in the last digit; in centimeters and in feet, more than 10). In surveying this is not acceptable. Therefore, when opening a DXF or DWG:

  • The numbers stay those of the file. Coordinates are not converted: only the unit (INSUNITS) says what they measure. Saving back to DXF or DWG, in any version, whether or not through .bbd, writes the same numbers, bit for bit (tested with UTM coordinates such as 642776.2149028378 and 8127326.7306 and with files in mm, cm, km and feet).
  • The file's unit and formats apply to that drawing, each tab with its own: the length unit (AutoCAD's 25: inch, foot, mile, mm, cm, m, km, microinch, mil, yard, ångström, nanometer, micrometer, decimeter, decameter, hectometer, gigameter, astronomical unit, light year, parsec and the US survey units), the type and decimal places of lengths (LUNITS, LUPREC) and of angles (AUNITS, AUPREC), the zero direction (ANGBASE), the direction (ANGDIR) and the metric or imperial system (MEASUREMENT). The status bar (with the unit next to the coordinates), dynamic input, LIST, DIST, AREA, ID and the UNITS dialog use that unit; typed coordinates also stay exactly as typed. Saving writes back the same variables.
  • Unitless file (INSUNITS 0, common in older drawings and in surveying): the Drawing unit dialog asks what unit the numbers are in, with meters already selected; "Do not ask again for this file" stores the choice. "Leave unitless" shows the numbers as they are. With FILEDIA 0, INSUNITSDEFSOURCE applies (meters by default), stated on the command line. BadBit CAD never assumes the unit silently.
  • INSERT and XREF from another unit: the block comes in with the numbers of its own file and the insert carries the factor between the units (a file in mm inserted into a drawing in meters comes in with the scale times 0.001), with a warning on the command line. With the same unit, nothing changes.
  • Areas and distances in UTM coordinates are computed without losing precision: AREA, LIST and MASSPROP of a UTM polygon match the value computed by hand to within one millionth of a square meter.
  • Hatch with computed corners, round trip. DXF and DWG only store coordinates, and an intersection point is rounded in the file (in UTM, to half a billionth of a meter): where the straight segment joins two curves (arc, circle, ellipse, spline), reading rebuilds the corner from the curve and the measurement comes back the same; an outline made only of lines whose corners are intersections, or with a trimmed polyline arc (which goes through the center, rounded), comes back with that rounding, which on a 1 cm figure in UTM changes the area by ~1e-7 (the limit of the format).
  • Since 2027.0.0-beta.11 Scale of ANSI hatches in AutoCAD. BadBit CAD's ANSI patterns (ANSI31 to ANSI38) have the standard's measurements, in meters; AutoCAD rebuilds the hatch from its own pattern file (in mm in a metric drawing) when it is edited. So the file carries the scale AutoCAD understands: an ANSI31 at scale 1 in a model in meters shows in AutoCAD with scale 0.0394, and the one on the sheet (1.25 mm between lines) with 0.3937, and editing the hatch in AutoCAD keeps the spacing. Opened back in BadBit CAD, the scale is 1 again (if AutoCAD did not change it). BadBit's other patterns are its own designs: in AutoCAD, editing the hatch switches to AutoCAD's pattern of the same name.
  • Text DXF is written with the smallest number of digits that round-trips to the same value (up to 17; AutoCAD writes 16, which is not always enough).
The unit question for a unitless file
A unitless DXF: meters is already selected.

Import report

The Import report of a Civil 3D project
A project with an object that does not appear and a missing font: the dialog opens by itself and the top says only what looks different from AutoCAD.

The top of the report is for the person using the drawing: it says, in short sentences, only what does not appear or appears differently from AutoCAD. One sentence per topic, for example:

  • "1,166 Civil 3D objects appear only as outlines, as in AutoCAD without Civil 3D; their data is kept." — points, surfaces, parcels, daylight lines: BadBit CAD shows the drawing that Civil 3D saves for those who do not have Civil 3D (the proxy graphics).
  • "2 objects do not appear: the file has no drawing for them (their data is kept)." — for example, an empty surface.
  • "2 objects from other applications show only the drawing stored in the file; their data is kept."
  • "Font italict not found: using the BadBit equivalent (same size)." — one per SHX font that is not in the font folders (the texts use FONTALT, if it is there, or the BadBit CAD equivalent, of the same size).
  • "3 3D objects appear only in plan.", "1 item appears simplified (linetype, hatch or dimension)" — a linetype with text or shapes in use (the dashes remain), a hatch outline, a dimension style adjustment.
  • File defects that change the drawing: "The file is incomplete (cut off)", "N objects with invalid data were left out", "N objects point to a layer, linetype or style missing from the file and use the default", "The DWG has N defects; what could be read appears, as with AutoCAD's RECOVER", "N damaged parts of the file were ignored".

With no differences at all, the top says "The drawing looks as in AutoCAD: nothing was left out or changed."

What is technical or changes nothing on screen goes under Show details (collapsed):

  • Kept intact — the non-graphical objects of the applications (label and table styles, settings nodes, display properties), summed up in one line per application: Civil 3D (AECC_*), AutoCAD Architecture and MEP (AEC_*, AECB_*), AutoCAD Map and geolocation (DM*, MAP*), 3D and rendering and the other applications, by the name the file gives; and where they go back to (DWG or DXF).
  • The groups with their counts — visible but not understood, simplified, repaired or ignored, adjustments with no effect on the drawing (renamed items, UCS, unused complex linetypes), kept.
  • The complete list, type by type — each warning with the object type and how many times, including the repaired defects that do not change the drawing (duplicate handle, text encoding different from the declared one).

Kept intact means that BadBit CAD does not interpret the object, but does not lose it either: it stays with the drawing, byte for byte, and goes back unchanged when saving in the same format — in DWG, in the same source version (the Civil 3D and AutoCAD Map ones also go to the other DWG versions and to DXF — from a DWG 2007 or newer, converted or as proxies; from a DWG 2000 or 2004, as proxies with the data as it was —, as AutoCAD saves them; the architecture objects AutoCAD knows are left out of DXF, as in AutoCAD; in another DWG version or in DXF the others do not go, and the save report says which); in DXF, when saving as DXF. A Civil 3D project has thousands of these objects, and the drawing is complete even so.

The dialog only opens by itself when something appears differently from AutoCAD (or does not appear); the command line says how many differences: "Drawing opened with 4 differences from AutoCAD: see the Import report." When nothing changes on screen (only objects kept intact, adjustments and defects with no effect), the dialog stays closed and the command line says "Drawing opened completely, as in AutoCAD. Technical details: IMPORTREPORT."

A Civil 3D project: the command line and the report opened by IMPORTREPORT
Only application styles and settings: nothing different on screen; IMPORTREPORT opens the report, with the technical part under Show details.

The IMPORTREPORT command opens the report later (also on the Manage tab, DWG and DXF panel). RECOVER always shows the result, even when there is nothing that needs attention; AUDIT gives the result on the command line.

Copy puts the whole report on the clipboard, with the details.

Anonymous blocks in DWG. AutoCAD writes into the DWG the name of anonymous blocks (*U, *X, *D, *T) without the number, which is stored only in the block definition; BadBit CAD reads the number from there (*U9, *X12), as in DXF, and writes it as AutoCAD does. That way Civil 3D volume tables ("Cut/Fill Summary") and the other anonymous blocks appear in place, next to the texts that go with them. The texts of these tables request the font in the text itself — Courier New, the typewriter one, in bold only in the title and the factors —, and BadBit CAD uses the Courier New installed on the computer (without it, the substitute, with the font warning).

Saving as DWG

A drawing opened from a DWG saves back to DWG, in its version. The first time, BadBit CAD asks (as it does with DXF):

Save back to DWG or as .bbd
  • Save as DWG writes to the same file, in its version (the next times it does not ask).
  • Save as .bbd… opens Save As.

To write a DWG from any drawing (a .bbd, a DXF), use SAVEAS with the .dwg extension and choose the version (2018 is the default).

  • What did not change goes back as it came. Each object of the source DWG that BadBit CAD did not change is rewritten with the same bits as the original file (only the links to the other objects are rebuilt), when the version written is the same as the one read.
  • What changed, or was created in BadBit CAD, is written as AutoCAD writes it: the same fields, in the same order, with the same compression choices (checked object by object against AutoCAD files).
  • Another version. Saving in another version converts everything through BadBit CAD; application objects and those that exist only as bytes go only to the source version — in the others they are left out, with the links tidied up, and the save report says which. The exception is Civil 3D objects (and AutoCAD Map objects), which also go to the other DWG versions — from 2000 to 2018 — and to DXF, whatever version they come from (see "Saving a Civil 3D project in another DWG version", below). The render settings, the sun and the AutoCAD Map data table go into every DWG and DXF version, as AutoCAD writes them (the sun does not go to DXF 2000 and 2004, as in AutoCAD). Materials go from DWG to DXF, from DXF to DWG and between all versions, with all their fields, and the entities keep their material; in 2000 and 2004, which do not have translucency, self-illumination, reflectivity and the illumination model, BadBit CAD keeps them in the material as AutoCAD does, and they come back when saving again in 2007 or newer. The material of each entity (ByBlock, Global or its own material), which a 2000 and 2004 entity does not have, goes with it in the extended data, as AutoCAD writes it, and comes back when that file is opened in BadBit CAD or in AutoCAD. Visual styles go from DWG to DXF, from DXF to DWG and between all versions, from 2000 to 2018 (in 2010 and earlier, the properties the version does not have are kept in the style, as AutoCAD does, and come back when saving again in a newer version). When opening a DXF 2000, 2004 or 2007, AutoCAD loses the names of visual styles; BadBit CAD keeps them. Table styles go with their cell styles in every version and in DXF, as AutoCAD writes them (in DXF and in DWG up to 2007 they also go separately, in the cell style map; from 2010 on, only inside the table style), and DXF 2013 or newer carries the layout thumbnail the source file had. The file's named page setups and named plot styles come back in every version, and the drawing variables the version does not have in the header (in 2000 and 2004) go into the variable dictionary, as AutoCAD writes them. Also going to the other version are the page setup of each layout (the device, paper, scale and plot area the file had), the file's extension dictionaries (draw order, the geographic location in DWG, application data), the associativity and the seed point of hatches, splines by fit points (they remain fit-point splines in AutoCAD) and the drawing properties (title, subject, author, keywords, comments and the custom ones), which in 2000 go where AutoCAD keeps them and come back when saving again in a newer version. Detail view and section view styles also go from DWG to DXF, from DXF to DWG and between all versions (the display name, which only 2018 has, is kept in the style in earlier versions, as AutoCAD does; DXF 2000 does not carry their colors, as in AutoCAD).
  • Check. Every DWG written is read back by BadBit CAD itself before it is delivered: an object that would not come back the same (corrupted data coming from the source file) is dropped from the file, with a warning, instead of going in damaged. AUDIT checks the drawing the same way, without saving:
AUDIT on the command line
AUDIT: the drawing as it would go into the AutoCAD file, checked.
  • Performance. One million objects are saved in about 3 seconds, in the background.

Saving as DXF

A drawing opened from a DXF saves back to DXF. The first time, BadBit CAD asks:

Save back to DXF or as .bbd
  • Save as DXF writes to the same file, in its version (the next times it does not ask).
  • Save as .bbd… opens Save As (.bbd keeps everything, including what BadBit CAD does not understand in the DXF).

What did not change in BadBit CAD goes back exactly as it came from the file (with the handles, the extended data, the Z of the points and everything BadBit CAD does not use), when the version written is the same as the one read. What changed, or was drawn in BadBit CAD, is written from BadBit CAD, carrying along from the original what it can (the extended data, the Z). Saving in another version converts everything through BadBit CAD.

What the chosen version does not have is converted into what it has, and the save report says what:

In BadBit CADIn DXF
Multileader (MLEADER)Classic leader (LEADER) and multiline text.
Table in 2000 and R12An anonymous block with the lines, texts and backgrounds (looks the same; from 2004 on it goes as a table, see below).
Associative arrayAn anonymous block with the items.
RegionThe polylines of the outline and the holes.
Gradient in 2000Solid in the first color.
Background mask and defined height of multiline text in 2000In the text's extended data, as AutoCAD writes them; they come back when opened in AutoCAD or in BadBit CAD.
Multiline attribute before 2018One attribute per line (OBS_001, OBS_002...), with the original kept in the first one, as AutoCAD writes it; it becomes a multiline attribute again when opened in AutoCAD or in BadBit CAD (also those AutoCAD saved this way).
True color (RGB) in 2000The nearest color index (ACI), by the AutoCAD palette. In DWG 2000 the RGB goes separately, as AutoCAD writes it, and comes back when opened in AutoCAD or in BadBit CAD; in DXF 2000 it is lost (AutoCAD loses it too).
In R12: lightweight polyline, ellipse, spline, multiline text, hatch, leader, tolerance, construction lineOld-style polyline, polylines, single-line texts, the pattern lines, the parts, long line.

Saving tidies up the links between objects as AutoCAD's AUDIT would: unique handles, the extended data applications registered, and references to objects that no longer exist (erased in BadBit CAD) nulled or removed from groups and dictionaries. The same check as AUDIT runs in BadBit CAD's tests on every file written.

What goes natively to AutoCAD

Besides the drawing objects, these drawing data go into DXF and DWG as AutoCAD writes them, and come back when opening:

  • Tables (from 2004 on): they go as an AutoCAD table (ACAD_TABLE), with the graphics block that AutoCAD shows until it regenerates the table. Each cell carries the text it shows (the formula already computed, the number in its format), the text rotation and what it overrides from the style (alignment, background, text color and height, the four borders). The table style goes complete: the title, header and data rows with the six borders and, from 2007 on, all cell styles — yours too —, with the text rotation, the margins and the border linetype. In DWG from 2010 on, the table also carries the cell style of each row and each cell and the table breaking (the parts, the maximum height and the spacing). In 2000 (which has no tables) the block goes, as AutoCAD saves it.
  • Nothing is lost in the round trip. What AutoCAD does not keep in the table (the minimum row heights, the format with the unit and separator, the breaking in DXF, the cell styles before 2007) goes along, in a BadBit CAD data record that AutoCAD carries without touching. When opened back, the table and the style return exactly as they were, in any version. If the table was changed in AutoCAD (a text, a row, a column, the position) or the style was changed there, what AutoCAD saved prevails.
  • Scale list (SCALELISTEDIT, from 2007 on): the drawing's list goes into the file's scale dictionary (ACAD_SCALELIST) and comes back when opening. When edited in BadBit CAD, scales with the same name stay the same for AutoCAD (the annotative objects that use them are not lost); an erased scale that some annotative object still uses stays, as AutoCAD does.
  • Active layout: saved with a layout on screen, the file writes $TILEMODE 0 and that layout as the active one; AutoCAD (and BadBit CAD) open in it.
  • Current table style (CTABLESTYLE) and current multileader style (CMLEADERSTYLE): they go into the DXF header and the variable dictionary (their place in DWG), and CTABLESTYLE is also kept in .bbd.
  • Color book colors: the colors of an AutoCAD color book (RAL, PANTONE...) that the file carries in layers, objects and the background of multiline text come back with the book and color name next to the RGB. When you change the color of an object in BadBit CAD, the name goes away (the new color is not from the book). In DWG the name goes in the layers and the text background; in ordinary objects the color points to a color object (DBCOLOR) with the name, kept in the drawing's color dictionary (ACAD_COLOR), which BadBit CAD reads and writes (from 2004 on; in DXF both go, the name in the object and the color object). The form of this object in DWG has not yet been checked against an AutoCAD file with a color book color (comparison phase); a color object of another form is kept as it came. Inside multiline text, AutoCAD keeps only the RGB (so does BadBit CAD).
  • ANNOALLVISIBLE (from 2007 on): it goes into the DXF header ($ANNOALLVISIBLE) and the variable dictionary (its place in DWG, which has no header field for it), and comes back when opening.
  • Unit of external references (from 2007 on): the file unit of each external reference, stored by XATTACH, goes into the reference's block record (the INSUNITS of the BLOCK_RECORD) and comes back when opening; XREF uses it for the insert factor when reloading.
  • Thumbnail: DWG and DXF files saved by BadBit CAD carry the drawing thumbnail (the preview that AutoCAD's Open dialog, Windows File Explorer and the Start tab show), drawn by the CPU at save time, in a thread, with the current view (the model as it is on screen, or the sheet of the current layout), as AutoCAD does: in DWG, the preview section with the BMP (up to 2010) or the PNG (from 2013 on); in DXF, the THUMBNAILIMAGE section. Without the screen ready (before the first frame), the whole drawing is used; in that case, very large drawings (more than 300,000 objects) are saved without a new thumbnail, so as not to slow down saving.
  • Associative dimensions (DIMASSOC 2): the link of each dimension to the geometry goes in the DIMASSOC object, as AutoCAD writes it, in any version, also at the intersection of two objects, at the end of an elliptical arc and in the angular dimension between two lines (which AutoCAD links by the four ends of the lines and BadBit CAD by their intersection: writing and reading convert from one form to the other); AutoCAD's come back linked in BadBit CAD (see "Associative dimensions" in the dimensions chapter). Only the point on the curve of a radius dimension stays in BadBit CAD (AutoCAD keeps only the center).
  • Constraints and parameters (from 2000 on; in DXF, 2010 and 2018): geometric and dimensional constraints and the variables of the parametric drawing go into AutoCAD's associative network, as it writes them in each version; AutoCAD recognizes them and keeps them when editing (also those on splines, on the end of the ellipse axis and those in paper space), and its own come back as BadBit CAD constraints, editable (see "Constraints in DXF and DWG" in the parametric drawing chapter). Their reserved layer, *ADSK_CONSTRAINTS, goes without the * in DWG 2000 and 2004, as AutoCAD writes it. The dimensions of dynamic dimensional constraints, which AutoCAD keeps on that layer, stay with the constraint: they do not appear as ordinary dimensions in BadBit CAD and go back to the file only once, without a block, as it writes them.
  • Dimension variables: the file header carries the dimension variables of the current dimension style with its overrides (DIMTXT, DIMZIN... typed or set with SETVAR), as AutoCAD writes them; when the file is opened (in AutoCAD or in BadBit CAD), those that differ from the style come back as overrides of the current style, and new dimensions come out like the earlier ones. Each dimension keeps the overrides it was created with, so reopening the file does not change existing dimensions. A dimension style with AutoCAD's default values (DIMZIN 0, DIMDEC 4, . separator), which AutoCAD does not write to the file, also comes back the same.
  • Hidden attributes of dynamic blocks: the value of an attribute hidden by the visibility state goes into the file (the attribute comes out invisible in the insert) and comes back when opening.
  • Named filters (FILTER): they go into a BadBit CAD record in the drawing dictionary and come back when opened in BadBit CAD. AutoCAD keeps its filters outside the drawing (in the user's filter.nfl file), so it does not see them; it only keeps them intact.
  • 2D solid (SOLID and TRACE, the four-corner fill): BadBit CAD shows it as a solid hatch, and it goes back as SOLID in any DXF and DWG version, also inside blocks, as AutoCAD writes it (before, saved in another version, it became a hatch).
  • Handles: every object opened from a DWG or DXF keeps the file's handle when saved without editing — also those of paper space, the model layout and multiline styles —, which is what Civil 3D and other applications use to link one object to another.

Round trip through .bbd

Saving as .bbd a drawing opened from DWG or DXF keeps along everything that came from AutoCAD (including the bytes of the DWG objects); opening that .bbd and saving as DWG or DXF gives the same file as saving directly from the opened drawing.

External references and file blocks

External references (XATTACH, XREF) and INSERT of a file accept .dwg and .dxf. As in AutoCAD, inserting a drawing also brings the used layers, linetypes and its text, dimension and table styles that do not yet exist in the current drawing: this is the way to bring in the styles of a template saved as DXF.

Civil 3D objects

A project made in Civil 3D brings objects that only Civil 3D understands: COGO points, TIN surfaces (with contours), parcels, alignments, feature lines, gradings and their labels. BadBit CAD shows these objects as AutoCAD without Civil 3D shows them: through the proxy graphics, the drawing that Civil 3D saves with each object for those who do not have the program. What appears is exactly what the file carries. Many projects carry only the box of each object and the class name (for example, "AeccDbCogoPoint (AeccLand120)"): this is the same as what plain AutoCAD shows from that file. To see contours and labels as ordinary drawing objects, use the "Export to AutoCAD" command (EXPORTTOAUTOCAD) in Civil 3D before sending the file.

A Civil 3D project opened: the COGO points and the surface through the proxy graphics, in the Import report

What you can do with them:

  • View: colors, layers and linetypes follow AutoCAD's rule. What the proxy graphic does not define comes from the object (like ByBlock); what it defines (color, layer) prevails. Turning the layer off or freezing it hides the object. An empty object (a surface with no data, which Civil 3D saves with its box far away, at 1e20) does not appear and does not spoil zoom extents (ZE).
  • Select: by click, by window and by crossing window, like any object.
  • LIST and Properties: LIST says "Civil 3D object (AECC_COGO_POINT), shown by its proxy graphics, read-only" and whether Civil 3D allows erasing it. In the Properties palette, the "Shown by" row says "Proxy graphics, read-only".
  • Read-only: move, rotate, scale, mirror, stretch and changing layer or color are refused. The command line warns you, and the drawing stays as it was. This is what AutoCAD does with a proxy object without "editing allowed": changing its drawing without Civil 3D would break the object. In a mixed selection, the other objects change and the Civil 3D ones stay.
  • Erase: follows the permission that Civil 3D itself writes in the class. Surfaces, parcels, feature lines and labels can be erased; COGO points cannot.
  • Copy: the copy takes only the drawing (the proxy graphics), without the Civil 3D data. It can be edited, and when saved as DWG or DXF it becomes ordinary lines and texts.
LIST of a COGO point
MOVE refused on a COGO point

Saving. Saving as DWG in the version of the source file returns each Civil 3D object with the same bytes: Civil 3D opens the file with everything as it was. In another DWG version they go converted (below). In DXF (2000 to 2018) they go as proxies, as AutoCAD without Civil 3D writes them: each object with its data, texts and links, and the proxy drawing; Civil 3D's associative actions are left out and the associative network goes without them, also as in AutoCAD. When that DXF is opened and saved as DWG 2018, the objects return to their class (as AutoCAD does); in the other DWG versions they remain proxies. The open drawing keeps them: saving later as DWG in the source version returns everything.

The Import report counts, by class, the "Civil 3D objects shown by their proxy graphics" (AECC_COGO_POINT, AECC_TIN_SURFACE...).

Civil 3D points

The COGO points of a Civil 3D DWG (2000 and later) are not limited to the proxy box: BadBit CAD reads from the file the number, easting, northing, elevation and description of each point, like AutoCAD with the Civil 3D Object Enabler. The point appears at its exact position, with the marker and label of the project's point style and label style (see "Civil 3D styles", below); with no readable style, with the default marker and label: number, elevation (three decimal places) and description.

COGO points read from the file: the marker at the exact position and the label with number, elevation and description
  • Label: only the components the label style shows, each with its own height and color. When the style the point group points to hides all components (the template "Standard" of the collection), BadBit CAD uses the next label style in order, the default of the point settings (in the dam project, PONTO_COTA_DESC: number, description in green and elevation in red, 0.2 m at 1:1000). This order is assumed and is being checked against Civil 3D.
  • Marker: the one from the point style (shape, size, layer and color). If the style cannot be read, an X the size of the box Civil 3D saves around the point, with the point object at the center, drawn with the drawing's PDMODE and PDSIZE, and the label with letters half the size of the X.
  • Snap: Node picks the exact point (Civil 3D's easting and northing, without rounding).
  • LIST: says "Civil 3D COGO point (AECC_COGO_POINT), read from the file, read-only", the number, easting, northing, elevation and description.
  • Properties (Ctrl+1): the rows Number, Easting, Northing, Elevation, Description, Point style and Label style, read-only; "Shown by" says "Point read from the file, read-only". With several points selected, what differs appears as "mixed". LIST also shows both styles.
  • The point remains read-only and cannot be erased (as before), and goes back to the DWG with the same bytes.
  • The description shown is the raw one (the one typed in Civil 3D); the full description from description keys is not read yet.
LIST of a COGO point read from the file
Properties of a COGO point read from the file

In the Import report, the points read count as "Civil 3D COGO points read from the file", among the objects kept intact, and not as visible but not understood. If a point cannot be read (a different format), it appears through the proxy graphics, like the other Civil 3D objects. In DWG 2000 and 2004 the texts of Civil 3D objects sit in the middle of the data, in a place that has not yet been checked against a Civil 3D file: BadBit CAD looks for the description of each point and only accepts the table when everything matches; if it does not match, the point appears through the proxy.

Civil 3D surfaces

The TIN surfaces of a Civil 3D DWG (2000 and later) are not limited to the proxy box either ("AeccDbSurfaceTin (AeccLand120)"): BadBit CAD reads from the file the vertices and triangles of each surface, its name and style, and shows it as Civil 3D shows it in plan, with what its style turns on:

  • Contours: minor and major at the style interval (for example, 0.1 m and 0.5 m, or 1 m and 5 m). If the style cannot be read, minor contours every 1 unit and major every 5, with a 0.35 mm lineweight. Contours are computed when the file is opened, in parallel, by the same computation as LANDXMLIN.
  • Border: the outline of the visible triangles.
  • Triangles and points (the vertices, drawn with the drawing's PDMODE and PDSIZE), when the style turns them on.
  • A surface with a style that turns everything off (for example, volume surfaces with the "INVISIVEL" style) does not appear, as in Civil 3D; the data remains in the drawing (LIST and Properties). If the style cannot be read, the border and contours appear.
  • Triangles hidden in Civil 3D (outside the border or deleted) are left out of the contours and border.
A Civil 3D surface read from the file: contours and border
  • Colors and layers: each component with the style's layer, color, linetype and lineweight (ByLayer, ByBlock or its own color), as in Civil 3D; the style's layer "0" is the surface's layer. With no readable style, everything follows the layer and color of the surface.
  • Snap: Endpoint and Nearest pick the contours and border.
  • LIST: says "Civil 3D TIN surface (AECC_TIN_SURFACE), read from the file, read-only", the name and style, how many vertices and triangles, the minimum, maximum and mean elevations and the 2D (in plan) and 3D (on the surface) areas.
  • Properties (Ctrl+1): the rows Surface name, Surface style, Vertices, Triangles, Minimum elevation, Maximum elevation, Mean elevation, 2D area, 3D area, Minor interval and Major interval, read-only; "Shown by" says "Surface read from the file, read-only"; and Show triangles (see below).
  • The surface remains read-only (it can be erased, as before) and goes back to the DWG with the same bytes.
  • The elevations and the vertex count include all points of the surface, including those outside the border; the areas and contours, only the visible triangles.
LIST of a surface read from the file
Properties of a surface read from the file

In the Import report, the surfaces read count as "Civil 3D TIN surfaces read from the file", among the objects kept intact, and not as "shown only as outlines". If a surface cannot be read (a different format), it appears through the proxy graphics, as before.

Grid, slope arrows and watersheds. When the surface style turns these components on, BadBit CAD draws them with the layer and color of each one. Civil 3D does not save these drawings in the file (it rebuilds them), so BadBit CAD does its own computations on the triangles:

  • Grid: the lines of constant X and Y, clipped to the surface, every 10 intervals of the minor contours.
  • Slope arrows: one per triangle, at its middle, pointing downhill, the size of the triangle.
  • Watersheds: water flows from triangle to triangle along the steepest slope; triangles that reach the same low point or the same stretch of the border form a watershed, and the drawing is the boundaries between them.

The grid interval comes from the style (the lines in the X direction and the Y direction with the two values the style stores and that BadBit CAD assumes to be the grid intervals; without them, every 10 minor contours). The arrow size the style stores is not read yet. The report mentions both under "Show details" (grid-interval, slope-arrow-length).

A surface with the grid, the slope arrows and the boundary between two watersheds

Grid surfaces are not read yet, and user contours, directions, elevations and slopes are not drawn: when the style turns one of them on, the report says which under "Show details".

Civil 3D styles

BadBit CAD reads the project's styles and draws points and surfaces as the style specifies, like AutoCAD with the Civil 3D Object Enabler:

  • Surface style: the components turned on in plan (points, triangles, border, major and minor contours), each with its own layer, color, linetype and lineweight, and the interval of minor and major contours.
  • Point style: the marker — the AutoCAD point (by PDMODE and PDSIZE), a custom marker (dot, none, +, X or tick, with a circle and/or square around it, the same as PDMODE) or a block of the drawing —, the size (by the drawing scale, fixed or in units) and the layer and color of the marker and label.
  • Point label style: the text components (number, elevation and description), with the decimal places and decimal separator (period or comma) of the elevation field, whether the component is visible, the height and color of each component's text, the component each one is anchored to, the anchor point on it (bottom left, middle right...) and the X and Y offsets, the text style and the layer of the label.

The size "by the drawing scale" (of the marker and the text, in millimeters on paper) uses the drawing's annotation scale (the one on the status bar, CANNOSCALE): 2 mm at 1:500 gives 1 m in the drawing. Without an annotation scale, 1:1000 applies.

Civil 3D points use the style of the point group (the first one, in display order, that has one) or the default of the drawing's point groups; points do not store their own style in this format.

A surface and points drawn by their styles: red major contours every 2.5 and gray minor contours every 0.5, green border, X marker with circle and label with number, elevation with a comma and description

Show triangles. In the Properties palette of a surface, the Show triangles row turns triangles on even when the style does not show them (Yes/No). It applies only to the session: it does not change the style, does not go into the DWG or the .bbd, and Undo (Ctrl+Z) reverts it. The triangles appear with the layer and color of the style's "triangles" component. When the style already shows the triangles, the row says "Yes (by style)".

Properties of a surface: contour intervals and Show triangles
The same surface with the triangles requested in Properties

What is not read yet (the Civil 3D default applies; the Import report says which under "Show details", without changing the summary):

  • the attachment of each label component (the corner of the text that sits at the anchor point): BadBit CAD assumes the one opposite the anchor point (attached below another component, the text hangs downward) and always on the left;
  • the text height of a component that does not carry it (2.5 mm on paper applies);
  • label fields other than number, elevation and description, and units other than meters in the field;
  • the "relative to screen" marker size (used as drawing units).

How BadBit CAD deciphered the styles (from the files alone) is described in docs/formatos/civil3d-estilos.md.

Civil 3D parcels, feature lines and alignments

The feature lines of a Civil 3D DWG (2000 and later) are not limited to the proxy box ("AeccDbFeatureLine (AeccLand120)"): BadBit CAD reads from the file the vertices of each one, with the elevation of each vertex, the arc sides, the name, the style and the site, and shows it as the polyline it is in Civil 3D.

Two feature lines read from the file (the pad and the toe of slope) and the grading through the proxy
  • Drawing: the closed polyline, with arcs on the arc sides, on the layer and in the color of the feature line (the Civil 3D feature line style is not followed yet).
  • Snap: Endpoint, Midpoint and Nearest pick the vertices and sides.
  • LIST: says "Civil 3D feature line (AECC_FEATURE_LINE), with the data read from the file, read-only", the name, style and site, how many vertices and whether it is closed, how many arc sides (when there are any), how many PIs and how many elevation points (when there are any: BadBit CAD calls an elevation point a vertex in the middle of a straight segment, with no change of direction; the file does not distinguish the two), the 2D and 3D lengths (arcs by their arc length), the minimum and maximum elevations and the plan area (with the arcs).
  • Properties (Ctrl+1): the rows Civil 3D type, Name, Style, Site, Vertices, Closed, Arc sides, PI points and Elevation points (assumed), 2D length, 3D length, Minimum elevation, Maximum elevation and Area, read-only; "Shown by" says "Polyline read from the file, read-only".
  • The feature line remains read-only (it can be erased) and goes back to the DWG with the same bytes.
  • Each feature line is linked to its vertices by the site list (the same order in which the site stores the segments), no longer by the proxy box; the box only applies when the list does not match.
LIST of a feature line read from the file
Properties of a feature line read from the file
A feature line with two arc sides and its Properties: Arc sides 2

The other Civil 3D linear objects:

  • Parcels (AECC_PARCEL): each Civil 3D site has an "outer face" saved as a parcel, with no outline, which Civil 3D does not draw. BadBit CAD recognizes it by the site name ("Site 1") and does not draw it either (before, the proxy's template box appeared at the drawing origin). LIST and Properties give the site name and the parcel style. Parcels with an outline are not read yet: they appear through the proxy graphics.
  • Gradings (AECC_GRADING): see just below.
  • Alignments: station labels (major and minor) and geometry point labels (PC, PT, TS...) of an alignment that is not in the file (the label group was left without an alignment) do not appear, as in Civil 3D; LIST gives the label style. The geometry of the alignment itself (tangents, curves, spirals, starting station) is not read yet: an alignment in the file appears through the proxy graphics.

Civil 3D gradings

Civil 3D keeps the face model of each grading (the slopes and the platforms, as a sheet solid) inside the site. BadBit CAD reads that model and draws the grading as its lines, in place of the proxy box ("AeccDbGrading (AeccLand120)"):

A slope read from the file: the crest, the toe and the lines between faces
  • Drawing: the edges of the faces in plan, each one only once: the crest (the highest border), the toe (the lowest border) and the lines between faces (the projection lines and the face diagonals), with the rounded corners as arcs, on the layer and in the color of the grading. The Civil 3D grading style is not followed yet (slope patterns, for example, do not appear).
  • LIST: says that the lines come from the face model kept in the site, the site, the grading group, the reference point, how many faces and edges between faces, the plan length of the crest and the toe, the plan area and the face area (sloped), the minimum and maximum elevations, the slope of the planar faces (horizontal to vertical, "4:1") and the cut and fill volume against the existing surface (below).
  • Properties (Ctrl+1): the rows Faces, Edges between faces, Crest (in plan), Toe (in plan), Plan area, Face area, Minimum elevation, Maximum elevation, Slope (H:V), Existing surface (volume), Cut volume, Fill volume and Net volume, read-only; "Shown by" says "Faces read from the file, read-only".
  • The grading remains read-only (it can be erased) and goes back to the DWG with the same bytes.
  • When Civil 3D saved the proxy "without graphics" (the small box at the drawing origin), the site's face model is enough on its own: the grading appears through its lines.
  • A grading with no model in the site is treated as an infill (assumed: it fills the closed area without projecting anything) and appears through the outline of the smallest closed feature line of the same site that contains the grading's reference point (assumed: the point clicked inside the area when creating the infill), checked against the proxy box; without the point, the feature line with the proxy box. It is flat at that feature line's elevation. LIST says "Infill (assumed...)", the area and the elevation; Properties have the Infill (assumed) row and "Shown by" says "Outline of the site feature line (assumed infill), read-only". Without that feature line, the grading stays as its proxy graphics, with the site, the group and the reference point.
  • Cut and fill volume: the computation is BadBit CAD's. The faces of the grading (or the outline of the infill, flat) are intersected with the triangles of the existing surface, and in each piece the elevation difference gives the exact volume: cut where the face is below the surface, fill where it is above, the net (fill minus cut) and the common area (the part of the face outside the surface does not count). The existing surface is the last one the grading group lists (in a typical project: the group surface and then the existing ground); a grading outside a group uses the one of the only group in the same site; and a grading in a site with no group uses the only existing surface that covers the whole grading in plan (assumed: Civil 3D only computes grading volume within a group; volume and group surfaces do not count). With no existing surface, LIST says the volume was not computed. It is a quantity: it does not say whether the design meets any criterion.
  • Computation trace: LIST shows, right below the volume, how many face triangles were used against how many of the existing surface, how many common pieces in plan, and the tessellation chord (the largest deviation between the curved faces and the mesh triangles). The chord is zero when the computation does not use the mesh, which is the normal case: planar faces with straight sides go in through their own triangles (exact); curved faces (cones, NURBS and the others) and faces with curved edges go in through the model's exact geometry (the exact elevation of the face integrated in strips against each triangle of the existing surface, split where the elevation difference becomes zero, including where the face only touches the base, with a requested relative error of 10⁻¹²); and in an infill with arcs each arc of the outline goes in as the exact circular segment. Only a face whose exact computation does not close (for example, a face that folds over itself in plan) goes in through the mesh, and then the chord appears, along with how the base was chosen and the method (prisms between the overlapping triangles, exact integral of the elevation difference, cut and fill separated along the line where the difference becomes zero). Properties have the rows Base chosen by, Triangles (faces / base), Common pieces (volume) and Tessellation chord (volume).
  • Grading group total: for a grading in a group, LIST and Properties also show the group total — the group surface against the existing surface, as Civil 3D computes the group volume —, with cut, fill, net and common area (Properties: Group surface (volume), Group cut, Group fill, Group net). When the drawing has a Civil 3D volume surface that compares the same two surfaces, its name appears (Properties: Civil 3D volume surface (same surfaces)): its "Cut/Fill Summary" table is the one to check against. In the test project, the group total gives 10,666.00 m³ of cut and 1,172.34 m³ of fill, the same numbers as the "VOL ESCAVAÇÃO" table that Civil 3D saved in the drawing.
  • The computation runs in parallel, while the file is being opened (off screen: BadBit CAD keeps responding).
LIST of a grading read from the file
Properties of a grading read from the file
LIST of an infill: the outline, the area, the elevation and the volume against the existing surface
Properties of a slope with the cut volume, the fill volume and the net

In the Import report, the feature lines read count as "Civil 3D feature lines read from the file", the gradings drawn from the model as "Civil 3D gradings drawn from the face model", the infills as "Civil 3D gradings with no faces in the site shown as infill" and the objects Civil 3D does not draw as "Civil 3D objects that Civil 3D does not draw", among those kept intact; only what remains as proxy graphics (gradings with no model) counts as "shown only as outlines". If an object cannot be read (a different format), it appears through the proxy graphics, as before. Parcels, gradings and alignment labels are also read from a DWG 2000 or 2004 (their texts, which in these versions come in the middle of the data, are looked for there).

Saving a Civil 3D project in another DWG version

A Civil 3D project opened from a DWG 2007 or newer can be saved in another DWG version — 2013, 2010, 2007, 2004 or 2000 (SAVEAS, .dwg extension, the version) — with the Civil 3D objects: COGO points, surfaces, feature lines, gradings, parcels, labels, styles and settings go along, and BadBit CAD reads them back the same (same points, same coordinates and elevations, same triangles).

In DWG 2013, 2010 and 2007 the Civil 3D and AutoCAD Map objects go as proxies, with the 2018 data whole, as AutoCAD without Civil 3D writes them (checked against the same drawing saved by AutoCAD in each version: the same data, the same texts and the same links); the architecture objects AutoCAD knows (the styles and display properties AEC_*) go in their own format, with the same data (the save report counts these as "written with the same data"). BadBit CAD, like Civil 3D, takes the objects out of these proxies when opening.

  • Civil 3D's associative actions (for example, offset alignments that follow the main alignment) are left out in another version, and AutoCAD's associative network goes without them, as AutoCAD writes it; in the same version (2018) everything goes back as it came.

Project saved in DWG 2000 or 2004. A Civil 3D project opened from a DWG 2000 or 2004 can also be saved in any other DWG version (2000 to 2018) and in DXF: the Civil 3D and AutoCAD Map objects go as proxies, with the source version's data whole, as AutoCAD without Civil 3D writes them (checked against the same drawing saved by AutoCAD in each version: the same counts, the same data), and the architecture objects AutoCAD knows go in the chosen version's own format. Civil 3D (and BadBit CAD) take the objects out of these proxies when opening; saved again in the source version, the drawing comes back with them as they were. Before, a project saved in DWG 2000 lost all Civil 3D objects in any other version, and one in 2004 lost part of them (and all of them in DXF). AutoCAD Map objects that come in a DXF (the Map display manager) also go to the other DXF versions and to DWG as proxies, with the data table and the geographic location, as AutoCAD writes them.

In DWG 2004 and 2000 (from a 2007 or newer project) the conversion is larger.

In these versions the DWG keeps the texts of each object in the middle of the data (from 2007 on they are kept separately), in a place that changes from class to class. BadBit CAD writes each object in one of these ways (the save report shows them as "template", "no texts" and "proxy"):

  • template: the object is identical to one AutoCAD wrote in DWG 2004 (compared with reference files): the texts go in the place AutoCAD used (mostly the settings and styles that come from the Civil 3D template);
  • no texts: the object has no texts and goes as it is (COGO points, for example, in 2004);
  • proxy: all the others go wrapped in a proxy, with the Civil 3D data whole, as it was. This is exactly what AutoCAD without Civil 3D writes when it saves a Civil 3D project in DWG 2004 or 2000 (checked with AutoCAD itself): AutoCAD opens the file without errors, and Civil 3D, when opening, takes each object out of the proxy, as it does with any drawing that went through plain AutoCAD.

BadBit CAD also reads these proxies: a Civil 3D project saved in DWG 2004 or 2000 by plain AutoCAD opens with the points, surfaces and other Civil 3D objects, like the original.

AutoCAD 2027 opens the 2004 and 2000 files written this way without AUDIT errors. Reading by Civil 3D has not been checked yet: open the saved file in Civil 3D to confirm before delivering it to someone.

  • In DWG 2004 and DWG 2000 all Civil 3D objects go, except the associative actions, which depend on AutoCAD 2010's associative network (which 2004 and 2000 do not have).
  • In DWG 2000 the colors inside Civil 3D objects have another format: only the color number (ByLayer, ByBlock or the color from 1 to 255), without the RGB. In template objects, BadBit CAD converts the colors by the rule of each class, taken from the reference drawings saved by AutoCAD in 2004 and in 2000; the others go as proxies (without conversion: the proxy carries the 2007-and-later data). The report counts, by class, the objects "with their colors converted to DWG 2000".
  • The architecture objects AutoCAD writes in the DWG 2004 native format (a Civil 3D project saved in 2004 by plain AutoCAD has hundreds of them) return to the 2007-and-later format when that 2004 file is saved in 2007, 2010, 2013 or 2018, and go to 2000, as AutoCAD does (the texts taken from the middle of the data by the same templates). The settings object (AEC_VARS_DWG_SETUP) also goes back from AutoCAD's 2004 to 2007 and later.
  • The settings object (AEC_VARS_DWG_SETUP) also goes in its native format from 2018 (or 2007 to 2013) to 2004 and 2000, as AutoCAD writes it; before, it went as a proxy. It ends with a stamp of the program that wrote it (two numbers: AutoCAD 2027 always writes 9 and 0, Civil 3D writes its own): BadBit CAD keeps the one from the source file; the rest comes out bit for bit like AutoCAD's.
  • The display properties of structural members (AECS_DISP_PROPS_MEMBER_PLAN, _PLAN_SKETCH and _PROJECTED) written by an older Civil 3D are in an old form, which AutoCAD 2027 updates when opening and writes in the new form in all versions. BadBit CAD does the same when saving in another version (2000 to 2018): they come out bit for bit like AutoCAD's, and in 2000 they go in their native format, with the colors converted (before, they went as proxies). In the same source version they go back as they came.
  • In DWG 2000 every proxy object carries, as in AutoCAD, the ACAD extended data with the DXF name of the class (AcRTDxfName).
  • Section and detail view styles, visual styles, materials, render settings, the sun and the data table go converted.
  • The save report says, by class, how many Civil 3D objects were written and in which way ("template", "no texts" or "proxy"), how many had their colors converted in 2000, and how many were left out and why. An object that could not be written safely is never written halfway: it is left out and goes into the report.
  • Saving again in DWG 2004 the DWG 2004 written by BadBit CAD returns the Civil 3D objects with the same bytes.
  • A Civil 3D project saved in DWG 2004 or 2000 by plain AutoCAD (with the objects as proxies) also goes to DWG 2018, 2013, 2010 and 2007 and back to 2000 with the Civil 3D objects (their data is the 2018 data, which the proxy keeps).

Proxies between DXF and DWG and between versions

Objects that AutoCAD without the owner application writes as proxies (ACAD_PROXY_OBJECT and ACAD_PROXY_ENTITY; in a DXF saved from a Civil 3D project these are all the Civil 3D objects) go whole to any DXF and DWG version from 2000 on, from a DXF or from a DWG: the same objects, the list of classes they depend on, the data and the texts in the form of each version (in 2000 and 2004 the texts are inside the data, as AutoCAD writes them) and the entities by their record, without exploding into the graphics. The ownerless proxies Civil 3D writes (label styles) also go. Checked with AutoCAD 2027: the Civil 3D project saved by it in DXF 2010 and written by BadBit CAD in DWG and DXF 2000 to 2018 opens without AUDIT errors, with the same proxies as the file AutoCAD itself writes from the same DXF.

When going to another version with the proxies, AutoCAD objects whose form changes from version to version go converted (detail and section view styles, visual styles, materials).

An entity on a layer that is not in the table of the DXF gets that layer (color 7, Continuous), as AutoCAD does when opening the file, and goes back through the stored record. An arc or circle on a vertical plane (perpendicular to the XY plane) appears in plan as the segment it is when seen from above and goes back unchanged when saving in the same version.

3D solids (3DSOLID, REGION, BODY) and surfaces

AutoCAD 3D solids (3DSOLID), regions (REGION), bodies (BODY) and surfaces (SURFACE, PLANESURFACE, EXTRUDEDSURFACE, LOFTEDSURFACE, REVOLVEDSURFACE, SWEPTSURFACE and NURBSURFACE) are read by BadBit CAD's own B-rep kernel: the exact geometry of each face (planes, cylinders, cones, spheres, tori, NURBS surfaces and the procedural surfaces — offset, revolved, extruded, sum — evaluated from their definition even when the file does not carry the approximation) and of each edge comes from the ACIS data the file carries, in any DXF and DWG version (text SAT from 2000 to 2010 and binary SAB in the newer versions).

Checked with AutoCAD 2027. Solids made in AutoCAD itself (box, sphere, cylinder, cone, torus, wedge, pyramid, polysolid; extrusions of a polyline with arcs and of a spline, with and without taper; partial and full revolutions; sweep and loft; union, subtraction and intersection; edge fillet and chamfer; slice; rotated, mirrored and scaled solids), regions (from a circle, from a polyline with an arc and with a hole) and surfaces (planar, extruded and revolved), saved in DWG 2000, 2004, 2007, 2010, 2013 and 2018 and in DXF 2000 and 2018, open in BadBit CAD in the same place and with the same bounding box and the same centroid that AutoCAD's MASSPROP gives; the volume (or the area and perimeter) matches to the decimal places AutoCAD prints, with a difference of a few ten-thousandths on some curved faces. In a DWG 2013 or newer, the solid data sits in a separate section of the file, and BadBit CAD reads it from there.

On screen, each solid appears as AutoCAD shows it in top view in 2D wireframe: the projected edges (exact lines, arcs, circles and ellipses; NURBS curves also exact), the silhouettes of curved faces (the outline of a sphere, the two generator lines of a lying cylinder, the two circles of a torus) and the isolines of curved faces, in the number set by the drawing's ISOLINES variable (4 if the file does not say): the generator lines of the cylinder and cone, the meridians and equator of the sphere, the circles of the torus in both directions, the internal lines of NURBS. Planar faces have no isolines.

The same solids with isolines: the meridians and equator of the sphere, the circles of the torus and the middle generator line of the lying cylinder
Solids read from a DXF: an L-shaped extrusion, a standing cylinder and a lying one, a sphere, a torus and a hexagonal region

A solid is selected by its edges, is included in ZE (zoom extents) and has snaps on its edges and vertices: endpoint and midpoint of straight edges, center of circular edges (a standing cylinder gives the center through the circle of its cap) and the points of the silhouettes.

LIST gives the type, the modeler that wrote it (ACIS or ASM and the version), the lumps, faces, edges and vertices, the surfaces by type, the volume and surface area (for a region, the area and perimeter), the centroid and the bounding box in 3D and, on the last line, the measurement source (see below):

LIST of a cylinder read from the file: volume, surface area, centroid and bounding box

Properties show the same summary (modeler, main surface, faces, edges, volume, area, measurement source and centroid), read-only:

Properties of a solid read from the file

MASSPROP accepts the solids and regions read: for a solid, mass (density 1, as in AutoCAD) and volume; for a region, area and perimeter; for both, the bounding box and the centroid. For a solid, as AutoCAD lists them, there are also the moments of inertia about the drawing's X, Y and Z axes, the products of inertia XY, YZ and ZX, the radii of gyration and the principal moments with their directions about the centroid; for a planar region, the area moments in the plane (X, Y, the XY product, the radii and the principal ones with the angle). The values come from the exact geometry of the faces, not from the display mesh: on planar, cylindrical, conical, spherical and toroidal faces (whole or trimmed by lines, arcs, ellipses and intersection curves) the volume, area, centroid and moments match the formula to about 0.000000000001% (a sphere of radius 5 gives 523.5988, as in AutoCAD), also in UTM coordinates; on NURBS faces and construction surfaces (loft, sweep, spline revolution) the computation is numerical, with the estimated error well below the decimal places shown. Only a face that BadBit CAD cannot integrate this way (a surface it does not understand) goes in through the mesh, with an error of about 0.001%.

Where each number comes from. LIST and MASSPROP end with the Measurement source line, and Properties have a row with the same name, as the trace BadBit CAD leaves in every computation: exact (all faces planar, cylindrical, conical, spherical or toroidal, integrated over their geometry); numerical integration, estimated relative error X (there are NURBS or construction faces); approximate edge stored in the file, estimated relative error X (a face bounded by an intersection curve the file stores only as an approximation: the measurement is that of the region of this approximation, and the estimated error includes how far it deviates from the face); from the mesh, estimated relative error X (or no error estimate), when some face cannot be integrated over its geometry. The error is relative, in scientific notation: 3.2 × 10⁻¹⁰ means 0.000000032% of the volume (or of the area, for a region and a surface). In a .bbd saved by an earlier version, the line says the source was not recorded; opening the DWG or DXF again measures it again.

MASSPROP of a sphere read from the file
The end of the sphere's MASSPROP: the principal moments I, J and K and the directions

MOVE, ROTATE, SCALE and MIRROR work on solids, regions, bodies and surfaces read from DXF (and on solids, regions and bodies from DWG): the plan drawing and the numbers go along (volume, centroid, box and moments) and, when saving, BadBit CAD writes the AutoCAD object itself with the transformed ACIS body, in the same format and version it came from (the encoded SAT of DXF or the SAB of DWG). The transformation goes into the body's transform record, as ACIS itself does: the face geometry stays intact, including what BadBit CAD does not understand. Changing the layer, color or linetype also writes the original object, with the ACIS data unchanged.

Solids inside blocks. A solid, region or surface inside a block goes to the place of the insert by the full 3D transformation: the X, Y and Z scales, the rotation, the insertion point with its Z and the normal of the insert. The attributes of a tilted insert also go onto its plane when saving (the point and the angle in the insert's system, with the normal), including after moving, rotating or scaling the insert. The other shapes of the block appear in plan by the projection of the 3D transformation (see the blocks chapter); what is written for them does not change. When exploded (EXPLODE), the solid comes out with the volume, area, bounding box, centroid and moments of the insert: in the test file corpo_2018.dwg, the block with a 4×6×8 box inserted with scale 2 and 30° gives volume 1536, like AutoCAD's MASSPROP on the exploded copy, and inserted with scale (2, 1, 3) and 45° gives volume 1152, area 768 and the box of the 8×6×24 box rotated (this insert, as in AutoCAD, cannot be exploded: EXPLODE warns Cannot explode that block; see the blocks chapter). With non-uniform scale (or a tilted normal), volume, centroid and moments remain exact, and the surface area comes from the mesh of the transformed body: the Measurement source line says so, with the estimated error.

Copies of solids. COPY, MIRROR with copy, ARRAY, COPYCLIP/PASTECLIP (and paste as block, BLOCK and WBLOCK) carry the body along: the copy of a 3DSOLID, a REGION, a BODY or a surface has the same volume (or the same area), appears in LIST and in Properties as a solid and, when saving, is written as a real solid in DXF and DWG (before, it became the lines of the plan drawing), with the accumulated transformation (the place of the copy, the rotation of the array, the mirror). The copy's body also goes into the .bbd. The copy of an EXTRUDEDSURFACE, LOFTEDSURFACE, REVOLVEDSURFACE, SWEPTSURFACE or NURBSURFACE comes out as the generic surface (SURFACE) with the same body: the construction parameters (the path, the sections) stay only in the original. Copying between drawings with different units converts the body by the unit of each one. .bbd files saved before this version do not have the body of the copies made in them: those copies remain the plan drawing.

The lying cylinder rotated 90° and moved 3 up

When unchanged, the ACIS data goes back intact when saving, and in any DWG or DXF version the body goes in the form AutoCAD requires there: as text in DXF up to 2010 and in DWG 2000 (the binary of the newer versions is converted to text), inside the object in DWG 2004 to 2010 and, in 2013 or newer, in the separate section of the file, which BadBit CAD builds with the solids read (the source one is never copied: if it is corrupted, its solids are left out with a warning, and the file opens). Checked with AutoCAD 2027: AutoCAD solids and regions opened and saved by BadBit CAD in DWG 2000 to 2018 and DXF 2000 to 2018 open in AutoCAD, with AUDIT reporting no errors and the same volume, box and centroid in MASSPROP (except what is left out, below). The drawing with 301 solids (one of them with 900 holes and 1.4 MB of ACIS data) also opens and measures the same in DWG 2013 and 2018 and in DXF 2018.

Surfaces. AutoCAD surfaces (PLANESURFACE, EXTRUDEDSURFACE, REVOLVEDSURFACE, LOFTEDSURFACE, SWEPTSURFACE and NURBSURFACE), read from a DXF or a DWG, go as the same type to any DWG and DXF version, from 2000 to 2018, with the ACIS body and the construction data (the profile, the path, the sections, the options) in the order AutoCAD writes them. Checked with AutoCAD 2027: the six surfaces made in it, saved by BadBit CAD in all versions, open in AutoCAD with AUDIT reporting no errors, in the source type and with the same area. AutoCAD writes NURBSURFACE as SURFACE in 2010 and earlier and shows it as NURBSURFACE; BadBit CAD writes the NURBSURFACE itself there, which AutoCAD accepts and shows the same. A surface whose construction data is missing from the file (or a LOFT with guides, not checked yet) goes as the generic surface (SURFACE), with the same body, and the save report counts the "surfaces written as generic surface". In the Import report the solids read count as "objects read by the B-rep kernel", among those kept intact; a solid whose data cannot be read (unknown format, procedural surface with no stored approximation) stays as before, with no drawing, counted as "3D in plan", and the detail says what was missing.

Known limits

  • DWG R13 and R14 (AutoCAD 13 and 14): reading follows the specification but has not yet been checked with real files; writing is from 2000 on.
  • Application objects in DWG go back only in the source version (the Civil 3D ones also go to the other DWG versions).
  • Civil 3D objects in DWG 2000 and 2004: read through what does not depend on the texts (points, surfaces, feature lines, styles), and those that come as proxies (written by plain AutoCAD or by BadBit CAD) whole; the place of the texts in these versions has not yet been checked against a Civil 3D file with points and surfaces. AutoCAD 2027 opens those written by BadBit CAD without errors; their reading by Civil 3D (the proxy, "modelo" and "sem textos" ones) has not been checked yet. In DWG 2010 and 2013 the associative network goes in the format of each version, checked in AutoCAD 2027.
  • ACIS solids, regions and surfaces: reading and writing have been checked with AutoCAD 2027 (see above). When saving to DXF up to 2010 or to DWG 2000, a solid with a geometry type the text conversion does not know yet is left out, with a warning in the save report ("not written", with the reason). A solid inside a block appears in the right place in plan, but the Z scale and the elevation of the insert do not enter the measurements. The copy of a construction surface still comes out as the generic surface (see above). The SURFACE AutoCAD writes in place of NURBSURFACE (DWG and DXF up to 2010) goes back as SURFACE. Rolling-ball, loft/skin, net and rail-sweep procedural surfaces without the stored approximation are evaluated by an assumed form of the data or, when not even that can be read, approximated by the edges of the face (the import report says "approximated by the edges").
  • User coordinate systems (UCS): kept, but BadBit CAD always draws in the world system.
  • MULTILEADER remains MULTILEADER in DXF and DWG of any version from 2000 on (one created, changed or from another version; a changed one keeps the block, labels and colors of the original). Only in DXF R12, which does not have it, does it go as lines and text, with a warning.
Search the documentation