auto-number spaces and other items in schedules

auto-number spaces and other items in schedules

HVAC-Novice
Advisor Advisor
656 Views
4 Replies
Message 1 of 5

auto-number spaces and other items in schedules

HVAC-Novice
Advisor
Advisor

There seem to be some plugins that promise to do that, but I can't use plugins. i placed spaces and Revit just started numbering them 1, 2, 3... and so on. now I want them to be 100, 101. In excel I would use a +1 function or something. 

is there a way in Revit to have some auto-numbering or auto-increments? Like if I start with A, it will know the next is B. Or just with numbers would be good enough. 

 

I know it may be possible by going through Excel via txt file. But this is cumbersome and would take more time than changing manually. 

 

I just got the idea for space numbers, but if there is a solution, it could be used for other things. 

Revit Version: R2026.2
Hardware: i9 14900K, 64GB, Nvidia RTX 2000 Ada 16GB
Add-ins: ElumTools; Ripple-HVAC; ElectroBIM; Qbitec
657 Views
4 Replies
Replies (4)
Message 2 of 5

d.ahmed.LW
Advocate
Advocate

If you have already numbered and would like to change, you could try solving this with Dynamo. 

0 Likes
Message 3 of 5

Lachlan-JWP
Collaborator
Collaborator

Revit will auto-increment in the way you want, you have to tell it where you would like to start.

 

Place the first instance which will have the wrong number (eg. 01), change the number to be what you want (eg. 101), the next instance that you place will auto-increment from your previous input (eg. 102), and so on.

Message 4 of 5

ToanDN
Consultant
Consultant

@HVAC-Novice wrote:

There seem to be some plugins that promise to do that, but I can't use plugins. 


Why can't you?

 

By the way, here is a Python code generated by ChatGPT for you to create a Dynamo script:

 

# Import the necessary libraries
import clr
clr.AddReference("RevitAPI")
clr.AddReference("RevitAPIUI")
from Autodesk.Revit.DB import *

# Get the current document and its room elements
doc = __revit__.ActiveUIDocument.Document
rooms = FilteredElementCollector(doc).OfClass(Room).ToElements()

# Start a transaction
t = Transaction(doc, "Renumber Rooms")
t.Start()

# Loop through each room and change its number
for room in rooms:
number = room.Number
room.Number = str(int(number) + 100)

# End the transaction
t.Commit()

Message 5 of 5

HVAC-Novice
Advisor
Advisor

I know when I place them I normally start out with the number I want to start out with and it works automatically. but this only works when a) I place them in the order I want, and b) I don't forget to do that. My problem (or question) is about how to do that easily after the fact or if I change my mind later. 

 

A plugin won't work since our IT won't install software unless the vendor fills out a 12-page document for our attorneys. I'm not kidding or exaggerating. And they physically prevent us from installing any un-approved software. Most free or cheap software isn't possible since those providers don't make that effort. For small free programs (like manufacturer equipment selection programs) I often install them at home on my private PC and use it when I work from home. But that won't work with Revit plugins.  

 

At some point I may look more into this problem and Dynamo. I mean if it becomes amore frequent problem.  but sometimes I also add a letter to the room number (like if a meeting room has an adjacent storage room). So automating doesn't always work. Thanks for posting that code, ToanDN.

 

 

 

 

Revit Version: R2026.2
Hardware: i9 14900K, 64GB, Nvidia RTX 2000 Ada 16GB
Add-ins: ElumTools; Ripple-HVAC; ElectroBIM; Qbitec
0 Likes