Naming Rooms per Shafts/Elevators/Stairs intersecting them

Hi there,

Pretty new to scripting so I’m still trying to conceptualize this one.

I would like to attempt to look for all room elements that have elevators, stairs, and shafts inside of them (or intersect with them) and give them the Room Name “ELEV”, “STAIR”, and “SHAFT” - respectively. It would probably need to be an intersection method given that these types of elements are hosted at lower floors and travel upwards through multiple floors.

If it were simply furniture in the rooms per floor I would know how to do this. How would I go about starting this kind of script?

Lastly, if the rooms are in my model and the elements are in a linked file - is this still possible?

Best regards,
Matt

  1. Get both geometies using Element.Geometry
  2. Use DoesIntersect and find containg elements.
  3. Get categories of the elements using GetCategory
  4. Convert them as string using ToString (category is object, not string)
  5. Apply them to room names using Room.SetName.

Above is also possible using linked model.

2 Likes

Thank you Hyunu I’m going to try this. Will report back to this thread.