Repository navigation
feat(reader): read a family's types and type parameters from its PartAtom type table - #1102
Merged
Merged
Conversation
…Atom type table PartAtom's <A:family> lists one <A:part> per type, with the type's name and one element per type parameter (displayName, system or custom, typeOfParameter, units, and the value as Revit printed it). rvt-rs kept it only as raw XML. PartAtom::family_types parses it, and rvt-info shows it (family_types in --json, the type names and counts in text).
DrunkOnJava
force-pushed
the
feat/partatom-family-types
branch
from
October 29, 2026 20:56
6ccc347 to
07824e0
Compare
Owner
Author
|
Measure run 40952641810 (
These are the counts the 2026-10-29 family sweep read from the same files by hand. On the 2024 family the three types are |
DrunkOnJava
marked this pull request as ready for review
October 29, 2026 20:56
DrunkOnJava
enabled auto-merge (squash)
October 29, 2026 20:56
Merged
14 of 15 tasks
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
A family's
PartAtomstream holds Revit's own table of the family's types:<A:family>with one<A:part>per type, its<title>the type's name and one element per type parameter (displayName,typesystem or custom,typeOfParameter,units, and the value as Revit printed it). rvt-rs parsed the Atom header and kept the rest asraw_xmlonly.PartAtom::family_types()now reads the table, andrvt-infoshows it:family_typesin--json, the type names and parameter counts in text.Toward W3 of
docs/release-1.0-criteria.md(a family yields its types and parameters), from the 2026-10-29 family sweep (L7): every Autodesk sample family 2016 to 2027 and the Stertil 2014 family (112 types × 31 parameters) carry the table. It is Revit's text at save, so it is the second witness any binary type-record reader can be checked against in the same file; it is not a measurement of geometry.Changes
src/part_atom.rs:FamilyType,TypeParameter(both#[non_exhaustive]),PartAtom::family_types().PartAtomitself is unchanged, so this is not a breaking change.src/bin/rvt_info.rs: thefamily_typeskey (omitted when empty) and the text lines.docs/schemas/summary.schema.json:family_types.Testing
Unit tests are banned in this repository: do not add them.
-f families=true,rvt-info --redact --jsonon every family of the corpus and the makers' public families): type and parameter counts per family against the counts L7 read from the same files. Results in a comment.tests/json_schema_contracts.rsvalidatesrvt-info --jsonon the 2024 family against the schema in CI.No export changes.