Repository navigation
Preserve IFCCAD DWG XREF sources and placements - #30
Merged
Merged
Conversation
BjornFidder
marked this pull request as ready for review
November 20, 2026 10:32
Owner
|
Merged in 6807669, thanks. The XREF tests pass locally with |
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.
Map external DWG source definitions and Model INSERTs to native IFCCAD XREFs without flattening loaded source geometry. Context-aware saves retain source/entity IDs, original URI spelling, the expected fingerprint GUID, source base/unit and O/X/Y placement with one effective scale, including offline save/reopen.
The shared location helpers distinguish URI references from search filenames and perform path escaping once. CAD export rejects URI forms with no qualified DWG/DXF path mapping. Unsupported reference semantics receive explicit conversion diagnostics.
Dependencies
Requires IFCCAD main commit
96895aea607e3f2a54f9b286115844554f59df77(profile 0.12.0 / CBOR 12). The codec now uses official upstream revisiona7d378502748e6428655aa091306f01f7f3a17a9, including hakanaktt/acadrust#533. The temporary fork review pin is removed from Cargo.toml and Cargo.lock. No machine-local path overrides are submitted.The current upstream Document dependency updates are merged through
41b870fb, preserving its newer official codec pin rather than downgrading it. Codec changes since the review pin include Civil TIN/alignment/profile APIs and FileDepList reader improvements for section flags, UCS-4 strings and graphics-flag padding. The typed dependency record and Document entity fields remain unchanged. Civil proxy entities retain the existing explicit omission diagnostics; no new Civil conversion coverage is claimed.Validation
The pinned local development pair passed all six Document CI configurations on 19 November 2026, including the IFCX/preservation feature combination. Focused tests cover strict native readback, physical DWG/DXF return, source base and effective scale, URI/search behavior, IDs, GUID retention and unsupported semantics. Desktop/browser tests and user manual XREF verification passed with the matching Studio candidate.
On 20 November this draft was refreshed against Document main
7e3fcc4and codec main9517c6f, preserving the new upstream functionality. Public dependency resolution, including all features, confirms exactly one native and one codec identity. The earlier local-pair results are historical evidence for the first slice.DXF output follows the current codec/Studio policy for dependency GUIDs; this contribution adds no private DXF extension or extra GUID-loss warning. AutoCAD-authored known-GUID fixture qualification remains separate.
Whole DWG sources and planar positive uniform Model attachments only. DXF/IFCCAD sources, nested graphs, overlay, bind, packaging and SHX/CTB/STB migration are follow-up work. This draft is not a release or deployment.
The official codec-pin update passes
cargo fmt --all -- --checkand the completecargo test --locked --features serde,mline-pilotlocally, including strict native readback, physical CAD, XREF and location regressions and doctests. Locked feature-enabled metadata confirms exactly one codec from the official upstream repository and native IFCCAD from the staged public commit; no local source patches were selected. Fresh GitHub platform/WASM CI is pending on this dependency-only update.