Automatic Room Recognition and Colour Fill

Hi, I’m after some help/advice if possible.

I’m in search of a plugin or code that has the capability to identify separate rooms within a model and apply a distinct colour to all the internal faces of each room. Our workflow involves drawing from a plan and extruding the entire structure collectively, so none of the rooms are pre-grouped.

The goal is to automatically differentiate each room by colour-coding them, which would help in subsequent stages of our analysis. If anyone is aware of a plugin that can handle this task, or any tips on how to achieve this efficiently, your insights would be incredibly helpful.

Thank you in advance!

You might want to check out the Trimble/SketchUp Early Engagement program.

Why don’t you apply a tag for each type and select color by tag?

1 Like

Are you saying that this is in upcoming feature that Trimble are planning to incorporate?

I’m not sure what you mean? I am looking for a method to identify the rooms with an algorithm

I see no relation/connection. Perhaps we can say both (the question and the Early Engagement ) are indefinable. :wink:

Tag each room with a different tag and select this icon
Captura de pantalla 2024-03-19 a las 20.12.43

I tested and is far from being a feature in a few versions…

Sorry, how can I tag a room if they are not grouped?

Sorry, are you saying my query is not clear, or that it is not possible?

Well it’s not a secret, what 3DxJFD talks about is this

you can apply to the early access, but don’t hold your breath :wink:

Sorry to be vague… I’m just saying that Trimble/SketchUp likes to have user feedback and it sounds like you have some good ideas. @ateliernab has pointed the way.

In my opinion you’d have to use custom attributes and somehow assign them to the entities you want to identify as separate rooms. I don’t understand not wanting to use groups (or components). Maybe you could do it by using face heights (e.g., > 8ft) to define/sort what a room is. You’d probably have to have other variables, like how many walls make up a room (do they face each other?) or something that is specific to your workflow. Maybe your workflow needs to be changed or examined to understand what you’re doing/want to do, step by step.

Sorry - I really forget what the NDAs are. On a related note, I see comments on the Forum that Trimble/SketchUp aren’t doing anything new and don’t listen to users. On the contrary, they are doing all sorts of cool things and are interested in feedback.

I honestly do not understand fully what you want. The task is not defined properly.
Also, James post was mysterious. (Still it is… .;-))

1 Like

It seems like tagging walls would take just as much time as painting them manually.


You shared a very simple model. Is this representative, or would actual ones be more complicated? For example, the model contains only loose edges and faces. The faces are all either horizontal or vertical. There are no nearby parallel faces, as would happen for example if there were floors, ceilings, walls, structural members, etc. with thickness.

Is there any significance to the chosen colors, or are they just to let you distinguish one room from another? I don’t understand the end goal of the coloring.

The answers would be highly relevant to the difficulty of doing what you seek automatically. For example, I could imagine finding all the horizontal faces and then following their edges up adjacent vertical faces to find the walls, and finally finding the top face that uses the top edges of those walls. But that all breaks if the modeling of floors or walls is more complicated, because then you can’t tell a room apart from a wall or ceiling cavity.

If it’s not grouped it’s not a room. There are edges and faces…

I get your point, though one could also argue that a room is a space bounded by floor, walls, and ceiling.

Hi Steve

See example, where I have coloured the different rooms.

The idea of applying a different colour to each room allows me to export the envelope of each room, and allows me to technically seperate them into zones for an energy model system I am working on. I need to be able to distinguish between the floors, walls and ceilings for each zone (or room). This is a similar idea to using energyplus, but instead using a UK simulation engine.
This is about as detailed as the model gets.

Looking at that model, I need to rethink the approach I was pondering. There are issues such as the fact that the ground floor walls cut the first floor floor into multiple pieces per room because there is no thickness and no grouping to isolate them.

edit: After pondering the sample model more, I think that trying to automate this process for something built like that in SketchUp would be an almost endless exercise in chasing special cases. Alas, unless you can change your workflow to make each room a separate group while drawing them (e.g. make a group from a room’s floor plan before push-pulling it to height), I don’t see any way to do this that won’t leave me pulling out the little remaining hair that I have left. Sorry.