Finding the Room for a certain location

Finding the Room for a certain location

uwewoessner
Participant Participant
1,519 Views
1 Reply
Message 1 of 2

Finding the Room for a certain location

uwewoessner
Participant
Participant

Hello Everyone,

I have given a Location in X,Y,Z and want to find out the room where this point is located.

Does anyone have a hint on how I would approach this?

 

I could loop over all rooms, get their boundary segments and then find out whether my point is inside or outside.

 

Is there a quicker way to do it?

 

Regards,

 Uwe

0 Likes
Accepted solutions (1)
1,520 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Uwe,

 

There definitely is a faster method: the Document.GetRoomAtPoint method.

 

Cheers, Jeremy.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder