Repository navigation
Conversation
…names them, and a window type's Width and Height are read (DrunkOnJava#1962) (RE-507) A saved value whose parameter id is negative has no definition in the file, so it had no name (RE-207 §7), and a family type's built-in slots fill all four fields with nothing saying which holds the value. Both are now measured against Revit's IFC export with "Export Revit property sets": probe_re507_builtin_parameter_values prints each built-in value (and, with --slots, each slot field), and tools/re/builtin_parameter_labels.py pairs them by Tag and value with the export's properties, names an id only where one property is its clear, uncontradicted best match on two values or more, and prints the rows of src/research/builtin_parameter_names.rs. On puzzbobb's 19 Revit 2025 models and, local only, Snowdon Towers HVAC and Architectural, 49 ids are named, 29 with the slot field that holds them: a window type's Width and Height are m_value, Revit's value on 88 and 93 types and none contradicted. RE-207's reader names them, reads those slots, gives a length, area, volume or angle its SI value, and names an ElementId naming a level or phase. rvt-ifc --revit-property-sets writes them in the set and on the IFC classes Revit's export showed them in: properties equal to Revit's on Snowdon Architectural 59,204 -> 78,057, HVAC 49,925 -> 53,594, the R2025 models 2,502 -> 3,300. The default export is unchanged. The names come only from Revit's own exports of these files (CLEANROOM sources 1 and 5); no catalog from any other source was read.
|
@puzzbobb, thank you for this and the four after it. Named built-in parameters are what #1962 has been waiting for, and each name measured against Revit's own export is what makes them checkable. One fix before CI can pass: RE-507 is already on Next, ours: a read of the change and a full Measure run on its head, with what it shows posted here. |
|
@puzzbobb, what the measurements show so far, before the code read. All runs are on a merge of
What stands in the way so far, besides RE-512 and the merge of
Next, yours: the rename, the merge of |
Summary
Closes #1962. A built-in parameter (a negative id) has no definition in the file, so rvt-rs listed it by id with no name, and a family type's built-in slots (a window type's Width and Height) were not read because all four slot fields are filled. Both are now measured against Revit's own IFC export with "Export Revit property sets" (RE-507):
probes/examples/probe_re507_builtin_parameter_values.rsprints every built-in value rvt-rs reads, and with--slotsevery field of an unresolved built-in slot.tools/re/builtin_parameter_labels.pypairs them by Tag and value with Revit's export and names an id only where one property is its best match, contradicted on at most 5%, told apart from the runner-up, matched on two values or more (texts aside), named alike by every element class, and not shared value-for-value with another id. Its--rustoutput is the table insrc/research/builtin_parameter_names.rs, with each name's group, kind, slot field and the IFC classes Revit showed it on.49 ids are named on puzzbobb's 19 Revit 2025 models (CI-fetchable) and, local only, Snowdon Towers HVAC and Architectural; 20 match on the R2025 models, 29 on Snowdon alone (
local_onlyin the table). 29 carry the slot field holding them: Width and Height arem_value, Revit's value on 88 and 93 window types, none contradicted.What changes
rvt-ifc --revit-property-setswrites them in the set and on the IFC classes Revit's export showed them in.Measured
tools/re/revit_property_sets_vs_ifc.py, maina408cb34against this branch, locally (IfcOpenShell 0.9.0.post1):The R2025 differences (126 -> 210) are all Revit 2025's 1/304.8² lengths, which the scorer counts. The default export is unchanged (line for line apart from the timestamp on Core Interior, Snowdon HVAC and Architectural and three R2025 models). RE-507 §6 lists the remaining new mismatches and why. A Measure run with
-f r2025=trueshould confirm the R2025 figures on the runners.Clean-room
The changes in this PR are based on public byte observations of the files above and on Revit's own IFC exports of them (CLEANROOM.md sources 1 and 5, revit-ifc read for what the export writes and not copied). I have not used Autodesk SDK source, ODA SDK source, leaked internal documentation, NDA material, or decompiled internal Revit implementation code beyond public symbol exports, and I have not copied or translated code from revit-ifc. No catalog of built-in names from any other source was read: every name is one Revit's export wrote.
Checks
cargo fmt --check,cargo clippy -p rvt --lib --all-features -D warnings, clippy on the probe, rustdoc-D warningswith and withoutunstable-research,cargo +1.87 check,changelog.py check,api-doc-ids.py,readme-matrix.py --check,measured_numbers.py, and the corpus testselement_parametersandrevit_property_sets(6 passed) with the R2025 and BIM4LCA files.