AI assistsWorkflow guide · not independently tested

How do I renumber Revit viewport detail numbers by their position on the sheet?

A Dynamo graph or pyRevit script reads viewport positions on each sheet, groups them into rows and columns, and assigns detail numbers in your grid convention without the 'Detail Number is already in use' error.

Role
BIM Coordinator
Discipline
BIM
Tools
Dynamo, pyRevit
Updated

Tool links listed below; vendor features and pricing change, so confirm with the vendor.

Short answer

Use Claude or ChatGPT writing pyRevit: The AI writes the renumbering script from your numbering convention. A Dynamo graph or pyRevit script reads viewport positions on each sheet, groups them into rows and columns, and assigns detail numbers in your grid convention without the 'Detail Number is already in use' error. A person still checks: run on a copy; check callouts and references after.

AI tie-in

Tool: Claude or ChatGPT writing pyRevit

The AI writes the renumbering script from your numbering convention.

Prompt 1

Write a pyRevit script that renumbers viewports on the selected sheets by position: group into rows by Y center with a [tolerance] tolerance, sort left to right, use a temporary prefix to avoid duplicate detail numbers, then apply [convention]. Include a dry-run mode.

Human check: Run on a copy; check callouts and references after.

The problem

Renumber Revit viewport detail numbers by their position on the sheet. This is a common, time-consuming task for a bim coordinator.

What this workflow does

A Dynamo graph or pyRevit script reads viewport positions on each sheet, groups them into rows and columns, and assigns detail numbers in your grid convention without the 'Detail Number is already in use' error.

How it works: AI drafts or analyzes. A person operates the tools, checks the work, and takes action.

Your checkpoint: Run on a detached copy first. Check sheet references and callouts after renumbering.

Before you start

  • Access to the named tool; confirm license, version and cost with the vendor.
  • A small, non-confidential sample to try the workflow on first.
  • A qualified person to review the output before it is used.

Tools and access

Follow the steps

  1. Define your numbering convention (for example A1 bottom right, by grid cell).
  2. Collect viewports on the selected sheets and read their box center points.
  3. Group by Y within a tolerance into rows, then sort by X.
  4. Temporarily rename all detail numbers to a unique prefix to avoid conflicts.
  5. Assign final numbers from the sorted order.
  6. Test on a copy of the model and check callouts and references update.

Try a small example

Replace the bracketed fields with your own project details. No tested sample run is published for this workflow yet.

Sample input

Fill in the bracketed [fields] in the text below with your project data.

Starter prompt

Write a pyRevit script that renumbers viewports on the selected sheets by position: group into rows by Y center with a [tolerance] tolerance, sort left to right, use a temporary prefix to avoid duplicate detail numbers, then apply [convention].

Expected output

Not published yet. Treat any output as a draft and check it against the source documents.

Check the result

  • Every value, citation or quantity traces back to a source document.
  • Missing information is marked as missing, not filled in.

Limits and recovery

  • Run on a detached copy first. Check sheet references and callouts after renumbering.
  • Check your organization’s data policy before sharing project files with third-party tools.

Stop or switch when: The source cannot be verified, permissions are missing, or the result contains unsupported facts.

Frequently asked questions

How does AI help with this?

Claude or ChatGPT writing pyRevit: The AI writes the renumbering script from your numbering convention. A person still checks: Run on a copy; check callouts and references after.

How do I how do I renumber Revit viewport detail numbers by their position on the sheet??

Define your numbering convention (for example A1 bottom right, by grid cell). Collect viewports on the selected sheets and read their box center points. Group by Y within a tolerance into rows, then sort by X. The full step list is above.

Does this use an AI agent or regular software?

It is labeled AI assists: AI drafts or analyzes. A person operates the tools, checks the work, and takes action.

What tools do I need?

Dynamo, pyRevit. Confirm license, version and cost with the vendor, and try it on a small non-confidential sample first.

Has this workflow been tested?

Workflow guide · not independently tested. It is written from vendor documentation and practitioner use.

Evidence and maintenance

Written from vendor documentation and practitioner use. Labels apply to the steps described here, not every feature of a product. Links were checked when the page was written.

How each workflow is labeled

Agent executes
An AI agent calls connected tools to carry out bounded actions. You set permissions and review the result.
AI assists
AI drafts or analyzes. A person operates the tools, checks the work, and takes action.
Conventional automation
Rules or specialist software perform the task. No AI agent is required.