Ensuite Rooms

I would like to develop a script that will recognize and renumber a room if it is an ensuite to a main room. The project requires a pattern to the room number, which is why I approached the problem with ‘Ideate Renumber’ (a feature provided with the plugin to customize the room naming). So far I’ve achieved a sequence that follows the rules:

  • Prefix of the Building Acronym, / , Level Number, / , 000
  • Apply numbering system if the Name of the room does not contain ‘Ensuite’

This works great for numbering the main rooms. Now my issue is the Ensuite rooms must share the same room number as their parent room with the suffix A. Some main rooms do not have ensuites, which means there might be a room number AA/01/005A, AA/01/007A, and no AA/01/006A. Hopefully this is clear, and happy to answer questions.

How to get help on the Dynamo forums - FAQ - Dynamo

Please take a moment to refresh yourself on requesting help. We need to see what you’ve done so far and specifically where you’re running into issues (along with what solutions you’ve tried). How do you expect to define an ensuite to a main room? We can’t help you with your graph logic if you don’t explain your relational logic.