Repository navigation
DWG writer follow-ups: arc length and jogged radius dimensions, Block Editor params, long texts, old writer removed - #18
Merged
Merged
Conversation
A text over 65,535 characters (UTF-16 units from 2007, bytes before) keeps only its start in a DWG file. SAVE, SAVEAS, QSAVE and EXPORT now say how many entities that happens to, at the command line and as textsShortened, instead of cutting them silently. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a DWG save The Block Editor now rebuilds the evaluation graph's node list (id, flags, next id, member, links) whenever a parameter or action is added or removed, which is what the DWG encoder writes from. The authoring test saves both DXF and DWG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ections it used crates/dwg/src/write (the writer over BlackCAD's records) had no caller left but compose and the style encoders. The paged container moves to compose/container.rs, the application information, revision history and header defaults to compose/small.rs, and the three-stream field writer the style encoders use to compose/fields.rs. The rest (object encoders, check, the AC1032 file builder) goes, with what only it used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…F and DWG An arc length dimension is written as ARC_DIMENSION (AcDbArcDimension: centre, arc ends, angles, partial and leader flags) and a jogged radius as LARGE_RADIAL_DIMENSION (AcDbRadialDimensionLarge: chord point, override centre, jog), in DXF and in every DWG version, laid out as AutoCAD 2027 writes them; both are read back from AutoCAD's files. DraftCraft's older ARCLEN extended data still reads. AutoCAD 2027 opens the dimensions fixture with AUDIT 0 and lists both as its own types; the handoff notes the fixtures checked in AutoCAD since PR #16. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Follow-up to #16 (already merged): what was left on DraftCraft's own DWG writer.
What changes
ARC_DIMENSIONandLARGE_RADIAL_DIMENSION, in DXF and in every DWG version (2000–2018). Their fields are laid out as AutoCAD 2027 writes them, and the same types are read back from AutoCAD's files. Partial arc lengths and the leader flag are kept. DraftCraft's older ARCLEN extended data still reads.rebuild_graph), anddynblock_authoring.rsnow saves both DXF and DWG.textsShortened).crates/dwg/src/writeis removed (−3000 lines).composekeeps the container and the small sections it used.Checked in AutoCAD 2027
Each file was opened in AutoCAD 2027 and closed without saving. None needed recovery, and AUDIT reported 0 errors in all of them:
AutoCAD's own save of our mi201 2018 file reads in DraftCraft the same as ours. The image files were not checked.
Tests
cargo clippy --workspace --all-targets -D warnings: clean.read_file_refuses_a_name_that_is_not_unicode,usage::non_unicode_output_names,thai_marks_stack_in_an_installed_font).🤖 Generated with Claude Code