Skip to content

docs(re): the wall-end rule's unexercised paths are stated, with what each export reaches (#1418) (RE-337) - #1579

Merged
DrunkOnJava merged 1 commit into
mainfrom
docs/1418-wall-end-unmeasured-paths
Nov 9, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
docs/1418-wall-end-unmeasured-paths

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

RE-337 gains a dated section 6 for the paths it listed as not measured. The section reads each path against the wall-end code RE-348 (#1410) left, and measures each on all 111 exports of Measure run 42567326561 (base side, main at 83417fde). docs/export-diagnostics.md now lists every case joined_wall_not_read covers, and says the decisions log leaves out the unmarked reads. Docs only: no code or output changes.

Motivation

#1418 asked for two things:

  • the wall beneath drawn as a solid becomes a counted reason, wall_beneath_is_a_solid, in exported.wall_end_refusals and the decisions log;
  • the paths with no measured instance are each exercised on a real model or a synthetic fixture, and any path with no model is stated as unmeasured in RE-337.

RE-348 rewrote the rule after the issue was filed. The end now follows the walls the record joins at that end, in the record's order, rather than one wall beneath. Where each part of the issue stands on main:

  • Solid joined wall: counted, under RE-348's reason, not a reason of its own.
    • followed_wall reads a joined wall only as its plan's prism or as RE-320's stepped body.
    • Any other wall the list reaches while height is still to be read refuses the end as joined_wall_not_read. That covers four cases: a wall drawn as another kind of solid, a wall whose base join names elements, an ElementId that more than one entity holds, and an element not exported as a wall.
    • It is counted in exported.wall_end_refusals, with a decisions-log entry, only where a joined wall read earlier showed the end short of its face. Otherwise it is counted in exported.wall_end_reads_unmarked, which the decisions log does not hold. That is RE-348's marker policy: a wall carries a refusal only where the record shows its end is wrong.
    • On the office's own lists, a solid wall beneath would be marked on 3 of the 8 ends and counted unmarked on the other 5.
    • This PR does not split out wall_beneath_is_a_solid. It would be a new reason that no export produces, and the rule now reads joined walls, not a wall beneath.
  • Still uncounted: a wall in the way that the rule does not read.
    • in_the_way searches only the walls the rule reads. A wall of any of the four cases above, standing in a strip but not joined there, is not found, and the strip would be drawn through it.
    • This is RE-337 section 5's last item, unchanged, now stated in section 6 and in the wall_stands_in_the_added_end row of docs/export-diagnostics.md.
  • walls_beneath_reach_the_end_at_different_faces is gone. RE-348 counts order-dependent ends instead of refusing them.
  • base_cut_lost_on_extended_plan and finish_wall_ends are reachable and unexercised.
    • base_cut_lost_on_extended_plan fires when the cut of the base resolves on the record's plan but not on the longer one. For example, the strips reach a second element that covers part of the plan.
    • finish_wall_ends runs on a drawn end with a strip below the top and no base join.

Measured

Base side of 42567326561: 93 openly licensed exports and 18 held-out (counts only).

Exports
Revit 2024 saves, the only release whose end lists the rule reads (WALL_END_JOIN_REVIT_VERSIONS) 15 of the 93
... with a wall with an edited elevation profile (upper bound, method in RE-337 section 6) at most 8
... where the rule draws, keeps or counts an end 3: the office as built and at permit, Snowdon Towers Architectural
Held-out exports with any wall-rule count 0 of 18
Exports with joined_wall_not_read or base_cut_lost_on_extended_plan 0 of 111

The 8 walls whose end is drawn (4 on each office file) all also carry BodyBaseSource, so finish_wall_ends made no body on any export. Since 83417fde, main has changed src/ only through #1578, which works on Revit 2015 to 2023 walls, so the end rule (Revit 2024 only) is unaffected.

Why no synthetic fixture

The pass runs inside append_typed_production_elements. Its inputs come from a Revit 2024 file's element records and native wall records: the profile openings from GLines, the join trims, and the JoinEndGStep lists. gen-fixture writes no element records; its files decode as a scaffold. The pass is also private to the exporter. Driving it on constructed entities would be a unit test of a geometry transform, checked against the code itself rather than against a Revit export, and CONTRIBUTING.md does not accept those. So the three paths stay stated as unmeasured until a Revit 2024 model reaches them.

Changes

  • reports/element-framing/RE-337-wall-ends-at-the-base-wall.md: section 6, with the counts, the reasoning above and reproduce commands; the "Superseded in part" line points to it. Sections 1 to 5 are unchanged.
  • docs/export-diagnostics.md: the exported.wall_end_refusals row now lists every case joined_wall_not_read covers, says which walls wall_stands_in_the_added_end cannot see, and gives the 111-export count. The exported.wall_end_reads_unmarked row says the decisions log leaves these reads out.
  • changelog.d/research/1418-wall-end-unmeasured-paths.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 passes: N/A, docs only. python3 tools/release/changelog.py check and python3 tools/ci/api-doc-ids.py pass.
  • Verified end to end on real Revit files: the counts come from the run's per-model wall_rules.txt, info.json and kept model.ifc. RE-337 section 6 gives the dispatch command.
  • If this touches the IFC exporter: N/A.
  • If this is a performance change: N/A.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • A user-visible change has its entry as a fragment under changelog.d/<section>/
  • If a limitation was resolved: N/A, none resolved
  • If a new limitation was introduced: none new; the wall-in-the-way gap from RE-337 section 5 is restated
  • Commit messages describe WHAT changed and WHY
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • If this is a reverse-engineering finding: N/A, no new format fact

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (no format bytes are read here; held-out models appear as counts only)
  • Any new test fixtures use synthetic values: N/A, no fixtures

Breaking changes

None.

Screenshots or output samples

N/A: no output changes.

Related issues

Refs #1418. For the three paths no model reaches, this PR meets the done-when's last sentence: each is stated as unmeasured in RE-337, with the measurement behind that. The named reason wall_beneath_is_a_solid is not added (see Motivation), so the PR does not close the issue.

… each export reaches (#1418) (RE-337)

RE-337 section 6 reads the paths #1418 named against the code RE-348 left
and measures them on the 111 exports of Measure run 42567326561 (main at
83417fd).

- A joined wall drawn as a solid is counted as joined_wall_not_read. The
  list's order decides whether it lands in wall_end_refusals or in
  wall_end_reads_unmarked.
- A wall in the way that the rule does not read is still not found.
- base_cut_lost_on_extended_plan and finish_wall_ends are reachable and
  have no instance: all 8 walls whose end is drawn have their base cut.

docs/export-diagnostics.md now lists every case joined_wall_not_read
covers, and says the decisions log leaves out the unmarked reads.
@DrunkOnJava
DrunkOnJava merged commit b5237b1 into main Nov 9, 2026
48 checks passed
@DrunkOnJava
DrunkOnJava deleted the docs/1418-wall-end-unmeasured-paths branch November 9, 2026 07:07
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