Check if point lies outside the building boundary

Check if point lies outside the building boundary

suraj_kumarGJH8R
Explorer Explorer
287 Views
2 Replies
Message 1 of 3

Check if point lies outside the building boundary

suraj_kumarGJH8R
Explorer
Explorer

Hi, I am trying to create a solution using Revit API to check if any point in the document lies outside or inside of the building boundary(Formed by the outermost walls). To achieve this I went through the link. https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-all-the-outermost-walls-in-the-model/td-... 

 

I created the room and then checked if the point lies inside the room or not. It is working if the walls are in the host model. But in my case, the walls are coming from the Architecture link file, tried a few workarounds but had no luck. 

I'm struggling to find a solution to this problem and would appreciate any help. @jeremytammik @mikako.harada  

 

 

0 Likes
288 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni

Well, apparently, then, you are missing a transformation between the main project and the linked file. If you are determining the boundary in the project based on the outermost walls in the architectural file, it might help to implement a debugging visualisation helper. For instance, how about first generating model lines in the project file that visualise the outermost boundary that you have calculated? That might clarify what you are doing and maybe what is going wrong in the calculation.

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 3

suraj_kumarGJH8R
Explorer
Explorer

Hi Jeremy,

I have applied the transform on the min and max point of the walls bounding box still no luck, what I feel is to create a room you need to have those boundary walls in the same model itself. (I may be wrong here).

For now, I have copied the target wall in the host model and did all the things then deleted the walls for a temporary fix. Will keep looking for a concrete solution to this issue.

0 Likes