CotaDocs

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.

EntityOpenExportNotes
LINE, POINT, CIRCLE, ARC, ELLIPSE, SPLINENativeNative
LWPOLYLINE, POLYLINE (2D and 3D)NativeNativeBulges and widths kept
POLYLINE (polyface and M×N mesh), 3DFACE, MESHMeshPOLYLINE (polyface mesh): one mesh comes back as one mesh
TEXT, MTEXTNative, 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"
ATTDEFNative in blocks (tag, prompt, default value; invisible, constant and preset); its tag outside themAs text
ATTRIBThe values of the attributes of each insert (invisible ones included; constant ones come from the block)As text, in the exported insertAn 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, TRACENativeNative
DIMENSIONNative, with the overrides of each dimension, the font of its text style and its own color, lineweight and transparencyExploded to lines, arrows and text
ARC_DIMENSION, LARGE_RADIAL_DIMENSIONBy their stored blockExploded
LEADERPolylinePolylineWithout the arrow
MLEADER (MULTILEADER)Lines, arrows and textThe same piecesBlock 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 wholeExpanded (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 emptyExpandedReferences nested inside a reference stay empty
INSERT of anonymous blocks, ACAD_TABLEExpandedExpandedDimension, table and hatch blocks, dynamic blocks (*U) and blocks that belong to an external reference (named with a vertical bar)
XLINE, RAYNative infinite linesNative
MLINEOne polyline per elementPolylinesWithout the style's end caps
TOLERANCEFrame, symbols and textThe same pieces
HELIXSplineSplineFrom DXF; the DWG reader does not deliver it yet
VIEWPORT and paper spaceLayouts with their sheet, content and viewportsNot exported
3DSOLID, REGION, BODYExact 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 edgesPOLYLINE (polyface mesh)
IMAGEThe picture in its place (clip and fade included) once its file is loaded, on screen and in plots; until then, its frame and file nameIMAGE (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 UNDERLAYFile name at the insertion pointTextThe content is an external file
OLE2FRAMEFramePolyline
Draw order (SORTENTSTABLE)Applied: objects draw in the order of the file and its draw order table, blocks includedObjects written in their orderTexts are always shown on top
Lineweight display (LWDISPLAY)Kept: with it on, the model shows lineweights in pixels (LWT in the status bar)NativeLayouts always show lineweights
Transparency (440)Applied: the color is mixed with the background on screen; plots are transparent (what is under shows through)NativeLayer transparency is not read
WIPEOUTA mask filled with the background color, over the lines of every layer and under the textsWIPEOUTIts frame is not drawn
SHAPEPoint, with a noticePointIts drawing is in an external shape file
LIGHT, SUNIgnored—Not drawing content
ACAD_PROXY_ENTITYBy its replacement drawing (DXF); left out (DWG)The same piecesTexts of the replacement drawing are not read
SECTION, POINTCLOUD, COORDINATION MODEL, OLEFRAMEListed 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#

  1. Blocks and layouts on export (today inserts are expanded and layouts stay out of the file).
  2. Proxy entities in DWG files (the reader drops them).