Skip to content

fix(elements): a sketch whose lines, curve list or slab box differ between partitions takes its current copy (#824) (RE-216) - #978

Merged
DrunkOnJava merged 15 commits into
mainfrom
fix/824-current-sketch-copies
Oct 25, 2026
Merged

DrunkOnJava merged 15 commits into
mainfrom
fix/824-current-sketch-copies

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

A slab edited after its first save keeps Revit's outline. Where a sketch line's ends, a sketch's curve list or the slab's own record box differ between partitions, rvt-rs now takes the copy in the partition the element's current record is in (RE-216's rule for an instance's transform), where such a sketch was dropped and the slab drawn as its box. On the BIM4LCA office at building permit, slabs 1384047 (a box before) and 1474132 (0.070 ft off) take Revit's outline: 61 of 63 slabs within 0.01 ft, from 59. Part of #824 (RE-216 §8).

Motivation

#824's remainder named the permit file's slab 1384047. Its sketch was edited after the first save, so its lines, its Sketch's curve list (18 curves in one partition, 40 in two later ones) and its own record box all have older copies, and each reader either dropped it or took the first copy.

Changes

  • src/partition_beam_axes.rs: scan_first_records takes a Copies mode; sketch scans (lines, curves, circles, splines) take the current partition's copy (native_document::current_partitions, now pub); walls and beams keep Copies::Agreeing.
  • src/partition_schema_mvp.rs: current_sketch_records keeps each sketch line's current record copy; plates (the slab boxes outlines are held to) come from select_instance_records, the record the slab element is built from.
  • src/element_record_plan_profiles.rs: sketch_curve_list_copies (every copy, research helper) and scan_sketch_curve_lists takes the current partition's list where copies disagree.
  • src/partition_instance_transforms.rs: reuses current_partitions.
  • Probes examples/probe_824_slab_arcs.rs, probe_824_slab_decode.rs, probe_824_sketch_lists.rs, probe_824_wall_copies.rs; scorers tools/re/slab_outlines_list.py, wall_copies_vs_ifc.py; tools/re/plan_profiles_vs_ifc.py names the slabs that are off where they are few.
  • reports/element-framing/RE-216-current-instance-copies.md §8, docs/status.md, docs/support-matrix.json (element-record-slab-plan-profile), changelog.d/fixed/current-sketch-copies.md.

Testing

Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.

  • tools/check-local.sh: CI.

  • Verified end to end on real Revit files. Measure 40181361898, this change against main (0304c03), -f nordic=true -f r2025=true:

    BIM4LCA office at building permit (CC BY-SA 4.0) before after
    slabs with Revit's outline within 0.01 ft 59 of 63 61 of 63
    slab top area within 0.1% 60 of 63 61 of 63
    unfilled openings that are one of Revit's (opening_boxes_vs_ifc) 25 of 37 27 of 43

    The two slabs' holes add six unfilled openings: two are Revit's own, four are holes Revit cuts in the slab profile instead, so the top surfaces are Revit's either way. Every other model's IFC is byte-identical, the office as built among them.

  • Measured negative, recorded in RE-216 §8: taking walls' current copy too drew 7 of Core Interior's walls 0.333 ft off Revit's ends (Measure 40170636127), so walls and beams keep dropping disagreeing copies.

Audit-honesty checklist

Legal and contribution hygiene

  • Apache-2.0
  • No Autodesk proprietary content. Clean-room declaration: byte observations of the files' own partitions and the native routing native_document reads; no Autodesk SDK source, disassembly or NDA material was used.
  • No fixtures

Breaking changes

None. current_partitions, sketch_curve_list_copies and SketchListCopy are newly public in the research surface.

Related issues

Refs #824

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 25, 2026 09:52
@DrunkOnJava
DrunkOnJava merged commit fa4094e into main Oct 25, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/824-current-sketch-copies branch October 25, 2026 10:48
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
… as retitled (#979)

## Summary

The contribution map's rows for #323, #810, #824 and #878 take their
issues' current titles, and ROADMAP's 0.8.0 paragraph names what each
still owes.

## Motivation

Today's landings narrowed four issues: #968 and #974 left #323 only its
roof parts, #972 left #810 two doors, #975 and #978 left #824 the roof
hatch openings, and #970 left #878 the 2015 elements' GlobalIds. The map
says it lists each open issue "with each issue's own title".

## Changes

- `docs/contribution-map.md`: four rows retitled.
- `ROADMAP.md`: #323 (roof parts), #810 (two doors), #824 (roof hatch
openings).

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [ ] `tools/check-local.sh`: CI.
- [x] Docs only; every map row compared with `gh issue list --state
open`.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [ ] A user-visible change has its entry as a fragment under
`changelog.d/`: not needed, docs only
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content
- [x] No fixtures

## Breaking changes

None.

## Related issues

Refs #323, #810, #824, #878
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
…ipes, door sizes and slab outlines (#981)

## Summary

The supported profile and the 1.0 criteria caught up with what 0.8.0 has
landed so far: stairs (riserless and spiral flights, landings,
predefined types, the office's numbers), Revit 2024 pipes, door and
window sizes from the record box (RE-218), and the office's slab
outlines. The 1.0 criteria named the closed 0.6.x milestone as where the
geometry residuals live; they now name 0.8.0 and the W6 census. The
copies fragment's slab count is corrected to what `main` measures.

## Motivation

`docs/supported-profile.md` is the per-row statement 1.0 is judged by.
Its stairs row still said spiral and riserless flights are boxes (drawn
since #959 and #966), its pipes row said Revit 2025 only (Revit 2024
since #954), and its doors row did not have RE-218.

## Changes

- `docs/supported-profile.md`: the floors, pipes, stairs and doors rows.
- `docs/release-1.0-criteria.md`: the W6 row and the closing paragraph
name the 0.8.0 milestone and `tools/re/box_bodies_vs_ifc.py`.
- `changelog.d/fixed/current-sketch-copies.md`: 62 of 63 office slab
outlines on each file with #975 and #978 both on `main` (the fragment's
61 was measured before #975 joined it).

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [ ] `tools/check-local.sh`: CI.
- [x] Every number is from a Measure run on `main` or the PR that landed
it: slab outlines from Measure
[40187355859](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40187355859)'s
base (`main` 3a3b50a, `plan_profiles_vs_ifc`: 62 of 63 on each office
file), pipes from #954, stairs from RE-214 and RE-217, door sizes from
RE-218 and #972. `python3 tools/release/changelog.py check` passes.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] A user-visible change has its entry as a fragment under
`changelog.d/`: docs only, no new entry
- [x] Resolved limitation updated (support matrix, status)
- [x] Limitation documented: unchanged
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0 (see
`CONTRIBUTING.md`)
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content (see `CLEANROOM.md`)
- [x] Any new test fixtures use synthetic values: none added

## Breaking changes

None.
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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.

1 participant