← Back to Projects

leptons1618@anishgiri.dev:~/projects/dwg2svg cat project.toml

DevTools 2023 Stable

dwg2svg

A browser tool for turning an SVG drawing into an AutoCAD-style DXF block — click a base point on a canvas, set the attributes, and get real DXF entities out the other end.

category
DevTools
year
2023
status
Stable
stack
8 tools
highlights
6

01Highlights

  1. Three tiers with one job each: a React canvas for picking, an Express API for projects and attributes, Python for the geometry.
  2. The conversion is real — `ezdxf` 1.4.3 with `lxml` and `Shapely`, parsing the drawing and writing DXF entities rather than wrapping text.
  3. A standalone Flask service on `waitress`, deliberately kept apart from the Node backend.
  4. The base point is chosen by clicking a 1200×800 canvas, then converted from screen coordinates into DXF space.
  5. Projects and attribute definitions are CRUD'd server-side, so a block template is defined once and reused.
  6. A `sandbox/` with sample `.dwg` and `.dxf` files plus run logs — which is how the geometry bugs actually got found.

02Built with

  • 01Python
  • 02ezdxf
  • 03lxml
  • 04Shapely
  • 05Flask
  • 06React
  • 07Node.js
  • 08Express