dwg2dxf - DWG to DXF converter used by Incadio
===============================================

This folder is a SEPARATE PROGRAM. The Incadio server runs it as its own
process (node dwg2dxf.js <input.dwg> <output.dxf>) and exchanges only files
with it. It is not part of the Incadio application, which is proprietary
software of its own author.

License
  GNU General Public License, version 2 or (at your option) any later
  version - see COPYING.
  Built on libdxfrw (LibreCAD project, https://github.com/LibreCAD/libdxfrw):
  Copyright (C) 2011-2015 Jose F. Soriano, Copyright (C) 2016-2021 A. Stebich,
  and contributors.

Complete corresponding source code (folder source/)
  libdxfrw-92d7466.tar.gz    libdxfrw at git commit
                             92d7466ed9146badcd4fb44c82d1dd8302b3c7db
                             (2025-09-25), unmodified archive
  incadio-blocknames.patch   our change to src/intern/dwgreader.cpp
                             (2026-10-03): every block name is resolved before
                             the block contents are read, so nested INSERTs
                             always point to the right block
  incadio-dwg2dxf.cpp        the program (main), GPL-2.0-or-later
  build.sh                   the exact build command (Emscripten 6.0.11)
  dwg2dxf.js and dwg2dxf.wasm in this folder are the output of source/build.sh.

Usage
  node dwg2dxf.js <input.dwg> <output.dxf>        (Node.js 18.3 or later)
  Writes an ASCII DXF 2007. Exit codes: 0 read completely, 2 read partially
  (the reader reported an error, the DXF holds what was read), 3 read but the
  DXF could not be written, 1 unreadable, 64 wrong arguments.

Ελληνικά
  Ξεχωριστό πρόγραμμα μετατροπής DWG -> DXF. Το τρέχει ο server του Incadio
  ως δική του διεργασία και ανταλλάσσει μαζί του μόνο αρχεία. Άδεια: GPL
  έκδοση 2 ή νεότερη (COPYING). Ο πλήρης πηγαίος κώδικας είναι στον φάκελο
  source/ (libdxfrw του LibreCAD + η δική μας αλλαγή + η εντολή χτισίματος).
