Repository navigation
Preserve RAY and XLINE through shared IFCCAD selection packages - #36
Merged
HakanSeven12 merged 2 commits intoDec 3, 2026
Merged
Conversation
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.
IFCCAD export currently omits RAY and XLINE although DocumentSelection can store and reconstruct them. Capture those roots alongside MLINE, restore available roots on import, and retain blocked roots through the existing editing-session context.
One private preservation engine handles MLINE/RAY/XLINE in ModelSpace, PaperSpace and existing local block definitions. Packages containing RAY/XLINE use typed-selection-1/V4; MLINE-only packages retain their legacy provider and owner-specific storage version. Live edits and common properties remain authoritative, deleted roots cannot resurrect, and blocked roots retain their original backing and exclusive owner. Infinite geometry stays opaque without fabricated finite endpoints or bounds.
This follows merged #34 and is based on Document main
a2a1ce7, with upstream's acadrust035f1aafand IFCCAD6a2f36e0pins. It preserves shared file-source state alongside retained selections and uses the codec's direct handle census.Public preserving methods, IfccadRoundtripContext and mline-pilot remain unchanged. No native IFCCAD contract/schema/profile/CBOR change, release or Explorer deployment is included. Complex linetypes, selected INSERT roots and raw/private codec data remain out of scope.
Validation on final commit
c9b75d8: local formatting and strict all-target/all-feature Clippy passed, all six native feature configurations passed, and both WASM configurations passed on Rust 1.98. CI also passed all six configurations on Windows, Linux and macOS, plus both WASM checks on stable Rust 1.100.1. Regression coverage includes two-cycle JSON/CBOR retention across model/two paper layouts/nested blocks, exact blocked B records/backings/owners, editing/deletion/dependency return/common overrides, atomic failure, malformed packages, and production DWG/DXF readback of current nested INSERT placements.Earlier pinned development-pair native Studio and embedded Explorer probes passed rendered grip editing, undo/redo, QSAVE/source-tab retention/fresh reopen and exact8B saved-file readback. Those host probes used the earlier pins; they are historical host evidence and do not claim a rebuilt/qualified host for the updated upstream dependency pair.
Two existing strict-Clippy findings are corrected without changing behavior: a test uses
contains, and an unchanged test module moves below production items.This replaces the closed fork review.