I’m trying to write a routine that places consecutive numbers in a parameter where the order is based on X Y location.
For example number rooms on a level with lowest number at bottom left with increasing values up towards top right.
Archi-lab have a blog post where there is some python script to do just that (http://archi-lab.net/room-numbering-with-dynamo/) but it is based on old Dynamo version and seems to rely on a tool kit. Needless to say it doesn’t work.
But I’m sure it doesn’t have to be that complicated. I’m actually acting on Generic Model families. If I could get the insert point XY values for each I could sort them. I found a node to get a Bounding Box from which I presume I could extract an X Y value to use.
Is this the best approach?