Skip to content

Preserve RAY and XLINE through shared IFCCAD selection packages - #36

Merged
HakanSeven12 merged 2 commits into
HakanSeven12:mainfrom
BjornFidder:selection-ray-xline-upstream
Dec 3, 2026
Merged

HakanSeven12 merged 2 commits into
HakanSeven12:mainfrom
BjornFidder:selection-ray-xline-upstream

Conversation

@BjornFidder

@BjornFidder BjornFidder commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

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 acadrust 035f1aaf and IFCCAD 6a2f36e0 pins. 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.

@BjornFidder
BjornFidder marked this pull request as ready for review December 3, 2026 15:56
@HakanSeven12
HakanSeven12 merged commit d218fda into HakanSeven12:main Dec 3, 2026
4 checks passed
@BjornFidder
BjornFidder deleted the selection-ray-xline-upstream branch December 3, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants