Skip to content

feat(ifc)!: rvt-ifc --revit-property-sets writes Revit's own property sets (#35) (RE-210) - #934

Merged
DrunkOnJava merged 16 commits into
DrunkOnJava:mainfrom
puzzbobb:issue35-slice2
Oct 24, 2026
Merged

DrunkOnJava merged 16 commits into
DrunkOnJava:mainfrom
puzzbobb:issue35-slice2

Conversation

@puzzbobb

Copy link
Copy Markdown
Contributor

Summary

rvt-ifc --revit-property-sets writes each element's named saved parameters (RE-207) the way Revit's exporter writes them with "Export Revit property sets": one property set per parameter group, named for the group (Dimensions, Identity Data, Materials and Finishes, ...), with the type's parameters in such sets on its type object (RE-210). Against Revit 2025's exports of Autodesk's Snowdon Towers HVAC and Site with "Export Revit property sets", every property rvt-rs writes is in the set of the same name, on the element or type object of the same Tag, with Revit's value: 28,906 and 718, counted per element. On Snowdon Architectural, 58,346 of 58,733 are; 369 of the rest are in sets Revit names with (Type) on 13 type objects it does export, which follows from the order of its export, and 18 are curtain panels' type category, written before this change. Revit writes 79,907, 948 and 118,432 more, nearly all built-in parameters, which rvt-rs does not name (#255). On the BIM4LCA office as built, FireExit written in Identity Data equals Revit's Pset_DoorCommon and Pset_WindowCommon.FireExit on 498 of 498 doors and windows. This is the second slice of #35. It is opt-in, and without the option the export is unchanged.

This branch is stacked on #887 (slice 1, RE-207) at f4e3c0e. Until #887 is merged, its commits also show here; this PR's own are the last four.

Motivation

#35 (M4-07) asks for an element's instance and type parameter values in the exports. Slice 1 (#887) read and named them for rvt-elements and Python. This slice writes them to IFC in the form Revit's own exporter uses for the same parameters, so an rvt-rs export can be compared with, and stand in for, a Revit export made with Revit's property sets. It serves W7 (Properties) of docs/release-1.0-criteria.md.

The rules are read in revit-ifc's Release_25.x.x branch (CLEANROOM.md source 5: read and cited, no code copied):

what revit-ifc rvt-rs
which parameters ParameterUtil.CacheParametersForElement: visible, named, by parameter id; the IFC group left out; per group one parameter per name with its spaces removed, the first RE-207's named parameters; the IFC group left out; per group the lowest parameter id per space-free name
instance and type PropertyUtil.CreateInternalRevitPropertySets: the element's own parameters on it, the type's on its type object, or on its elements with (Type) added where it has none when the element's sets are made (ElementTypeToHandleCache.IsRegistered), so a type object created later carries (Type) sets too the same, the type's through IfcModel::type_property_sets; a type object's sets always under the group's name
set name LabelUtils.GetLabelForGroup Revit's English labels for the 24 groups the measured models use (GROUP_LABELS)
values Yes/No IfcBoolean; an integer with a spec IfcInteger, with none its display text; a non-empty text; a real by its spec (CreateRealPropertyByType); an ElementId by the display name of what it names (AsValueString), none for −1 Booleans, integers with a spec, non-empty texts, lengths (length, pipe and duct size), areas, volumes, angles, numbers, air flows, HVAC and piping pressures, apparent and electrical powers, electrical potentials, currents (in SI units), material names, and family types as <family> : <type> (the type's name alone where both are the same, as measured); enumerations and other specs left out and counted

Changes

  • src/ifc/revit_property_sets.rs (new): attach(file, model) reads the elements' parameters with research::native_element_parameters::read and adds the sets; group_label gives a parameter's set. property gives its property, and since it takes research's ElementParameter it is public only with unstable-research; attach, Report, group_label, GROUP_LABELS and TYPE_SUFFIX are stable.
  • src/ifc/mod.rs: the module, and IfcModel::type_property_sets (#[serde(default)]), a type object's further sets by type id.
  • src/ifc/entities.rs: PropertyValue gains VolumetricFlowRate, Pressure, Power, ElectricVoltage and ElectricCurrent, in SI units, written as IfcVolumetricFlowRateMeasure, IfcPressureMeasure, IfcPowerMeasure, IfcElectricVoltageMeasure and IfcElectricCurrentMeasure. src/ifc/scene_graph.rs formats them.
  • src/ifc/step_writer.rs: a type object's sets take type_property_sets too, merged by set name. The IfcUnitAssignment declares pascal, watt, volt, ampere and m³/s when a value of that kind is written, in an element's or a type object's set, as it already declared W/(m²·K) for a thermal transmittance; that check now also looks at type objects' sets.
  • src/bin/rvt_ifc.rs: --revit-property-sets (not with --placeholder). A file whose parameters cannot be read is still exported, with a warning on stderr.
  • src/ifc/from_decoded.rs, tests/fuzz_regressions.rs, tests/ifc_synthetic_structural.rs: the new field in IfcModel literals.
  • Tests: tests/revit_property_sets.rs (nordic_office_fire_exit_is_revits_in_identity_data, re1_mep_flows_pressures_powers_and_voltages_are_in_si_units, which covers currents too), listed in tools/ci/test-targets.txt and tests/integration/main.rs. It reuses tests/element_parameters.rs' IFC value reader, now pub(crate).
  • Probe: examples/probe_re210_revit_property_sets.rs.
  • Scorer: tools/re/revit_property_sets_vs_ifc.py, for an export made with the option against Revit's export with "Export Revit property sets". It compares lengths, areas, volumes and angles after each file's units, and numbers within rvt-rs's rounding to six decimals.
  • Report: reports/element-framing/RE-210-revit-property-sets.md.
  • Docs:
    • README.md (summary, a reads-table row, the parameters gap);
    • docs/status.md (a dated RE-210 entry);
    • docs/supported-profile.md;
    • docs/support-matrix.json (ifc-revit-property-sets, partial);
    • CHANGELOG.md;
    • a dated addendum in docs/rvt-moat-break-reconnaissance.md.

The commits run feat → test → research → docs.

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 (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)

    • cargo fmt --all -- --check passes.
    • cargo clippy --workspace --all-targets --all-features -- -D warnings passes.
    • cargo doc -p rvt --no-deps passes with RUSTDOCFLAGS='-D warnings'.
    • cargo +1.87 check --profile ci --all-targets (the MSRV job) passes.
    • RUSTFLAGS='-D warnings -D unnameable_types' cargo check --lib --bins (CI's check that the default features hand out no research type) passes.
    • tools/ci/verify-real-files.sh --profile ci --no-fail-fast passes 252 of 252. It ran with RVT_SAMPLES_DIR (phi-ag's Autodesk families), RVT_PROJECT_CORPUS_DIR (magnetar fd755e1 with RE1 and r2025/) and RVT_NORDIC_LCA_DIR set, so both new tests ran rather than skipped.
  • Verified end to end on real Revit files: the command, the files (and their licence), and the measured result against Revit's own export are in the PR body, with the script or probe that reproduces it

    • The command is rvt-ifc MODEL.rvt -o ours.ifc --revit-property-sets. The probe probe_re210_revit_property_sets MODEL.rvt prints what it adds, per set, and what it leaves out, by reason.
    • Against Revit's own sets. Autodesk's Snowdon Towers Sample HVAC, Site and Architectural, 2025 edition (sha256 a1756cfd…31bfe, 43140cd8…c1ff8, 8ac90a85…0d334), exported by Revit 2025.4 to IFC4X3 with "Export Revit property sets" ticked. The files are Autodesk's; they were measured locally and are not committed, as in reports/validation/held-out-snowdon-mep-2026-09-27.md. Command: python tools/re/revit_property_sets_vs_ifc.py ours.ifc REVIT.ifc.
    level sets written by rvt-rs equal to Revit's Revit's, not written by rvt-rs
    element Dimensions, Mechanical - Flow, Other 14,445 14,445 26,771
    element Constraints, Graphics, Identity Data, Insulation, Lining, Mechanical, Phasing 0 — 45,181
    type object Constraints, Dimensions, Electrical - Loads, Electrical Engineering, Identity Data, Mechanical, Mechanical - Flow, Model Properties, Other, Text 14,461 14,461 7,955
    total 28,906 28,906 79,907
    • HVAC, in the table. The counts are per element: a type object's property counts once for each element of the type. They include the Category, Family and Type values rvt-rs already wrote in Other. The option itself adds 5,772 properties on 1,469 elements and 17 type objects (the probe).
    • No property is written in a set where Revit's export lacks it, and none differs. So the group labels, the set each parameter lands in, the split between element and type object, and the values are Revit's on this model.
    • Two scorer fixes came first. Revit's export declares degrees, so angles are compared after each file's angle unit. rvt-rs writes six decimals, so numbers are compared within that rounding. Before them, 4,281 values counted as differing, all for those two reasons (measure/ in the package).
    • The model also showed what was left out: 1,055 air flows, pressures, powers and voltages, and the group Electrical Engineering. They are now written, and all equal Revit's.
    • Revit's 79,907 more are built-in parameters, such as System Name, Phase Created, Size, Flow, the elevations, Family and Type, Mark and OmniClass, and two family parameters (OffsetWidth, OffsetHeight, 43 each) that are not among those rvt-rs reads on those duct transitions.
    • rvt-rs exports 2,596 of Revit's 2,627 elements; the other 31 are flex ducts, which rvt-rs does not export.
    • Site (walls, floors, railings, generic models): 718 of 718 equal, counted the same way; the parameters add 8 properties on 2 type objects. Revit writes 948 more, all built-ins (Phase Created, Area, Type Mark, constraints, construction, analytical properties).
      • Revit writes one floor as five IfcSlabs of one Tag, so the scorer now takes all products of a Tag together. Before that, 5 of that floor's properties counted as not written by Revit.
      • The Site export writes (Type) sets on 12 sites, 3 storeys and 5 openings, which confirms the suffix in a Revit 2025 English export. rvt-rs exports none of those as elements.
    • Architectural (doors, windows, stairs, curtain walls, furniture, lighting): 58,346 of 58,733 equal, counted the same way; the option adds 5,885 properties on 1,068 elements and 169 type objects. Revit writes 118,432 more.
      • 369 are in sets Revit names Other(Type), Identity Data(Type) and so on, on 13 of the 1,286 type objects with its sets: 5 of 8 curtain wall types, 7 generic model type objects and 1 wall type. revit-ifc decides the suffix when an element's sets are made, by whether the type's type object exists yet (ElementTypeToHandleCache.IsRegistered), and keeps those sets for the type object. Which types are hit follows from the order of Revit's export, which the file does not record, so rvt-rs writes the group's name. 66 of the 369 are this slice's; 303 are the Category, Family Name and Type Name written before.
      • 18 are the type Category of curtain panels of a basic wall type: Revit exports them as IfcPlates whose type says Walls, rvt-rs as curtain walls whose type took the panel's Curtain Panels. That value was written before this change.
      • The model showed 337 values left out, all now written and equal to Revit's: the groups Photometrics and Plumbing (the latter with 10 piping pressures), 42 currents, and 198 family type values. A family type is <family> : <type>, except the 34 whose family and type have the same name, written by the type's name (Muntin Pattern_2x2).
      • Of Revit's 118,432 more, 186 are parameters rvt-rs names: 66 written under the group's name as above, 117 Family Thumbnail (the name of the type's preview image, which rvt-rs does not name) and 3 family types rvt-rs does not name. The rest are built-ins.
    • Against the local exports' common sets. Revit's other exports at hand were made with the common property sets only. Where one also writes a property of the same name on the same element (by Tag, in any set), the values were compared:
    model (licence) properties added (per element, with its type object's) same name in Revit's export equal
    BIM4LCA office, as built (VTT, CC BY-SA 4.0) 24,366 498 498
    R2025 model 12 (puzzbobb, Apache-2.0, Sloped roofs need a Revit 2024/2025 pitched-roof oracle #356), RE1 Architecture, Core Interior, BIM4LCA housing on terrain 1,979 0 —
    • The 498 are the Yes/No FireExit of 266 doors and 232 windows: rvt-rs writes it in Identity Data and Revit's export in Pset_DoorCommon and Pset_WindowCommon, both as IfcBoolean. tests/revit_property_sets.rs asserts them, and fails, 498 of 498, when the sets are not attached.
    • Every value written is one of RE-207's, which equal Revit's wherever its exports show them (feat(elements): rvt-elements and Python list each element's saved parameters (#35) (RE-207) #887: 7,606 of 7,606 on the office as built).
    • What is written, over 15 models (R2025 12 to 17, the four RE1 models, Core Interior, the BIM4LCA housing and office ×2): 32,812 properties on 4,995 elements and 283 type objects. Of the named parameters left out, 9,920 are empty texts and 2,425 ElementIds of −1, which Revit leaves out too; 324 are in the IFC group; 408 are ElementIds rvt-rs cannot name; 62 are reals of other specs (electrical frequency, demand factor and luminous intensity, HVAC temperature, currency).
    • The RE1 MEP models' 56 flows, pressures, powers, voltages and currents have no Revit export with these sets. tests/revit_property_sets.rs checks that each unit is declared where its values are written and that every voltage is nominal (120, 208 or 240 V). With the units not declared it fails: "RE1-Electrical: 17 values of IFCPOWERMEASURE, no POWERUNIT declared".
    • IfcOpenShell 0.9.0's validator finds no issue in the exports of R2025 model 12, RE1 Architecture and the housing on terrain made with the option, nor in RE1 Mechanical's and RE1 Electrical's, which between them declare all five new units.
    • What is not measured: no Snowdon model has an element that rvt-rs exports whose type lacks a type object. The RE1 MEP models' currents and R2025 models 12 to 17's family type values are written as on Snowdon Architectural, but have no Revit export with these sets.
    • One rule was checked against a public Revit export with Revit's property sets: web-ifc's test file ISSUE_159_kleine_Wohnung_R22.ifc (German Revit 2022) names a type's sets on its elements ID-Daten(Type), Sonstige(Type), …, so the (Type) suffix is not translated.
  • If this touches the IFC exporter: the witness verdicts replay (see CONTRIBUTING.md) or the changed observations are refreshed in this PR

  • If this is a performance change: reran tools/bench.sh and attached the before / after

    • This is not a performance change, and without the option nothing is read. With it, reading the parameters costs time. tools/bench.sh times only family files, so rvt-ifc was timed with hyperfine (-N --warmup 1 --runs 3):
    model rvt-ifc (s) with --revit-property-sets (s) ratio
    Core Interior 6.785 ± 0.027 7.809 ± 0.015 1.15
    BIM4LCA office, as built 24.262 ± 0.027 34.036 ± 0.206 1.40

Audit-honesty checklist

  • README / docs reflect the current state after this PR — no claims of features that are not actually shipped in this PR
    • The README's summary, its reads table (a new "Revit's own property sets" row) and its parameters gap row are updated, as are docs/status.md, docs/supported-profile.md, docs/support-matrix.json (ifc-revit-property-sets, partial) and CHANGELOG.md.
    • Each gives the Snowdon HVAC measurement against Revit's own sets, counted per element, and says the file is measured locally and not committed; all but docs/supported-profile.md give Architectural's too. The report adds Site.
  • If a limitation was resolved, the "Known limitations" / "What works today" section in the relevant docs is updated
    • The README's parameters gap row now says --revit-property-sets writes the parameters to IFC, and what it does not write.
  • If a new limitation was introduced, it is documented in the PR body and in-code
    • With the option, rvt-ifc is 1.15 to 1.40 times slower on the models timed (report §8).
    • Not written: built-in parameters (no name, feat(parser): add native model attributes and geometry extraction #255), enumerations, other specs, ElementIds naming what rvt-rs cannot name, and (Type) names on type objects Revit exports. The sets keep rvt-rs's own GlobalIds, not Revit's hashed ones (report §7).
    • These are in src/ifc/revit_property_sets.rs' module doc and the report.
  • Commit messages describe WHAT changed and WHY, not "fix things" or "updates"
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
    • The test and probe take their paths from RVT_NORDIC_LCA_DIR or arguments.
    • The commits are authored and committed with GitHub's noreply address, and signed.
  • If this is a reverse-engineering finding: a reproducible probe under examples/ and a dated addendum to docs/rvt-moat-break-reconnaissance.md are included
    • The probe is examples/probe_re210_revit_property_sets.rs, and the report is reports/element-framing/RE-210-revit-property-sets.md.
    • The addendum is dated 2026-10-22.

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md)
    • The exporter's rules come from revit-ifc (LGPL), CLEANROOM.md source 5: read and cited by class and method, no code copied. The group labels are Revit's English UI labels.
  • Any new test fixtures use synthetic values (testuser, 111111, FY-20XX, etc.) and contain no real-world PII
    • There are no new fixtures. The test reads the BIM4LCA office (CC BY-SA 4.0, fetched by CI).

Breaking changes

BREAKING CHANGE: IfcModel gains a public field, type_property_sets. Code that builds an IfcModel with a struct literal needs type_property_sets: Default::default(), as five sites in this repository did. It deserialises as empty when absent.

PropertyValue gains five variants (VolumetricFlowRate, Pressure, Power, ElectricVoltage, ElectricCurrent); since #903 made it non_exhaustive, that is not breaking.

The option is new and off by default; without it the IFC output is unchanged.

Screenshots or output samples

R2025 model 12, rvt-ifc --revit-property-sets, window 12538 (Window-Fixed:24" x 36"), its Revit sets and its type object's:

window Other: Category=IfcLabel('Windows'), Family=..., Type Id=IfcLabel('12499'), Frame Extension=IfcLengthMeasure(0.00635)
window Construction: Window Inset=IfcLengthMeasure(0.0)
window Dimensions: Interior Wall Closure=IfcLengthMeasure(0.05715), Exterior Wall Closure=IfcLengthMeasure(0.03175)
window Graphics: Exterior Trim Visibility=IfcBoolean(True), Interior Trim Visibility=IfcBoolean(True)
type object IfcWindowType Window-Fixed:24" x 36"
type Other: Category=IfcLabel('Windows'), Family Name=IfcText('Window-Fixed'), Default Sill Height=IfcLengthMeasure(0.9144)
type Identity Data: Type Name=IfcText('24" x 36"'), Fire Rating=IfcText('0.5h')
type Graphics: Muntin Visibility=IfcBoolean(True)
type Construction: Muntin Pattern=IfcLabel('Muntin Pattern_2x2'), Exterior Trim=IfcLabel('Trim-Window-Exterior-Flat : with Sill'), Interior Trim=IfcLabel('Trim-Window-Interior-Flat : Picture Frame')
type Materials and Finishes: Interior Frame Material=IfcLabel('Wood - Stained'), Exterior Frame Material=IfcLabel('Clad - White'), Glass Panel Material=IfcLabel('Glass'), Exterior Trim Material=IfcLabel('Clad - White'), Interior Trim Material=IfcLabel('Wood - Stained')

rvt-ifc reports on stderr:

rvt-ifc: Revit property sets on 13 elements and 5 types, and type sets on 0 elements of types with no type object (87 properties, 0 named parameters left out)

Related issues

puzzbobb and others added 13 commits October 22, 2026 16:45
…ameters (DrunkOnJava#35) (RE-207)

An element's `parameters` held only AProperty* value carriers, empty for
every building element. On Revit 2023 to 2027 files they now also hold
the values the element's native record saves, read through
native_document::extract: its typed parameter sets (m_pParamValueSet*),
the family slots of its own FamilyParams that a definition resolves, and
the native fields read as built-in parameters. Each value is named by its
definition's m_caption (family, shared, project or global parameter);
built-in parameters keep their negative id and no name.

A family instance's type (m_masterSymbolId) adds the type parameters the
instance does not hold, marked "level": "type". A family parameter whose
definition is an instance parameter is taken from the instance only: the
type's slot holds the family's default. Lengths, areas, volumes and angles
also get their SI value, a Yes/No is a boolean, and a value naming a
material or family type gets that element's name.

A ParamDefFamType definition (a window's Muntin Pattern or trim) is now
read as an ElementId, the family type of its m_categoryId it names.

native_element_parameters::read and ElementParameters::json_entries give
rvt-elements and RevitFile.decoded_elements() the same list. A file whose
parameters cannot be read keeps its elements, with a warning. rvt-ifc
reads none of this; its output is unchanged.
DrunkOnJava#35) (RE-207)

For each element of Revit's own IFC4 export, every parameter rvt-rs reads
under a name `<set>.<property>` whose property Revit writes on the same
Tag must hold Revit's value (RE-194: Revit takes that parameter first).
Run on the BIM4LCA housing on terrain, which CI's test job fetches (27
values), and on the office as built where its export is present (7,086).
On R2025 model 12 the three windows' FireRating must be their type's
family parameter `Fire Rating`, reached through the type merge; with the
merge disabled the test fails, 0 of 3.

decode_step_string in tests/element_names.rs is shared for the office's
Finnish texts.
…ed parameters (DrunkOnJava#35)

probe_re207_element_parameters prints, per element class, the values read
by kind and level, and one line per element as rvt-elements lists them.
element_parameters_vs_ifc.py pairs either output with Revit's export by
Tag and counts, per parameter, the values equal to Revit's. Measured:
BIM4LCA office 7,606 of 7,606 as built and 7,592 of 7,592 at building
permit, housing on terrain 27 of 27, R2025 models 12 to 17 a window type's
Fire Rating 3 of 3 each. The report gives the record layout, the instance
and type rule, what is not read, and the cost.
…(RE-207)

README (summary, the reads table, the parameters gap), docs/status.md (a
dated RE-207 entry and the summary), the support matrix
(native-element-parameters, partial), CHANGELOG and a dated addendum in
docs/rvt-moat-break-reconnaissance.md.
# Conflicts:
#	python/rvt/__init__.pyi
#	rvt-py/src/lib.rs
#	src/lib.rs
…a stable elements::parameters::saved_parameters_lossy

DrunkOnJava#890 moved the research readers behind unstable-research, and CI builds
the library and its CLIs without the feature (cargo check --lib --bins),
so a CLI or rvt-py cannot call research::native_element_parameters. The
stable function wraps it and returns an opaque SavedParameters whose only
method gives an element's JSON entries, the shape the schema and the
Python stubs already describe; a file whose parameters cannot be read
gives none and a saved-parameters-unread warning, as before.
…ts beside their anyOf, so the schema check reads no new type (DrunkOnJava#35)
… sets (DrunkOnJava#35) (RE-210)

With "Export Revit property sets", Revit's exporter writes an element's
named parameters in one set per parameter group, named for the group, and
its type's in such sets on its type object, or on its elements with
"(Type)" added where it has none (revit-ifc Release_25.x.x:
ParameterUtil.CacheParametersForElement,
PropertyUtil.CreateInternalRevitPropertySets, CreateRealPropertyByType;
CLEANROOM.md source 5, read, not copied). The new opt-in
--revit-property-sets does the same with RE-207's named parameters:
instance ones into the element's sets, merged with the Other, Identity Data
and Phasing sets already written, the type's into
IfcModel::type_property_sets, which the writer adds to the type object's
HasPropertySets.

As Revit does, the IFC group is left out and a group keeps one parameter
per name with its spaces removed, the one of the lowest parameter id. A
Yes/No is a Boolean, an integer with a spec an integer, a non-empty text a
text, a length, pipe or duct size, area, volume, angle or number its
measure, a material its name, a family type "<family> : <type>" (the
type's name alone where both are the same). An air flow, HVAC or piping
pressure, apparent or electrical power, electrical potential and current
are written as the new PropertyValue kinds VolumetricFlowRate, Pressure,
Power, ElectricVoltage and ElectricCurrent, converted from Revit's
internal units to m3/s, Pa, W, V and A; the IfcUnitAssignment declares
each of those units when a value of it is written, in an element's or a
type object's set, as Revit's export does. Built-ins (no name),
enumerations and other specs are left out and counted. The group labels
are Revit's English labels for the 24 groups the measured models use.

The module's attach, Report and labels are stable API; property, which
takes research's ElementParameter, is public only with unstable-research.

Without the option the export is unchanged.

BREAKING CHANGE: IfcModel gains the public field type_property_sets, so
a struct literal of IfcModel must name it (or use ..Default::default()).
…DrunkOnJava#35) (RE-210)

tests/revit_property_sets.rs exports the BIM4LCA office as built with
Revit's own property sets and checks, on every door and window Revit
writes Pset_DoorCommon or Pset_WindowCommon.FireExit for, that rvt-rs
writes the Yes/No parameter FireExit in the set Identity Data as the same
Boolean: 498 of 498 (266 doors, 232 windows). Without the sets attached it
fails, 498 of 498. It reuses element_parameters' IFC value reader.

It also exports RE1 Electrical, Mechanical and Plumbing with the option
and checks that each of the flow, pressure, power, voltage and current
units is declared where values of it are written (56 values), and that every
voltage is a nominal one (120, 208 or 240 V). Without the units declared
it fails on RE1 Electrical's 17 powers.
…sets (DrunkOnJava#35)

examples/probe_re210_revit_property_sets.rs prints what the writer adds per
set name, on elements and type objects, and the named parameters left out
by reason; tools/re/revit_property_sets_vs_ifc.py scores an export made
with the option against Revit's export with "Export Revit property sets",
angles after each file's angle unit, numbers within rvt-rs's rounding to
six decimals, and the products of one Tag (a floor Revit splits into
slabs) together. The report gives the rules read in revit-ifc's release
branches, what is written on 15 models (32,812 properties), and the
measurement against Revit 2025's exports of Autodesk's Snowdon Towers HVAC,
Site and Architectural with Revit's own sets (measured locally, not
committed): 28,906 of 28,906, 718 of 718 and 58,346 of 58,733 properties
written, counted per element, are in the set of the same name with
Revit's value, and Revit writes 79,907, 948 and 118,432 more, nearly all
built-in parameters. The Site export confirms the "(Type)" suffix in a
Revit 2025 English export, on sites, storeys and openings. On
Architectural, Revit also gives 13 of the type objects it exports
"(Type)" sets, because it asks whether a type has a type object when an
element's sets are made (369 values); 18 are curtain panels' type
category, written before this change. FireExit on the
office is Revit's on 498 of 498 doors and windows.
README (summary, the reads table, the parameters gap), docs/status.md (a
dated RE-210 entry and the summary), docs/supported-profile.md, the support
matrix (ifc-revit-property-sets, partial), CHANGELOG and a dated addendum
in docs/rvt-moat-break-reconnaissance.md.
@puzzbobb
puzzbobb requested a review from DrunkOnJava as a code owner October 23, 2026 21:12
@DrunkOnJava

Copy link
Copy Markdown
Owner

Thank you, this is a thorough slice. Since it is stacked on #887, I'll review its four commits once #887 lands. #887 is armed, and I merged main into it today. After that I'll merge main into this branch, or you can if you get there first: it conflicts with main now, and the #887 commits drop out of the diff once #887 is in.

On numbering: RE-210 is yours. I had used it on an unpublished research branch (#824), which is now RE-214.

@DrunkOnJava

Copy link
Copy Markdown
Owner

A heads-up for this branch: changelog entries now go in fragments, changelog.d/<section>/<name>.md, instead of CHANGELOG.md (#938, PR #940), so that one landing no longer puts every other PR in conflict. #887, this branch's base, now has its entry at changelog.d/added/parameter-values.md. When I merge main into this branch after #887 lands, I will move this slice's entry into a fragment the same way, unless you get there first.

…changelog.d fragment (DrunkOnJava#938)

DrunkOnJava#887, this branch's base, landed squashed, so its commits here conflict with
main. This merge's tree is main plus this branch's own four commits
(0239d99, 3a461ae, 20b07a2, 45e9fea), replayed onto it, with the RE-210
status and reconnaissance entries placed before RE-215's.
@DrunkOnJava

Copy link
Copy Markdown
Owner

#887 has landed, so I merged main into this branch. #887 landed squashed, so its commits on this branch conflicted with main in six files. Instead of resolving those one by one, the merge commit's tree is main plus this branch's own four commits (0239d99f, 3a461ae9, 20b07a21, 45e9fea2) replayed onto it. Your commits are untouched, the push was a fast-forward, and the diff against main is now just this slice's 22 files. Two adjustments came with the merge: the RE-210 status and reconnaissance entries now come before RE-215's, and the changelog entry moved to changelog.d/added/revit-property-sets.md (#938).

Review: I read src/ifc/revit_property_sets.rs and found nothing to change.

  • The conversions from Revit's internal units are right: air flow ft³/s × 0.3048³, pressure kg/(ft·s²) ÷ 0.3048, power and voltage × 0.3048², current in amperes.
  • The grouping keeps the lowest parameter id per space-free name, as revit-ifc's cache does.
  • Merging into the sets rvt-rs already writes adds only the properties they lack.

The maintainer has decided that v0.7.0 is cut from what is queued now, so this slice, being a breaking change, goes in the release after it. I'll arm it once v0.7.0 is tagged, today if CI is green.

@DrunkOnJava DrunkOnJava mentioned this pull request Oct 24, 2026
10 of 12 tasks
DrunkOnJava added a commit that referenced this pull request Oct 24, 2026
## Summary

Prepares v0.7.0 (RELEASE.md steps 4 to 8): the version files, the
`[0.7.0]` changelog section assembled from `changelog.d/`, the README's
release section, and corrections to the status docs where they still
described the state before RE-212 or before the BIM4LCA office was
measured. Merging this is not the release; the signed tag on its squash
commit is.

## Motivation

Griffin's go-ahead (2026-10-24, about 3:00 PM): tag v0.7.0 once #887,
#930, #935, #940, #942 and #943 are on main with CI green. All six have
landed, the last at b04c0cb (#930). #934 (`--revit-property-sets`,
breaking) and #923 (the `ElementId` newtype, breaking) go in the next
release.

## Changes

- **Version files** (0.6.1 to 0.7.0): `Cargo.toml`, `rvt-py/Cargo.toml`
(and its `=0.7.0` pin on `rvt`), `rvt-wasm/Cargo.toml`, the `rvt` pin in
`tools/stream_evidence/Cargo.toml`, `viewer/package.json`,
`CITATION.cff` (`date-released: 2026-10-24`),
`.release-please-manifest.json`, and the workspace crates' entries in
`Cargo.lock` and `fuzz/Cargo.lock`.
- **`CHANGELOG.md`**: `python3 tools/release/changelog.py assemble`
moved the nine fragments in, then `[Unreleased]` became `[0.7.0] —
2026-10-24`, with an introduction, credits to puzzbobb (#870, #886,
#887, #935) and n3ur0m4n (#882), and "Upgrading from 0.6": the research
readers behind `unstable-research`, the `#[non_exhaustive]` types, the
error variants (and Python's `ValueError`), `SimpleDecoder`, the
property set builders' `Vec`, the removed `ifc::pset_validate`, the
element walk failing closed, and changed exports. Headings in the
assembler's order (Added, Changed, Fixed, Removed, Research), one each.
`[Unreleased]` is left empty.
- **Entries corrected for the release as a whole**: #847's pipe-port
entry said In ports' axes were wrong because their flow direction was
not read, and that other family-instance ports had no placement; RE-212
and #943 changed both, and it now gives main's counts (Measure
40126110706, base side: 124 of 124 and 62 of 62 with Revit's axis;
joined ports 108 and 53 as Revit's, 10 and 6 opposite). The
unjoined-ports entry says Revit 2025 in its headline. RE-215's entry
adds the office.
- **`README.md`**: "Release 0.7.0 and main", what 0.7.0 adds in brief.
The 0.6.1 section listed RE-215 under 0.6.0's additions; it shipped in
neither.
- **`docs/support-matrix.json`**:
- `native-symbol-cut-sizes`: the BIM4LCA office's result, and
`user_impact` limited to families whose symbol cuts an outline;
- `element-record-mep-connections`: still said HVAC and piping
directions, names and descriptions are not read and In ports' axes are
reversed; it now states RE-212 (direction, `InPort_`/`OutPort_` names,
`Flow` descriptions, axes), keeps SystemType and the electrical
description as unread, and lists RE-212's probe, scorer, test and report
as evidence.
- **`docs/status.md`** and
**`reports/element-framing/RE-215-symbol-cut-loops.md`**: the office,
which §6 called NOT MEASURED, as measured on 2026-10-24 (Measure
40121636312 and 40122363218): 187 of its 269 doors cut an outline and
have Revit's sizes; its 269 windows and other 82 doors are drawn by
symbols with no cut loop (#810).

## 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: this PR's CI. No code changes; the
version string changes the IFC header.
- [x] Verified end to end on real Revit files: no behaviour changes; the
measurements cited are the runs named above.
- [ ] If this touches the IFC exporter: the IFC header carries the
version (#417), so both Core Interior `rvt-rs.json` observations and
their verdicts are refreshed from this PR's CI run (its
`octetproof-core-interior` artifact) in a follow-up commit here,
differing only in `witness_version` and the verdict hashes.
- N/A: performance.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] The changelog section is assembled from the fragments;
`changelog.py check` passes with none left
- [x] Resolved limitations updated (RE-212's in the support matrix, the
office's NOT MEASURED)
- N/A: no new limitation
- [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
- N/A: not a reverse-engineering finding

## Legal and contribution hygiene

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

## Breaking changes

The release's, listed under "Upgrading from 0.6" in `CHANGELOG.md`. This
PR itself changes no API.

## Screenshots or output samples

N/A: the IFC changes only in its header's version.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 24, 2026 20:36
@DrunkOnJava

Copy link
Copy Markdown
Owner

v0.7.0 is out (release), so this is now armed to land on main. It merges cleanly with main, and its entry is already a changelog fragment. Being a breaking change (--revit-property-sets), it ships in the next minor release, 0.8.0. If an update-branch run turns anything red, I'll follow up here.

@DrunkOnJava
DrunkOnJava merged commit c38a5b0 into DrunkOnJava:main Oct 24, 2026
27 checks passed
@DrunkOnJava

Copy link
Copy Markdown
Owner

Landed on main as c38a5b0, and main's full CI is green on it. It ships in 0.8.0. Thank you. On #35 I've asked whether you could re-export the R2025 models with Revit's property sets on, so CI can measure this option against Revit.

DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
…already ships (#938) (#961)

## Summary

`changelog.d/added/revit-property-sets.md` (#934) repeated #887's RE-207
entry, which v0.7.0 already ships in its `Added` section, so 0.8.0's
`assemble` would have listed it twice. The repeated item is removed, and
`changelog.py check` now fails on any fragment item a released section
of `CHANGELOG.md` already has.

## Motivation

#934's entry moved from `CHANGELOG.md` into a fragment while #887 was
still unreleased, and the fragment took #887's item with it. Nothing
caught it: `check` only looked at a fragment's place and first line.

## Changes

- `changelog.d/added/revit-property-sets.md`: only #934's own item
(RE-210).
- `tools/release/changelog.py`: `check` compares each fragment item,
whitespace collapsed, with every item below `[Unreleased]` and names the
one already released.
- `changelog.d/README.md`: says so.

## Testing

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

- [x] `python3 tools/release/changelog.py check` on `main`'s fragments:
fails, naming `revit-property-sets.md` and the RE-207 item. With the
item removed: passes, 10 fragments.
- [x] `assemble` dry run on a copy of the tree: `[Unreleased]` takes 10
fragments, and `CHANGELOG.md` holds the RE-207 item once (in 0.7.0) and
the property-sets item once.
- [ ] CI's `changelog` step.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] No user-visible change, so no fragment
- [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.

## Screenshots or output samples

```
::error::changelog.d/added/revit-property-sets.md: already released: - **`rvt-elements` and Python's `decoded_elements()` list each element's saved parameters ...
```

## Related issues

Refs #938, #934, #887
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
… reported as one, and every PR checks the fuzz targets build (#965) (#967)

## Summary

The nightly fuzz run's "crash" (#965) was a build failure:
`fuzz_step_writer` builds an `IfcModel` field by field and lacked
`type_property_sets`, which #934 added. The target now fills every field
it does not set from `IfcModel::default()`. Each nightly target is built
in a step of its own, and a run in which nothing crashed but a target
failed to build opens a `fuzz-build` issue rather than a `fuzz-crash`
one. A new CI job, `fuzz targets build`, checks the fuzz workspace on
every PR and gates `CI passed`, so a change that breaks a target is
caught before it merges.

## Motivation

`fuzz/` is a workspace of its own that no CI job built, so a field added
to a type a target constructs broke the nightly run after merge, twice
(#236 → #259, #934 → #965). The report then called it a crash, a false
red.

## Changes

- `fuzz/fuzz_targets/fuzz_step_writer.rs`: `..IfcModel::default()`.
- `.github/workflows/fuzz.yml`: a `Build <target>` step before the run;
the report job counts the run's `crash-` artifacts (uploaded only when a
target's run step fails) and files `fuzz-crash` or `fuzz-build`
accordingly.
- `.github/workflows/ci.yml`: `fuzz-check` (`cargo +nightly-2026-10-01
check --manifest-path fuzz/Cargo.toml --bins`, the nightly toolchain the
fuzz and docs.rs jobs pin), in `CI passed`'s needs.

## 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, including the new `fuzz targets build`
job on this PR.
- [ ] Fuzz workflow dispatched on this branch for `fuzz_step_writer` (60
s): run
[40175530101](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40175530101),
in progress.
- [x] Both workflow files parse (YAML) and `actionlint` reports nothing
new; its one complaint, `uses: $/.github/actions/fetch-corpus`, predates
this change and those steps succeed on GitHub.
- [x] Witness: no export changes.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR (the
workflow headers say what they do)
- [x] No user-visible change, so no fragment
- [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.

## Screenshots or output samples

```
error[E0063]: missing field `type_property_sets` in initializer of `IfcModel`
   --> fuzz_targets/fuzz_step_writer.rs:368:17
```

## Related issues

Closes #965
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 25, 2026
12 tasks done
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
## Summary

Prepares v0.8.0 (RELEASE.md steps 4 to 8), on the maintainer's go-ahead
in chat (2026-10-25: "Cut 0.8.0 after #988"). Scope: `main` at 7483b2b
(#988), nothing after it.

## Changes

- Version 0.8.0 in `Cargo.toml`, `rvt-py/Cargo.toml` (and its `=0.8.0`
pin), `rvt-wasm/Cargo.toml`, `tools/stream_evidence/Cargo.toml`,
`viewer/package.json`, `CITATION.cff` (dated 2026-10-25),
`.release-please-manifest.json`, `Cargo.lock` and `fuzz/Cargo.lock`.
- `CHANGELOG.md`: the 25 fragments assembled (`changelog.py assemble`)
into `[0.8.0] — 2026-10-25`, with an introduction and "Upgrading from
0.7" (`ElementId`, `IfcModel::type_property_sets`, `RevitGlobalIds`'s
new fields); `[Unreleased]` empty above it.
- `README.md`: the release section names 0.8.0 (packed into the crate
and the wheel).
- `rvt-py/README.md` (the wheel's README): saved parameters reach IFC
with `--revit-property-sets`.
- The Core Interior witness observations and verdicts follow from this
pull request's CI run (the IFC header carries the version), in a second
commit.

## Testing

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

- [x] `tools/check-local.sh`: CI run 40223501543 green on e8e450d (`CI
passed`).
- [x] Witness files refreshed from run 40223501543's
`octetproof-core-interior` artifact (5c701eb): only `witness_version`
(0.7.0 to 0.8.0) and the two verdict hashes differ; the IfcOpenShell and
IFClite observations are unchanged.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] A user-visible change has its entry in `CHANGELOG.md` (the release
assembles the fragments)
- [x] Resolved limitation updated (support matrix, status): no change in
this PR
- [x] Limitation documented: no change
- [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

The release carries #923, #934 and #970's, listed under "Upgrading from
0.7".
@DrunkOnJava

Copy link
Copy Markdown
Owner

This shipped in v0.8.0 today: cargo install rvt --locked, pip install rvt, the release archives and the container image all carry rvt-ifc --revit-property-sets, and the release notes credit you for it and for the R2025 models that measured most of the release. Thank you.

@puzzbobb
puzzbobb deleted the issue35-slice2 branch October 27, 2026 18:03
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.

2 participants