Skip to content

research(elements): the element record flag word at +0x46, three bits attributed (#223) (RE-128) - #518

Merged
DrunkOnJava merged 4 commits into
mainfrom
re/re128-record-flags
Sep 28, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
re/re128-record-flags

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Research only; no change to rvt-rs output.

  • A probe, examples/probe_re128_record_flags.rs, and a scorer, tools/re/record_flags_vs_ifc.py, measured on GitHub's runners with the Measure workflow (run 36494666177) on Core Interior and the four RE1 models.
  • The offsets are confirmed: re-reading +0x4a equals the decoded class on 14,580 of 14,580 and 98 of 98 records.
  • Attributed on both files with no exception:
    • bit 7: an element type (every type-class record, no instance, none exported);
    • bits 1, 6 and 15 set with bit 11 clear: a room;
    • bit 0: an element drawn along a curve (every wall, pipe and duct record across the five models; no other record).
  • Not attributed: bit 12 (1,457 of 1,487 Core walls). Neither export writes Revit's own property sets, so these oracles can't test it. The report says what would.

Report: reports/element-framing/RE-128-record-flag-word.md.

Clean-room

Derived only from public byte observations of the named MIT files, the field name from Discussion #112, and comparison with Revit's own IFC exports.


Note

Low Risk
Adds examples, tooling, and documentation only; no changes to the rvt-rs library or export output.

Overview
Research-only (RE-128 / #223): documents Revit's element-record flag word at +0x46 (m_abFlags4Bytes) without changing rvt-rs export behavior.

Adds probe_re128_record_flags to scan exported categories and emit JSONL per record (id, category, class, flags, placement, containment), with a sanity check that raw +0x4a matches the decoded class tag. Adds record_flags_vs_ifc.py to join that output to Revit's IFC export by Tag and tabulate flag values/bits against export presence and IsExternal / LoadBearing from common psets.

The new report records measured values on Core Interior and RE1 Architecture and attributes three bit patterns (bit 7 = element type; bit 0 = wall; room signature via bits 1/6/15 with bit 11 clear)—redundant with +0x4a class decoding. Bit 12 remains unexplained; reference IFC exports lack Revit-native property sets needed to test it further.

Reviewed by Cursor Bugbot for commit 3b7bf71. Configure here.

@cursor

cursor Bot commented Sep 28, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_6d0dd8ab-2a1c-482c-b32a-607156b57a2f)

@DrunkOnJava
DrunkOnJava merged commit fdd9995 into main Sep 28, 2026
18 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/re128-record-flags branch September 28, 2026 23:08
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