Convert DWG and DXF drawings without AutoCAD - #12
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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