← All projects
Revit · content library

Family Validation

Bulk checking and cleaning of Revit families against a company standard.

  • C#
  • Revit API 2023 to 2027
  • WPF
  • .NET Framework 4.8 / .NET 8 / .NET 10
  • no third-party libraries

Overview

Family Validation checks and cleans Revit families in bulk before they enter a company library or the Autodesk Content Catalog. A launcher runs Revit in the background, opens every family in a folder and checks it: the file name against the naming rules (correcting the category prefix where that is safe), imported CAD inside the family (removed, while linked CAD is kept), whether the name matches the category, required parameters, file size limits and, optionally, a classification code such as DIN 276 or Uniclass.

The original is copied aside before any other step, and the family is skipped if that copy fails. Cleaned copies are written to a separate folder, originals are never changed, and a dry run produces the full report without modifying any file.

The rules are maintained in a visual editor, so the owners of the standard can update them without writing code. Name patterns are assembled from blocks, and the editor does not save a rule set that the check would reject.

No third-party libraries: the tool uses only .NET and the Revit API, and is built separately for the .NET version shipped with each Revit release.

Features

  • Checks a whole folder of Revit families without the user opening Revit: a launcher runs a hidden Revit
  • File name against the naming convention, with a safe automatic fix of the category prefix
  • Removes imported CAD drawings, keeps linked CAD files, and can also check families nested inside others
  • Checks that each family's category matches its name
  • Required family parameters: present, of the right kind, and optionally filled in
  • File size warning and error limits
  • Optional classification code check against DIN 276, Uniclass or a custom pattern
  • Originals are copied aside before anything else; cleaned copies go to their own folder; originals are never changed
  • Dry run that writes the full report without changing a file
  • Excel report sorted by severity, with a log
  • Visual rules editor: name patterns from blocks, refuses rules that would fail, keeps backups, and imports rule sets from colleagues
  • Revit 2023 to 2027, German and English, no third-party libraries

Glossary

Revit
Autodesk's main software for designing buildings as BIM models. It is widely used by architects and engineers.
Family
A reusable Revit component, such as a door, a window, a chair or a light fitting.

Gallery

Screenshots and demonstrations