Skip to content

DXF export equal to AutoCAD's DXF of the same drawing #169

Open

Description

@DrunkOnJava

Scope

For every corpus pair, our DWG-to-DXF output equals AutoCAD's own DXF, object by object and group code by group code, for every target version R12 to R2018 the source supports.

State on main (2026-10-21)

Syntactic only.

Acceptance

  • The oracle scorers run on our DXF as well as on our decode
  • Differences listed per type; none at release

Parent: #168

Activity

  1. added
    type:feature
    area:dxf
    priority:P1
    on Oct 21, 2026
  2. DrunkOnJava commented on Oct 27, 2026

    @DrunkOnJava
    OwnerAuthor

    Status (main 2bab7b2): the body's "Syntactic only" is stale. dwg-to-dxf now writes its sections from the decoded drawing, under AutoCAD's own group codes and in AutoCAD's order, and each section has a probe, wired into the Corpus job, that pairs every written record with the export's record of the same handle and compares it group by group. From CI run 40503137263 (artifact corpus-measurement; 42 drawings with an AutoCAD export of their release, 10 without a twin skipped):

    Section PR Written Groups that agree Differ by a stated rule Disagree Extra
    HEADER #320 9,577 variables 9,404 173 0 0
    TABLES (VPORT, LTYPE, LAYER, STYLE, VIEW, UCS, APPID, DIMSTYLE, BLOCK_RECORD) #347, #357 1,239 records, all paired 8,783 of 8,792 9 0 0
    ENTITIES, 15 kinds #358 732 records, all paired 5,099 of 5,099 0 0 0

    CLASSES (#368): 0 disagree; the 67 relations are the instance count, which the export takes from the objects it holds after load. BLOCKS (#371, merged after that run), from its description: 1,532 written, 1,503 paired, 12,577 of 12,583 groups agree, 0 disagree, 0 extra (the six are #243). OBJECTS (#372) and LAYOUT, GROUP and MLINESTYLE (#373) are queued.

    Not written yet, counted by kind in the ENTITIES probe: DIMENSION, MULTILEADER, HATCH, MLINE, LEADER, TOLERANCE, SPLINE, MESH, IMAGE, 3DSOLID, REGION and others. R12 and R14 targets write $ACADVER alone, because the corpus holds no AutoCAD export of either to measure against.

    Remaining against the acceptance: the probes pair with the export rather than running the oracle scorers on our DXF, and "differences listed per type; none at release" holds only for the sections written so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dxfpriority:P1type:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions