|
Full Tutorial
The full step‑by‑step guide — including folder setup, deployment, and Power BI visuals: https://www.reope.com/bimagination/a-very-simple-data-logging-setup-for-revit-with-pyrevit Why? Understanding how teams actually use Revit tools is one of the most valuable — and most overlooked — parts of BIM management. Whether you’re tracking adoption, identifying training needs, or justifying investment in add‑ins, usage data builds a narrative that model audits alone can’t. Revit doesn’t expose this information directly, but PyRevit does. Specifically: the journal-command-exec.py hook, which fires every time a Revit command is executed. With a tiny amount of Python, you can capture:
Why BIM Managers Should Care This kind of logging helps you answer questions that normally require guesswork:
It’s a small automation with big organisational impact. The Core PyRevit Hook PyRevit exposes a special script location: pyrevit_hooks/journal-command-exec.py Any code placed here runs every time a Revit command executes. Here’s the minimal version of the logging logic: from pyrevit import EXEC_PARAMS from datetime import datetime import os user = os.environ.get("USERNAME") doc = __revit__.ActiveUIDocument.Document cmd = EXEC_PARAMS.event_args.CommandId logline = f"{user} | {doc.Title} | {cmd} | {datetime.now()}" From here, you can append logline to a text file, CSV, or network location. That’s it — you now have Revit telemetry. Where This Helps Most 1. Add‑in ROI Tracking If you’re deploying tools across multiple teams, usage data helps justify renewals and identify which tools deliver value. 2. Training & Support Usage patterns reveal:
3. Workflow Compliance If your organisation relies on:
…you can verify whether they’re actually being used. 4. Model Health Dashboards Combine this with:
A Simple Output Pipeline Most teams do this:
0 Comments
Leave a Reply. |
AuthorMark is a BIM Expert and qualified UK Architect. He currently works with Reope building digital solutions for built environment. Archives
July 2026
Categories |
RSS Feed