Automating Stud Count and Editing Commands in Revit Using AI with BIMLOGIQ Copilot

Written by

BIMLOGIQ

Published

Jan 13, 2025

In this video, we demonstrate how to automate a repetitive calculation and then save and edit the command to make it reusable and customizable using AI with BIMLOGIQ Copilot.

Manually calculating and assigning stud counts for structural beams can be time-consuming and error-prone—especially in large projects with variable beam lengths. Traditionally, users must measure each beam’s cut length and apply formulas manually.

With BIMLOGIQ Copilot’s AI, this process is automated. The user began with the following prompt:

Prompt 1:
For each structural beam, calculate the number of studs using the formula:
Number of Studs = floor(("Cut Length" - 100) / 400) + 1,

then write the result into the "Number of Studs" parameter.

The AI automatically calculates stud counts and updates the parameter across all structural beams in the model. To refine the process, the user extended the command using:

Prompt 2:
Now edit the command to make the 400 mm spacing a variable, add a variable for selecting structural framing elements, and define a variable to filter structural framing elements by their type.

This enhancement allows full control over spacing, targeted beam selection, and filtering by beam type—turning a single-use task into a flexible, reusable workflow.