Skip to content

feat(reader): read a family's types and type parameters from its PartAtom type table - #1102

Merged
DrunkOnJava merged 5 commits into
mainfrom
feat/partatom-family-types
Oct 29, 2026
Merged

DrunkOnJava merged 5 commits into
mainfrom
feat/partatom-family-types

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

A family's PartAtom stream 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, type system or custom, typeOfParameter, units, and the value as Revit printed it). rvt-rs parsed the Atom header and kept the rest as raw_xml only. PartAtom::family_types() now reads the table, and rvt-info shows it: family_types in --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(). PartAtom itself is unchanged, so this is not a breaking change.
  • src/bin/rvt_info.rs: the family_types key (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.

  • Measure run 40952271466 (-f families=true, rvt-info --redact --json on 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.rs validates rvt-info --json on the 2024 family against the schema in CI.

No export changes.

…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
DrunkOnJava force-pushed the feat/partatom-family-types branch from 6ccc347 to 07824e0 Compare October 29, 2026 20:56
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Measure run 40952641810 (-f families=true, rvt-info --redact --json on each family): family_types on all 12 families measured.

Family Types Type parameters each
rac_basic_sample_family 2016 to 2019 3 5
racbasicsamplefamily 2020 to 2026 3 6 (Default_Elevation added)
Stertil closed pit dock leveller (2014, maker's public family) 112 31

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 0610 x 0160mm, 0762 x 0762mm and 0610 x 0915mm, each with Default_Elevation (system, Length, mm), Base_Material and Top_Material (custom, Material), and Height, Length, Width (custom, Length, mm). Stertil's parameters are shared, which the doc comment now names. The 2027 family joins the corpus with #1092.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review October 29, 2026 20:56
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 29, 2026 20:56
@DrunkOnJava
DrunkOnJava merged commit 3ab1695 into main Oct 29, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/partatom-family-types branch October 29, 2026 21:49
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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