Codification Numbering Room automatic from left to right

Hi Guys, I need to develop a script to number rooms from left to right in each level of a building. It is a very tedious task to do by hand, and I wanted to automate it.
The numbers work in this way:

  1. Restart in each level (1…10) - with an special parameter of course that allows to repeat the numbers.
  2. from left to right by building

I was thinking to take the building boundary + the center of the rooms, select the points and re organic them from left to right as the next scheme.

What have you tried so far? If you’re thinking of sorting by coordinates of the room center, then give that a try and see where you get. You can also look at the example file for numbering based on a spline curve. There are a number of options here and they’re all pretty well documented on the forums already. Look for some similar topics and start trying some options. I’m guessing you’ll be able to get a pretty good start once you jump into it. If you have any trouble, you can post the details here and we can help out.

2 Likes