Rename Rooms By Area

Rename rooms by area

2 min read

Sometimes, when working on projects, particularly multi-residential or retail projects, the planning layout emerges organically. Rooms and corridors are first created based on building-wide constraints such as geometric massing, location of cores, maximum depth of rooms, etc. The resulting areas are then calculated by placing Revit rooms. As the project evolves, these rooms are refined to satisfy the brief requirements. However, to do this, a comparison needs to be established between what is drawn and the brief. While it is possible to go through and manually rename every room to generate a schedule and facilitate this comparison, we can automate the procedure.

Rename Room By Area - BeforeRename Room By Area - After
Before vs after

Dynamo automation

The example below was developed for multi-residential projects where each apartment type has very clear minimum area requirements.

Rename Rooms By Area

The graph first collects rooms and extracts their area. In this particular case, the model’s area units and brief requirements are both set to square meters. However, if the area units don’t match, update the ‘Convert By Units’ node accordingly. A simple Python script is then used to establish the thresholds and their corresponding apartment type.

import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variable.
dataEnteringNode = IN[0]
studioArea = IN[1]
oneBedArea = IN[2]
twoBedArea = IN[3]
threeBedArea = IN[4]

#Assign your output to the OUT variable
OUT = 0

occupancy = []

for i in dataEnteringNode:
	if i < studioArea:
		occupancy.append("INVALID")
	elif i < oneBedArea:
		occupancy.append("STUDIO")
	elif i < twoBedArea:
		occupancy.append("1 BED")
	elif i < threeBedArea:
		occupancy.append("2 BED")
	elif i >= threeBedArea:
		occupancy.append("3 BED")
		
OUT = occupancy

Finally, the rooms are renamed based on the thresholds:

Apartment typeArea range
Studio35-50m2
1-Bed50-69m2
2-Bed70-99m2
3-Bed>100m2

7 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Renumber Viewports
Premium

Renumber viewports

Use Dynamo to automatically renumber the detail number parameter of viewports placed on sheets, streamlining documentation.

Axonometric Crop Region
Premium

Axonometric crop region

Learn how to use Dynamo to batch update the crop region of axonometric views with a consistent buffer offset.

Create multi-category schedules
Premium

Create multi-category schedules

Learn how to use Dynamo to automate the batch creation of multi-category schedules for use in a room data sheet.

Copyright​

© 2025 Parametric Monkey
Parametric Monkey and the Parametric Monkey logo are trademarks of Parametric Monkey Pty Ltd.

Discover more from Parametric Monkey

Subscribe now to keep reading and get access to the full archive.

Continue reading

Subscribe

Gain full access to tutorials and newsletter updates.

CONTACT US

Drop us a message and someone from our team will be in touch with you shortly.

BOOM!

Thank you for your interest. Someone from our team will be in touch soon.

WORKSHOP APPLICATION

To find out about upcoming public workshops or to organise a private workshop, please submit the following contact form and we’ll be in touch soon.