Open DXF files from other programs, add their contents to a drawing, or write your drawing as DXF, with a report of everything that did not travel in full, for anyone exchanging 2D drawings.
Before you start
- Open and Export need no licence. Import adds to a drawing, so it needs an active licence.
- DXF files from versions R12 to 2018, ASCII or binary. Stratal CAD writes ASCII DXF in version 2013, or version 2000 on request.
Steps: open a DXF file
- Choose File > Open… (Ctrl+O) and pick the
.dxffile. - It opens as a new drawing in the file's units. The DXF open report says how many objects were read, what was not read and what was read with changes.
- Click Save: Stratal CAD asks for a Stratal file name (
.stcad), so the DXF file itself is never overwritten.
Steps: import into the current drawing
- Open the drawing to add to.
- Choose File > Import DXF…, or Import DXF… in the Exchange group of the Output tab.
- Pick the file. Its contents are added as one step that a single Undo removes.
- The DXF import report lists the units conversion, layouts, new layers and anything not imported in full.
Steps: export
- Choose File > Export DXF…, or Export DXF… on the Output tab.
- Choose the file name. For a program that reads only older DXF, choose the version 2000 file type in the save dialog. The dialog offers the type you chose last time, and File > Settings… > Files > DXF version sets the default.
- The status bar says how many objects were written. If anything was left out or changed, the DXF export report says so, with a fidelity for the whole file: Full, Lossy or Unsupported.
Exporting never changes the drawing. The file is written in the background behind a progress window; Stop cancels it, and the file is written whole or not at all.
What comes in
- Lines, circles, arcs, polylines (with arc segments; 3D polylines are flattened), ellipses and elliptical arcs, points, splines, construction lines and rays, multilines.
- Single-line text and block attributes, multiline text (without its inline formatting), leaders with their text, multileaders.
- Linear, aligned, radius, diameter, angular, ordinate and arc length dimensions, with every dimension style.
- Hatches (solid, ANSI31, ANSI37 and user lines). Curved boundaries made of ellipses or splines become straight segments, and the report says so.
- Text styles. SHX fonts keep their file name, are drawn with the font map's replacement or the default font, and are written back by name.
- Layers with colour, on/off, frozen, locked, plot, lineweight, linetype and transparency; linetypes; each object's own colour, linetype, lineweight, transparency and linetype scale.
- Blocks as blocks, with attribute definitions and insertion units, and references with their attribute values. A block your drawing already has keeps its definition.
- Anonymous blocks (the saved states of dynamic blocks) are exploded in place.
- Layouts, each as a layout tab with its sheet, margin, viewports at their scales, layers frozen in each viewport, what is drawn on the sheet and its plot settings. A layout whose name is already used gets a new name such as "Sheet A (2)". Named page setups come too.
- Raster images, wipeouts and external references (kept as links; only Stratal drawings are loaded).
- Data other programs attach to objects (extended data) stays with each object and goes back out on export. Stratal CAD does not update it when you move the object.
What does not come in
3D solids, surfaces, regions and meshes (their data cannot be read), DGN and DWF underlays, OLE objects, tables (they come in as their lines and text), and some dimension types (as their lines, arrows and text). Every one is counted in the report, never dropped silently.
What goes out
Units, layers, text, multiline text, leaders, multileaders (version 2013 only), dimensions with every dimension style, text styles, hatches, blocks, images, wipeouts and layouts with their viewports, frozen layers, sheet objects, plot settings and named page setups. Annotative objects are written at the current annotation scale as ordinary objects; Stratal CAD reads their scales back from the file. 3D solids are not written to DXF: use STEP. Sketches on the XY plane go out as their curves.
Manufacturing export
MFGEXPORT (Output tab, Exchange group) writes the drawing to DXF, PDF or both for a fabricator, with a mapping file beside them.
- At "Export [Dxf/Pdf/Both/MarkDangling] <Both>:" choose the files. MarkDangling draws dimensions whose model feature is gone in amber in both files.
- For a PDF, at "Sheet: a layout name, or Enter for model space fitted to ISO A3:" type a layout name or press Enter.
- At "File name (the .dxf, .pdf and -mapping.csv go beside each other):" type a name. A name without a folder is put next to the drawing.
<name>-mapping.csv has a row for each object: what it became in each file, whether it was plotted and, if not, why (for example a layer that is off), and what did not travel.
Damaged DXF files
File > Recover… reads what is left of a damaged DXF file into a new, unsaved drawing. Each repair is listed with its line number, objects that cannot be read are left out whole, and the damaged file is not changed.
Tips and common mistakes
- Layers that already exist in your drawing keep their settings on import.
- A lineweight DXF does not have is written as the nearest one, and the report says so.
- Some characters are not allowed in DXF layer or layout names; such names are changed on export and the report lists them.
- DWG is not built in. See Opening and saving DWG files.
Troubleshooting
| Message or symptom | What it means and what to do |
|---|---|
| "Drawing could not be opened" with a line number | The file is damaged or cut short and nothing was opened. Use File > Recover…. |
| "DXF import failed" ... "was not imported; the drawing is unchanged." | The reason follows. A damaged file is refused with the line of the problem. |
A DXF file saved as UTF-16 text, or another format renamed .dxf, is refused |
Save it again as ordinary DXF from the program that made it. |
| "Finish or cancel the active operation before exporting." | Press Esc, then export again. |
| "Replace file?" | A file of that name exists. Click Yes to overwrite it. |
| "Give a full path: the drawing is not saved yet." (MFGEXPORT) | Save the drawing, or type a full path such as C:\Jobs\part. |
Related
Related
- Plotting a drawing to PDF
- Printing and plotting a drawing
- Setting up a sheet set
- Publishing and printing a sheet set
- Importing and exporting IFC
- Exchanging STEP, IGES and 3D files
Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.