Skip to content
Octo × Linux alternatives PT Request an assessment

Octo for DWG on Linux

DWG on Linux. No AutoCAD in the way.

Octo can write, test and run the routines that read, convert and export DWG and DXF on an Ubuntu server, with ezdxf, ODA File Converter (from the Open Design Alliance, ODA) and LibreDWG: DXF, PDF, SVG, lists of layers and blocks. You approve the plan and each batch; it prepares the script and returns the result and a report of what failed for review.

Linux server without AutoCAD receives DWG files; Octo, on top of it, runs the conversion, and out come DXF, PDF and the list of layers and blocks *.DWG NO CAD LICENSE $ dwg → dxf EZDXF ODA LIBREDWG DXF ACAD2018 PDF plan.pdf + SVG · ezdxf LAYERS · BLOCKS ODAFileConverter dwg dxf ACAD2018 DXF 1 1 OCTO × DWG · LINUX BATCH · NO CAD L-01
AutoCAD for LinuxNoneWindows and macOS only
Toolsezdxf, ODA, LibreDWGPython, converter and C
LicensesMIT · GPLv3free ODA: non-commercial use
Sources17listed at the end of the page
01

What Octo does with DWG on Linux.

Six possible deliverables, drawn from the research. In all of them, Octo proposes the tool based on license and fidelity, writes the script and tests it on a sample before the batch.

DWG to DXF, the whole folder

Calls ODA File Converter from the command line, with subfolders and auditing on, inside xvfb-run so the window doesn't open on the server. Since the ezdxf code notes that, on Linux, the converter may exit reporting failure even when the conversion succeeded, the script checks the files: it counts the DXF files generated against the input DWG files.

Deliverable: .sh with xvfb-run + count

Conversion with free software only

According to ODA's frequently asked questions (FAQ), the free ODA File Converter is for non-commercial use by non-members; commercial use requires an agreement with ODA. Without that agreement, it converts with GNU LibreDWG's dwg2dxf (GPLv3), file by file, in the requested DXF version, and totals the failures. There's no package on Ubuntu 24.04: it compiles from the source code published by GNU. The LibreDWG manual warns that many entities still have partial support.

Deliverable: .sh with dwg2dxf + failure total

Layer and block inventory

With ezdxf, in Python, lists each layer with its color, on or frozen state and number of entities, and each block with its definition size and how many times it was inserted. Reads DXF directly and DWG through ODA File Converter.

Deliverable: .py (ezdxf) + listing per file

PDF and SVG of the drawing

Generates a PDF of the modelspace of each DXF with the ezdxf drawing add-on and PyMuPDF, and an SVG when requested. For a single file, it uses the ezdxf draw shortcut, after checking with --formats which formats the machine supports.

Deliverable: .py + PDF (and SVG) per DXF

Damaged files, read and audited

Opens problem DXF files with ezdxf's recovery reader, which fixes what it can and reports how many errors it found; in the ODA batch, it turns on the audit that repairs each file on open. What doesn't open goes on the list for someone to look at in the converter's interface.

Deliverable: error notice per file

Change the DWG version

When a partner can only open an old version, it rewrites the batch in the requested version, from R12 to 2018, through ODA File Converter, or through ezdxf with the same converter behind it. With LibreDWG, DWG writing only goes up to r2000, and Octo warns you beforehand.

Deliverable: batch converted to the requested version
02

Eight arms, no AutoCAD.

The same Octo cycle, applied to DWG on a Linux server. Each arm has a narrow role; the decisions are made by a person at your company.

  1. Discovery

    Inventory the folder

    How many DWG and DXF files, which versions, on which Ubuntu distribution and version, with which Python. Whether xvfb and FUSE are already there, and whether ODA File Converter or LibreDWG is already installed.

  2. Data

    Define the outputs

    The output DXF version, the columns of the layer and block list, the name of each PDF and where the report goes. Whatever is read-only never gets overwritten.

  3. Security

    Check license and origin

    Per ODA's FAQ, the free ODA File Converter is for non-commercial use; for client work, LibreDWG or an ODA license. There is a security flaw cataloged in 2026 (CVE-2026-9501) in the LibreDWG decoder up to version 0.14: DWG files of unknown origin are only processed in isolation.

  4. Architecture

    Choose the tool

    ODA for DWG to DXF and ezdxf for everything after that; LibreDWG when no proprietary binary is allowed; a Windows virtual machine (VM) with AutoCAD when full-fidelity editing is needed.

  5. Development

    Write the script

    Isolated Python environment with the current ezdxf from PyPI, not the old Ubuntu package; the converter called in the argument order ezdxf itself uses; the AppImage path in the ezdxf configuration when applicable.

  6. Review

    Test on a sample

    Runs a few drawings and checks the result: the DXF exists and opens in ezdxf, the PDF has the drawing, the list has the layers. Checks the generated files, not the converter's exit code, just as ezdxf itself does.

  7. Release

    Run the approved batch

    With your OK, it runs the whole folder and checks file by file what came out and what's missing, without taking a success message as proof.

  8. Documentation

    Record what applies

    Versions of ezdxf, the converter and LibreDWG, the executable path and what was confirmed on your machine. The next batch starts from this record.

Nothing runs in batch before your OK. The proposed tool respects each one's license; the decision belongs to your company.

03

Each task, its own tool.

The criteria Octo uses to choose. What runs on Linux first; AutoCAD in a Windows VM only when the job is editing the drawing.

TaskRecommended pathAlternative or caveat
Read and write DXF in Python; list layers, blocks and entitiesezdxf (MIT license)—
Read DWG in Pythonezdxf + the odafc add-on, which calls ODA File ConverterThe add-on runs an external program; it can be removed if that capability isn't wanted
Convert a DWG ↔ DXF batch or change the DWG versionODA File Converter, with xvfb-runFree for non-commercial use by non-members of ODA (ODA FAQ)
DWG → DXF with free software, no proprietary binaryLibreDWG, dwg2dxf (GPLv3)DWG writing only up to r2000; AutoCAD rejects some fields of the generated DXF
Generate PDF, SVG or PNG from a DXFezdxf draw or the drawing add-onLibreDWG's dwg2SVG: modelspace only, basic
Client work, commercial useLibreDWGODA license
Edit the drawing with an interface and full fidelityAutoCAD in a Windows VM, with a regular license—
Run AutoCAD on Linux itselfThere is no Linux version—
04

From script to service.

Three steps. Each one only makes sense after the previous one has shown results in your operation.

A proposal, not a promise

1 Today

On-demand scripts

On Ubuntu, you ask in business terms and get the proposed batch, with the tool your license allows, to review before it runs.

  • A request like "DXF of the whole folder" becomes .sh + count
  • Test on a sample before the whole folder
  • List of what's missing and why
Goal: read DWG without depending on a workstation with AutoCAD
2 Next

Pipeline on a watched folder

The batch no longer depends on a request and can run for every file that arrives: the DWG goes in, and out come the DXF, the PDF and the inventory.

  • Conversion, inventory and PDF in sequence, in a batch report
  • Files of unknown origin processed in isolation
  • A file that fails goes back to a person
Goal: the team reads the report, not each file
3 Later

In-house drawing service

The same routines behind a service that the management system (ERP) or a portal calls, with each tool's license sorted out first.

  • Convert, list and export on request, with no CAD workstation
  • Commercial use with LibreDWG or an ODA license
  • Full-fidelity editing stays in a Windows VM with AutoCAD
Goal: drawings become searchable company data
05

Confirmed by sources.

Each point below has a source published by the vendor, the project or the responsible agency. The sources are in the next section.

4

points with a published source, each with its reference alongside.

ConfirmedThere is no AutoCAD for Linux
The requirements published by Autodesk list Windows and macOS. On Linux, the way to go is to work with the libraries and the converter, and leave editing to a Windows VM.Source: AutoCAD 2026 and AutoCAD for Mac 2026 requirements
ConfirmedFree ODA File Converter: non-commercial use
For non-members of ODA, the free converter is for non-commercial use; commercial use requires an agreement with ODA. Only the latest version is on the website; earlier ones are for members.Source: ODA FAQ on the Viewer and File Converter
ConfirmedLibreDWG reads up to 2018, writes up to r2000
Reads DWG from r1.2 to r2018, with about 99% coverage; DWG writing by default only r2000 or earlier. Many entities are still partial.Source: LibreDWG 0.13.4 manual
ConfirmedUbuntu 24.04 doesn't package LibreDWG and ships an old ezdxf
There is no libredwg package, and the packaged ezdxf is 1.1.3, an old version; that's why ezdxf is installed through pip in an isolated environment.Source: Ubuntu 24.04 Launchpad (libredwg and ezdxf)
06

What Octo does and what stays with you.

Octo prepares everything, but doesn't sign. The document of record stays with whoever is accountable for it.

Octo prepares

Surveys, calculates, organizes and generates the documents: spreadsheets, reports, drawings and drafts.

Deliverable: material ready to check

Your team checks

The licensed professional checks what Octo delivered before signing. If something doesn't add up, it goes back to Octo with the correction.

Step: review by the signer

Who signs

Octo does not sign. Designs, technical reports, ART/RRT (Brazil's professional responsibility records), accountability reports and any official document are still signed by the company's or agency's licensed professional: here, the designer or the engineer responsible for the project.

Sign-off: designer or responsible engineer
07

Sources.

Documentation from ezdxf, ODA, GNU LibreDWG and Autodesk used on this page.

Your DWG files, on Linux.

The assessment starts by reading your drawings folder and your server, without changing anything. You get a map of what can be done without AutoCAD, with the license for each path, and decide with it in hand.