Skip to content

Parse AcDb:Classes and decode LWPOLYLINE, ELLIPSE, SOLID, 3DFACE, RAY, XLINE and TrueColor - #72

Merged
mahach666 merged 4 commits into
mainfrom
feat/classes-and-2d-entities
Dec 2, 2026
Merged

mahach666 merged 4 commits into
mainfrom
feat/classes-and-2d-entities

Conversation

@mahach666

Copy link
Copy Markdown
Contributor

What changes and why

Stacked on #71 ( eat/org-standard-and-2d-viewer):

  • Parse AcDb:Classes (Decode the AcDb:Classes section and expose the class list #21, Complete the object type table and decide entity or object per type code #20):
    • Added DwgClassInfo and ClassesParser supporting R2007+/R2010+ separate UTF-16 string streams and R2004 inline codepage strings, verified against all three public fixtures (primitives-ac1024.dwg, primitives-ac1027.dwg, primitives-ac1032.dwg).
    • Exposed DwgDocument.Classes and DwgReaderOptions.ReadClasses, resolved class names (codes 500+) and IsEntity flags in DwgObjectInfo.TypeName, DwgJsonExporter (classes array and resolved byTypeName), and dwgio inspect.
  • Decode additional 2D/3D entities and 24-bit TrueColor (Decode more geometry: polylines, curves, solids, hatches, dimensions and leaders #28):
    • Added DwgEntityKind.Polyline (LWPOLYLINE with elevation, closed flag, vertices, and bulges), Ellipse (ELLIPSE), Solid (SOLID/TRACE), Face3d (3DFACE), Ray (RAY), XLine (XLINE), and DwgEntity.TrueColorRgb.
    • Rendered these entities and true colours across DwgSceneReader (IOScene), DwgSvgExporter, and the 2D AutoCAD HTML viewer (DwgCadHtmlViewer, including exact bulge arcs, ellipses, quads, construction lines, hit-testing, and properties).

How it was checked

  • dotnet build DwgIO.slnx -c Release has no warnings (net8.0 and net10.0)
  • dotnet test DwgIO.slnx -c Release --no-build passes (261 passed, 0 failed, 1 skipped private-fixture test on both net8.0 and net10.0)
  • BuildNativeCoreOnly=true passes for both DwgIO.csproj and DwgIO.Scene.csproj with 0 warnings
  • The change is original work; no code or text is copied from other projects
  • No drawings, customer data, vendor code or binaries are added

@mahach666
mahach666 changed the base branch from feat/org-standard-and-2d-viewer to main December 2, 2026 10:40
@mahach666
mahach666 merged commit d603f4b into main Dec 2, 2026
18 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant