Retrieving neighbour rooms.

Retrieving neighbour rooms.

juanquis_avila
Contributor Contributor
630 Views
1 Reply
Message 1 of 2

Retrieving neighbour rooms.

juanquis_avila
Contributor
Contributor

Hi Devs!

 

I've got some issue with this subject. I tried using the GetRoomNeighbourAt() Method shown at this site https://thebuildingcoder.typepad.com/blog/2013/09/room-neighbours.html

This method works pretty well but in some cases (different projects/files) I'm not getting resutls. For example, in my last project the method only retrieve neighbour rooms located at the second level and no results in other level. I have figured out that the issue is with the GetRoomAtPoint() method and it seems like right exactly when the algorithm retrieve the point next to the segment, it is not located withing the neighbour room boundaries. For the first level, the z axis value is 0 and i changed it to 1 and then it worked perfectly fine but it is not the same for all projects/files.

 

thanks for your attention,

 

Juan Camilo Avila.

0 Likes
631 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Dear Juan Camilo,

 

Thank you for your query.

 

I took a look at the code and see no obvious problem that might explain the behaviour you observe.

 

Have you debugged the code in action yourself to see what might be causing the problem?

 

How about you putting together a complete minimal reproducible case illustrating your problem, including your sample code and a minimal sample model, preferably with just a handful of rooms, some that are correctly processed and some not, with detailed instructions how to observe the problem and how to observe the correctly working process.

 

Then, maybe someone will be able to take a closer look at it.

 

Good luck and best regards,

 

Jeremy

 



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

0 Likes