Repository navigation
Conversation
…compat # Conflicts: # PYTHON_BINDING_IMPLEMENTATION_PLAN.md
…compat # Conflicts: # PYTHON_BINDING_IMPLEMENTATION_PLAN.md
…compat # Conflicts: # PYTHON_BINDING_IMPLEMENTATION_PLAN.md
…compat # Conflicts: # PYTHON_BINDING_IMPLEMENTATION_PLAN.md
…compat # Conflicts: # PYTHON_BINDING_IMPLEMENTATION_PLAN.md # unittest/persistence/dwgimporttest.cpp
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.
Preserve supported DXF geometry and layout data in LibreCAD_3 while reporting profiles that cannot be safely replayed. This draft depends on LibreCAD_3 #460 and libdxfrw #106; its combined diff includes the parent work and an unmerged codec revision.
Changes
Validation
Remaining limits
IMAGE resaves remain partial outside the selected source-dictionary profile; unsupported graphs can report detached dictionaries, skipped source image records or unmodeled records. For selected filtered dictionaries, planning and writing agree and retain text-only XRECORDs with checked ownership; wrong-owner and unmodeled children remain detached. A bounded same-revision IMAGE profile omits an unused synthetic paper-space block; independent audits of selected model-space and block outputs, last-image deletion outputs, and same-revision binary LINE/IMAGE outputs report no repairs. Independent readback also checks distinct and shared IMAGEDEFs; checked same-revision ASCII-to-binary IMAGE graphs retain selected ordinary dictionaries and text XRECORDs; unsupported text and other source graphs still report dropped raw records. Selected binary-to-ASCII and binary-to-binary resaves retain checked dictionaries and the Normal plot-style pair; other producers and graph shapes remain unqualified. Source paper blocks and unknown graphs remain conservative. Other profiles and custom dictionaries remain unqualified. Complete source IMAGE dictionary, definition and reactor closure and broader binary-source XDATA handle profiles are still required.
The bounded layout and MPOLYGON profiles exclude other block/layout graphs, resources and unqualified geometry. Other tilted and rational geometry, additional layer and edit paths, native rendering, final Linux/Windows checks and the dependent codec release remain open. No general DWG/DXF or consumer parity is claimed.
Windows CI follow-up: close test input streams before file removal or replacement and read ASCII text with platform newline translation. The three affected image tests pass locally; the new Windows run is pending.
Windows validation: the refreshed BuildWindows job passed, including the three previously failing IMAGE round-trip tests. BuildWindowsPersistence also passed.
Review follow-up
63fa814f: canvas picking and logical snapping use XY distance for tilted LINE and IMAGE geometry, and grip dragging restores the selection. Edited MPOLYGON RGB is retained on supported replay; changed fill or a newly named boundary color uses the reported HATCH fallback. The pinned codec interprets MPOLYGON group 430 as fill metadata. The fallback preserves the fill and reports loss of a separate boundary color.On macOS ARM64 with the pinned bundled codec, the headless DWG-enabled build passed all 356 unit tests and 18 layout tests. Six focused regressions failed on the previous implementation and passed after the fix. The 31 plan-checker tests and PR-base plan validation passed. Native GUI and other platform follow-up checks remain open; intersection snapping at nonzero elevation still needs qualification.