Skip to content

Convert DWG and DXF drawings without AutoCAD - #12

Merged
KnifeLemon merged 2 commits into
mainfrom
pr/12-cad
Sep 30, 2026
Merged

KnifeLemon merged 2 commits into
mainfrom
pr/12-cad

Conversation

@KnifeLemon

Copy link
Copy Markdown
Owner

ACadSharp reads DWG/DXF and writes them (AutoCAD 2018); a SkiaSharp renderer draws model space to vector PDF, SVG and images.

🤖 Generated with Claude Code

KnifeLemon and others added 2 commits October 1, 2026 07:51
Add the built-in "cad" engine. ACadSharp 3.8.0 (MIT) reads DWG R14 to
2018+ and DXF (ASCII and binary) and writes DXF and DWG, always as
AutoCAD 2018 (AC1032): the current DWG format, and the DXF version that
stores text as UTF-8. Stray R12 SEQEND markers and degenerate dimensions
that ACadSharp cannot measure are dropped instead of failing the file,
and pre-2007 Korean DXF (ANSI_949) is decoded as CP949.

A new renderer draws model space (or the active layout when model space
is empty) with SkiaSharp through one routine for PDF (vector, A3 or the
preset's sheet), SVG and images. The scene builder resolves layers
(off, frozen, non-plotting; layer 0 inside blocks), BYLAYER/BYBLOCK,
ACI and true colours, line weights and line types, and turns lines,
polylines with bulges and widths, arcs, ellipses, NURBS splines, text
and MTEXT, inserts and arrays, dimensions, leaders, hatches (solid,
gradient, clipped pattern lines) and more into geometry whose arcs stay
exact Béziers. The page is fitted to the drawn extents, not the header.
Unsupported entities are counted and skipped; limits keep huge drawings
from exhausting memory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	Directory.Packages.props
#	THIRD-PARTY-NOTICES.md
#	docs/ENGINES.md
#	src/Filee.Engines/EngineRegistry.cs
#	src/Filee.Engines/Filee.Engines.csproj
@KnifeLemon KnifeLemon added the formats New formats and engines label Sep 30, 2026
@KnifeLemon
KnifeLemon merged commit 60d06ce into main Sep 30, 2026
@KnifeLemon
KnifeLemon deleted the pr/12-cad branch September 30, 2026 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

formats New formats and engines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant