BIM Corner case study tests a Codex-built Revit annotation tool

Share

BIM Corner published a guest article on November 4, 2026 in which independent building designer Andrey Kechin describes building a personal Revit tool with the AI coding agent Codex. The tool places height annotations on facades from his own drawing rules, and the article reports six test runs: three met their criteria and three were only partial.

What’s new

The tool was tested in Revit 2025.1 with pyRevit 6.5.3, on a non-workshared copy of a light timber-frame house model. It uses the project elevation of a named first-floor finished-floor level as its zero reference and refuses to run if that level is missing. Window and door heights are read from the actual opening outline in the host wall rather than the family bounding box, and roof heights come from the upper faces of standard planar roofs.

  • An unchanged rerun produced the same seven values with no duplicates.
  • Raising the roof by 300 mm updated the labels correctly on rerun.
  • A window made 200 mm taller was measured correctly, but no label was placed because facade cladding blocked the visibility check.
  • Manually moved symbols were reset to the calculated layout on rerun.

The annotations are built from text notes and detail lines, not native Spot Elevations, so they only update when the command is run again.

Why it matters

The article is a useful, measured example of what AI coding agents can produce for a single Revit user: a working pyRevit command that encodes personal standards, with honest documentation of where it falls short. It does not claim time savings or reliability figures.

BIM managers should note the risks the author flags himself. Reading the generated code, he found cleanup rules that could delete standard Spot Elevations, including hand-placed ones, and the tool’s run also touched other views and removed a 3D viewport from a title sheet. Linked models and active view crops were not covered by the tests. Anyone trying a similar approach should test on copies, review the generated code, and limit what a script is allowed to change.

Source

Read the original article: BIM Corner

Table of contents [hide]

Read more

Local News