Skip to content

fix(ifc): one material rule for the schedule and the CSV, counts after --revit-property-sets, and docs and messages that say what the export does (batch 9) - #1946

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/b9-output-neutral
Nov 13, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/b9-output-neutral

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Batch 9's confirmed findings that change no IFC value, each re-read against the code by Claude:

  • One material rule. The viewer's schedule (scene_graph::build_schedule) read only an element's single material, so a layered wall showed none where the elements CSV names its layer set. schedule_csv::MaterialNames holds the CSV's rule (profile set, layer set, single material, constituents) and both use it.
  • Counts after --revit-property-sets. export_pipeline called recount_exported after every model-changing step but revit_property_sets::attach, so exported.total_entities missed the sets it adds.
  • No storey means the building. BuildingElement.storey_index, ElementInput.storey_index, a step_writer comment and the no-Level warning said an element with no storey goes to storey 0, or to a fallback storey. The writer contains it in the building (RE-27, RE-124), and they now say so.
  • Docs that misstated the code.
  • Small guards.
    • The element panel prints a length that rounds to zero as 0.000, as its own rule says.
    • The glTF export drops a material index past the model's materials, as the STEP writer does.
    • attach_wall_top_joins replaces m_wall_top_joined rather than pushing a second copy.

Motivation

Batch 9, an export bug hunt: 40 DeepSeek checkers and 30 verifiers, $3.79. Two other fixes from it change exports and are their own PRs: #1939 (the opening box height) and #1940 (material colours). The rules that run on unmeasured releases are #1945.

Testing

No IFC value changes. diagnostics.json changes only in the no-Level warning's text, and in total_entities under --revit-property-sets, which no Measure run uses. The unfiltered Measure with the samples is in this PR's comments, to show the exports byte-identical and give the gates verdict.

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/fixed/

…e schedule and the CSV, counts after --revit-property-sets, and docs and messages that say what the export does

- schedule_csv::MaterialNames: the elements CSV's precedence (profile set,
  layer set, single material, constituents) shared with scene_graph's
  schedule, which read the single material alone.
- export_pipeline: recount_exported after revit_property_sets::attach.
- The no-Level warning, BuildingElement.storey_index, ElementInput.storey_index
  and step_writer's comment say an element with no storey is contained in the
  building (RE-27, RE-124), not put in storey 0.
- BuilderOptions.units: the source model's units, reported in the
  diagnostics; the IFC's unit assignment is fixed SI (#403).
- ScheduleRow.guid is the ElementId, not the GlobalId; pbr's comment names
  the sRGB transfer function it applies.
- The panel formats lengths with format_feet (no -0.000).
- gltf: a material index past the model's materials is dropped.
- attach_wall_top_joins replaces m_wall_top_joined rather than pushing a
  second copy.
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Measure 43515845568 (unfiltered against main 040fc01, with every model and scorer and the samples; head 38e14b0):

  • IFC: 101 of 101 exports are byte-identical.
  • diagnostics.json: 89 are equal. The other 12 are the rst_basic saves of 2016 to 2027, which recover no Level, and each differs only in the corrected warning, "No Revit levels were recovered: the IFC has no storey, and its elements are contained in the building (RE-124)", where it said the export used a fallback storey.
  • Scorers: none moves.
  • Same-project gates: pass.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 13, 2026 23:01
@DrunkOnJava
DrunkOnJava merged commit 7ee5135 into main Nov 13, 2026
65 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/b9-output-neutral branch November 13, 2026 23:15
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