Reference
DWG and DXF coverage
What happens to each entity type when a DWG or DXF is opened and exported. The list is the ENTITIES section of the official DXF reference. It was checked against 338 public reference files: the ACadSharp samples kept in this repository as tests, plus the LibreDWG test suite and the ezdxf example and test files (read locally, not kept here). 329 of them open; the other 9 are DWG files from R11 or earlier.
| Entity | Open | Export | Notes |
|---|---|---|---|
| LINE, POINT, CIRCLE, ARC, ELLIPSE, SPLINE | Native | Native | |
| LWPOLYLINE, POLYLINE (2D and 3D) | Native | Native | Bulges and widths kept |
| POLYLINE (polyface and M×N mesh), 3DFACE, MESH | Mesh | POLYLINE (polyface mesh): one mesh comes back as one mesh | |
| TEXT, MTEXT | Native, with the font of their text style (TrueType fonts are shown with one of the same width), its width factor, and the formatting inside a multiline text (bold, italic, underline, font, height, color, paragraph indent) | Native (width factor; font and width as MTEXT formatting) | Text height is the height of the capitals, as in classic CAD; SHX fonts are drawn with Cota's single-stroke font; multiline text keeps its line spacing; stacked fractions as "1/2" |
| ATTDEF | Native in blocks (tag, prompt, default value; invisible, constant and preset); its tag outside them | As text | |
| ATTRIB | The values of the attributes of each insert (invisible ones included; constant ones come from the block) | As text, in the exported insert | An insert whose attributes are not where their definition puts them (moved by hand, another style, in a mirrored or non-uniformly scaled insert) is expanded, with its attributes as texts |
| HATCH, SOLID, TRACE | Native | Native | |
| DIMENSION | Native, with the overrides of each dimension, the font of its text style and its own color, lineweight and transparency | Exploded to lines, arrows and text | |
| ARC_DIMENSION, LARGE_RADIAL_DIMENSION | By their stored block | Exploded | |
| LEADER | Polyline | Polyline | Without the arrow |
| MLEADER (MULTILEADER) | Lines, arrows and text | The same pieces | Block content only from DWG |
| INSERT (named blocks) | Cota blocks: the definition relative to its base point and one insert per reference, with nested blocks, scale (also non-uniform), rotation and extrusion. Objects on layer 0 take the layer of the insert and ByBlock ones its color, lineweight and linetype. An insert on a frozen layer is hidden whole | Expanded (on a frozen layer, its content goes to that layer) | MINSERT: one insert per cell. On a sheet (paper space), inserts are expanded. Importing into a drawing that already has a block of the same name renames the imported one |
| External references (XREF) | Before the drawing finishes opening, Cota looks for each referenced file next to the drawing (when it was opened from the working folder) and asks for the ones it cannot find: choose each .dwg or .dxf and its model becomes the content of the reference block (its layers named REFERENCE|layer, layer 0 stays 0, its blocks REFERENCE|block). References left out stay empty | Expanded | References nested inside a reference stay empty |
| INSERT of anonymous blocks, ACAD_TABLE | Expanded | Expanded | Dimension, table and hatch blocks, dynamic blocks (*U) and blocks that belong to an external reference (named with a vertical bar) |
| XLINE, RAY | Native infinite lines | Native | |
| MLINE | One polyline per element | Polylines | Without the style's end caps |
| TOLERANCE | Frame, symbols and text | The same pieces | |
| HELIX | Spline | Spline | From DXF; the DWG reader does not deliver it yet |
| VIEWPORT and paper space | Layouts with their sheet, content and viewports | Not exported | |
| 3DSOLID, REGION, BODY | Exact solids from their ACIS model (SAT and SAB), shown with the faces of the model until each one is converted: all at once on open, when selected or edited, or in the background while you are idle (SOLIDIMPORT, SOLIDIDLE) | 3DSOLID, REGION, BODY (ACIS: SAB in DWG, SAT in DXF) | Snaps, MASSPROP and drawing views use the exact edges and mass of the model even before converting. Until converted, NURBS faces are drawn over their best-fit plane |
| SURFACE (extruded, lofted, revolved, swept, planar) | Meshes or edges | POLYLINE (polyface mesh) | |
| IMAGE | The picture in its place (clip and fade included) once its file is loaded, on screen and in plots; until then, its frame and file name | IMAGE (DXF; the file path, not the pixels) | The drawing stores only the file path: open the image together with the drawing, drop it on Cota or load it with IMAGE; from the working folder it loads on its own |
| PDF, DWF and DGN UNDERLAY | File name at the insertion point | Text | The content is an external file |
| OLE2FRAME | Frame | Polyline | |
| Draw order (SORTENTSTABLE) | Applied: objects draw in the order of the file and its draw order table, blocks included | Objects written in their order | Texts are always shown on top |
| Lineweight display (LWDISPLAY) | Kept: with it on, the model shows lineweights in pixels (LWT in the status bar) | Native | Layouts always show lineweights |
| Transparency (440) | Applied: the color is mixed with the background on screen; plots are transparent (what is under shows through) | Native | Layer transparency is not read |
| WIPEOUT | A mask filled with the background color, over the lines of every layer and under the texts | WIPEOUT | Its frame is not drawn |
| SHAPE | Point, with a notice | Point | Its drawing is in an external shape file |
| LIGHT, SUN | Ignored | — | Not drawing content |
| ACAD_PROXY_ENTITY | By its replacement drawing (DXF); left out (DWG) | The same pieces | Texts of the replacement drawing are not read |
| SECTION, POINTCLOUD, COORDINATION MODEL, OLEFRAME | Listed as unsupported on open | — |
3D solids are exported as ACIS solids: an imported piece you have not changed keeps its original model (with its new
placement if you moved, rotated, scaled or mirrored it), and edited pieces and Cota's own solids are written from the
exact kernel (planes, cylinders, cones, spheres, tori and NURBS). The few that cannot be written exactly (offset
surfaces, for example) go as a mesh of their faces (a polyface mesh). SOLIDEXPORT 0 writes every solid as a mesh.
Large 3D assemblies (a thousand solids, millions of triangles) open on a phone too: there the faces of the solids use about half the triangles (18 segments per full turn instead of 36), and texts smaller than 3 pixels are not drawn.
Next, by impact#
- Blocks and layouts on export (today inserts are expanded and layouts stay out of the file).
- Proxy entities in DWG files (the reader drops them).