Skip to content

Load DXF and IFCCAD XREF sources in native drawings - #3511

Merged
HakanSeven12 merged 8 commits into
HakanSeven12:mainfrom
BjornFidder:xref-source-formats
Nov 24, 2026
Merged

HakanSeven12 merged 8 commits into
HakanSeven12:mainfrom
BjornFidder:xref-source-formats

Conversation

@BjornFidder

@BjornFidder BjornFidder commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Opened IFCCAD hosts can attach, retain and reload DXF and IFCCAD XREF sources alongside DWG. Reload validates declared format, source base and units before replacing graphics; a failed replacement keeps the previous body. Saving an open source refreshes its native host through the existing source-save notification route.

This follow-up builds on merged #3379 (8aa07b24); its verified review head incorporates Studio base1cab9bc1c, retaining upstream's new source layout, plugins and UI dependencies. The exact paired Document#31 review pin is e43a079e69ca1abf244d550409d80b22b5d21da6, staged native maincd79dfc8, official codec14f7da10. Host and standalone Python locks resolve the same public graph; no path override is submitted. Before merging this PR, switch to the official Document#31 merge and requalify that exact graph.

  • Native source reading uses the strict production JSON/CBOR reader. Source origin/unit are retained without inventing a GUID.

  • Typed DXF/IFCCAD attachments require an opened native host; CAD-only tabs refuse before mutation. DWG/DXF destinations refuse non-DWG source types independently of their filename.

  • A native source with its own external-source registry, direct self-reference or an unsupported encoding fails before graphics replacement.

  • Source associations and metadata survive native save/readback. File-based and registered/browser bytes share the same source reader and retained session rules.

The original reviewed development pair passed desktop source edit, placement grip, undo/redo and fresh-process offline readback, actual browser source choice/reload and tab isolation, and the user's DXF/IFCCAD manual trial. Those old reader/browser binaries retain their recorded pins; this refresh is qualified separately against the current source/dependency graph.

Refreshed first-slice qualification:180 XREF tests and20 save/readback tests pass against official Document663bc3a. Final source-format qualification follows below. Browserhost and worker compile together for WASM/release with the same public pair; the existing WASM cache/profile is preserved. Shared worker protocol7 and main open/save/backup encoding policy are unchanged.

Known upstream lint limitation: workspace Clippy exits101 on crates/ocs_geom/src/geom2d/intersect.rs:603, clippy::approx_constant for deliberate near-PI input3.14. The file's blob67abf426 is identical to current upstream1cab9bc1c. Upstream explicitly treats lint as informational; no unrelated numerical test is changed and no Clippy pass is claimed.

No schema change, recursive native sources, source packaging/conversion, remote fetching, SHX/CTB/STB migration, Zstd source decoding, release or deployment is included in this refresh. Ready for review after #3379 merged and every CI check on this head passed. Document#31 remains an explicit dependency; the official pin transition is required before merge.

Final refreshed qualification: cargo test --workspace --locked passes (7864 passed, 50 intentionally ignored,0 failed; application library6829 passed). cargo check --locked --release --target wasm32-unknown-unknown -p OpenCADStudio -p ocs_web_worker passes. Exact graphs, source/config/tool hashes and logs are recorded locally. Full GitHub CI restarts for this public head; no Clippy success is claimed.

Review and merge status — 23 November

Original Studio#3379 has merged at8aa07b24. This PR is ready for parallel review: all current Linux/Windows tests, WASM, MCP and Python-host CI jobs passed. Its unchanged source head remains03212cec1, locally qualified by7864 workspace tests and the matching host/worker WASM check. A merge-tree check against current Studio main0f00b8c2c is conflict-free; this check does not claim new runtime qualification of unrelated newer main changes.

Document#31 is still open and green. It can be reviewed in parallel; this PR must wait for the following before merging:

  • Merge Document#31 through its upstream review.
  • Replace the exact e43a079 fork review pin with the official merged Document commit in every host/worker/plugin manifest and lockfile.
  • Recheck the resolved graph and affected tests with that official pin.

Changing draft status does not remove these merge prerequisites. No source, dependency pin, release or deployment changes are made by this review-ready update.

@BjornFidder
BjornFidder marked this pull request as ready for review November 23, 2026 13:02
@HakanSeven12
HakanSeven12 merged commit 1c7627a into HakanSeven12:main Nov 24, 2026
8 checks passed
HakanSeven12 pushed a commit that referenced this pull request Nov 24, 2026
…escriptors (#31)

Replaces the review pin of #3511 with the merged commit in every manifest
and lock file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Caxnfk2dNQgRSYSgRP1Nt
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