As it is probably well known for everybody using Revit that rooms removed from model are still kept within the file as “not placed”. In order to delete them completely we have to create a schedule that would filter them for us. It is not a very tedious process, however still can be simplified by using Dynamo :)
This is what such a schedule might look like. We can see that for not placed rooms the values of area and level parameters are not set. This is something that can be used for their identification. But we should also notice that not enclosed rooms have no area specified as well. We do not want to delete those. Therefore we are going to use room’s location.
Our Dynamo definition might look like this:
The algorithm is rather simple:
-we collect all the model elements that are rooms
-for each room we read it’s location parameter and check whether it is null (not specified)
-then we filter our room list based on the result of the above
-finally we can remove filtered rooms
It should be said that out of the box Dynamo does not provide a node that would delete our rooms. Fortunately we can use a simple python script for that: