Repository navigation
feat(elements): carry each element's Type Mark, Description and Fire Rating from its type (#35) (RE-77) - #419
Merged
Merged
Conversation
…Rating from its type (#35) (RE-77) A type's parameter value block (ElementId, 56 x 0xff, 3 x 0x00) holds some text parameters as i64 BuiltInParameter, u32 n, UTF-16 x n. Three are read, identified by matching values against the model's own exports: Type Mark, Description and Fire Rating. Each element gets its type's values through the type RE-38 and #322 resolve. On Snowdon Towers every value agrees with Revit's: Type Mark 1,257 of the 1,276 the VIM checks (the rest are empty in that later edition), Description 70 of 70, Fire Rating 696 of 696 against Revit's IFC4 export; RE1 Architecture Fire Rating 7 of 7. Credit: jakobhirn-bit and STE1200 (Discussion #112) for the value-block and BuiltInParameter-keyed shapes.
DrunkOnJava
enabled auto-merge (squash)
September 27, 2026 21:03
Bugbot couldn't run - usage limit reachedBugbot 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_15f85c28-c5cb-45d6-8d65-548aa8bd6e3c) |
This was referenced Sep 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Each element now carries its type's Type Mark, Description and Fire Rating, read from the type's parameter value block (RE-77). On Snowdon Towers every value rvt-rs writes agrees with Revit's own data.
Motivation
#35 and #155: parameters were the largest gap in exported properties. jakobhirn-bit and STE1200 described the value-block and BuiltInParameter-keyed layout in Discussion #112; this measures which of those entries are safe to read.
Changes
src/partition_type_parameters.rs: value blocks open[owner u64][56 x 0xff][3 x 0x00]; a type's text entriesi64 BuiltInParameter, u32 n, UTF-16 x nbelong to the block they follow, and the block's ElementId must be declared inGlobal/ElemTable. A type whose blocks disagree on a value gets none (fail closed).partition_schema_mvp.rs: each element takes its type's values through the type RE-38 / Names for system-family types (walls, floors, roofs) from schema-serialised partition data #322 already resolve.ifc/export_content.rs: written under the names Revit shows (Type Mark,Description,Fire Rating).tools/re/type_parameters_vs_ifc.py,tools/re/type_parameters_vs_vim.py,reports/element-framing/RE-77-type-text-parameters.md, README row, support matrix entrytype-text-parameters, CHANGELOG.rvt-rs.jsonobservations are regenerated.Testing
Measured end to end (no new unit tests, per repository policy):
No value rvt-rs writes disagrees with a value either oracle holds.
-D warnings, rustdoc-D warnings,cargo test --workspace --all-targets --all-featurescargo test --profile ci --no-fail-fast --test '*'withRVT_SAMPLES_DIRandRVT_PROJECT_CORPUS_DIRsetifc_schema_arity.py --witness-agreementpassesAudit-honesty checklist
partial), CHANGELOGLegal and contribution hygiene
Breaking changes
None. New properties only.
Related issues
Refs #35, #155. Credit: jakobhirn-bit and STE1200 (Discussion #112).
Note
Medium Risk
Changes IFC property output and relies on new binary parameter parsing; scope is limited to three text type parameters with documented partial recall and fail-closed conflicts.
Overview
Adds RE-77 type text parameters so exported elements inherit their type’s Type Mark, Description, and Fire Rating in IFC property sets and diagnostics.
A new
partition_type_parametersmodule scans inflated partitions for value blocks (ElementId+ sentinel) and reads three BuiltInParameter-keyed UTF-16 strings per type, with fail-closed handling when a type disagrees.partition_schema_mvpcopies those onto instances via the existing resolved type id;ifc/export_contentwrites them under Revit’s display names (dropping the internalm_type_parameter:prefix).Documentation and validation follow: CHANGELOG/README/support matrix, RE-77 report, and Python oracles against VIM/Revit IFC. Core Interior witness observations bump
IFCPROPERTYSINGLEVALUEcounts and hashes. Instance parameters and numeric type params are still not read; Fire Rating recall is partial on large models.Reviewed by Cursor Bugbot for commit 38c8a84. Configure here.