Stratal CAD

Opening and saving DWG files

Help centre · Asset library and plugins

DWG is not built into Stratal CAD. It works only through the free, optional plugin DWG via GNU LibreDWG, a separate GPL program you install yourself; every conversion is lossy.

Before you start

Without the plugin

Steps: set it up

  1. Install GNU LibreDWG on your computer.
  2. In Stratal CAD choose Plugins > Get plugins…, select DWG via GNU LibreDWG and install it. Or install a package you were sent with Install from file… in Plugins > Manage plugins…. See Buying and installing plugins.
  3. Choose Plugins > Manage plugins…, select the plugin and click Locate converter….
  4. Pick LibreDWG's dwg2dxf.exe. Stratal CAD copies it, dxf2dwg.exe from the same folder and the files beside them, and checks them before every use.
  5. Click Restart Stratal CAD. From the next start, File > Open…, Import DWG… and Export DWG… offer DWG.

Steps: open, import and save

  1. Open: File > Open… and pick a .dwg file. It opens as a new, unsaved drawing; Save asks for a Stratal file name.
  2. Import: File > Import DWG… adds the file to the current drawing as one undo step.
  3. Export: File > Export DWG… writes the drawing as DWG version 2000. This is experimental.
  4. Every conversion shows a report marked lossy, naming the LibreDWG version, its warnings and errors (the first twelve quoted) and what the DXF stage did not transfer.

How it works

Reading: LibreDWG's dwg2dxf converts the DWG to DXF, then Stratal CAD's own DXF reader reads it, with all the limits in Importing and exporting DXF. DWG versions R1.2 to 2018 can be read; files before R13 come through less completely.

Writing: Stratal CAD writes the drawing as DXF version 2000, and LibreDWG's dxf2dwg converts it. The plugin then reads the new DWG back with LibreDWG and compares it with what was written. If it does not hold the same objects, nothing is saved and you are told why. Only then is your file replaced, in one step; on any failure it is left as it was.

The converters run in a sandbox with no network access, only their own folder and a working folder, for at most 10 minutes each.

Other plugin tools

The plugin adds its own ribbon tab, named after the plugin:

Tips and common mistakes

Troubleshooting

Message or symptom What it means and what to do
"DWG unavailable" ... "was not opened." with the reason above The plugin is not installed or did not load. Install it, locate the converter and restart.
"... its converter dwg2dxf.exe (...) is not located yet: install it (...), then choose it in Plugins > Manage plugins > Locate converter…" The plugin is installed but LibreDWG is not located. Do steps 3 to 5 of set-up.
"the drawing is password-protected: its data is encrypted ..." Protected drawings are refused and never decrypted. Remove the password in the program that set it, save the drawing again, then open it.
The file is refused as not a DWG drawing, or as ending inside its file header The file is not DWG, or it is damaged or was not copied in full. Get a fresh copy.
"dwg2dxf could not convert the drawing (exit code ...)" LibreDWG could not read this file. Ask for the drawing as DXF instead.
"dxf2dwg wrote a damaged DWG: read back, it holds ... instead of ... (a GNU LibreDWG problem); nothing was saved" LibreDWG wrote a bad file, so nothing was saved. Export DXF instead.
"dwg2dxf did not finish within 10 minutes" The file is too large or complex for the converter. Ask for DXF, or split the drawing.

Related

Related

Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.