Door Number - Match Room Number (with suffix)

Hey all,

I’ve searched the forum and found a few Dynamo scripts that seems to fit this need, however several it seems I am missing/can’t find a package to complete the script.

I want to renumber my door numbers, based on the room number and when there are multiple doors in a room, they should be "A, B, C, etc). All rooms with just one door shall have the “A” suffix as well.

I have tried to “reverse engineer” some scripts, but it all just seems confusing to me. I appreciate your patience and any help you can provide.

Get doors.
Get ‘Room: to’ of the doors, GroupByKey.
Then get lists of alphabetical characters to match to length of the groups.
Put it all together along with any coding requirements (e.g. starts with a “D”, has dots or dashes between the room number and the A/B/C, etc).
Set parameter.

1 Like

OK, so I have a script that is almost there for what I need it to do. My only issue is Exterior doors that open to the outside of a building (where there is no room) does not number properly. How do I get those doors to use the “FromRoom” info?
Attached is my script for reference.

You will need to filter those doors missing the From info and use a value like “EXT”

1 Like