Extracting room information from the Architectural model for MEPF elements.

Extracting room information from the Architectural model for MEPF elements.

lbhardwaj4ZUA6
Participant Participant
451 Views
3 Replies
Message 1 of 4

Extracting room information from the Architectural model for MEPF elements.

lbhardwaj4ZUA6
Participant
Participant

Using the code below, I can correctly identify almost all the elements that are inside a room. However, there is one project in which I have encountered difficulties. I have observed that in that project, the linked architectural model uses phasing, whereas the model I was working on does not. However, I cannot say for certain if this is the only issue.

 

bool isInside = room.IsPointInRoom(location);

 

Regardless of any phasing, the 'IsPointInRoom' method should be able to accurately detect any element. I am unsure of the possible reason why it is not returning 'isInside' as true. The elements are within the room boundary, and the room bounding is also turned on.

0 Likes
Accepted solutions (1)
452 Views
3 Replies
Replies (3)
Message 2 of 4

caroline.gitonga
Autodesk
Autodesk

@lbhardwaj4ZUA6,

Am not sure if we can get much of your concern from the information you have provided. May you have a quick look on this blog resource my Jeremy: https://thebuildingcoder.typepad.com/blog/2022/08/instances-in-room-and-need-for-fuzz.html#2.1 for some leads on Rooms in linked models.

You may also kindly provide a minimum reproducible case that we can use to look further into the concern

Carol Gitonga, Developer Advocacy and Support, ADN Open
Message 3 of 4

lovebhardwaj01
Participant
Participant

@caroline.gitonga 
Thanks for the reply. Still I am not getting the correct value. Even if I create same phase in MEPF file and keep all the families in it, its still returning "false" value.

Any other suggestions?

0 Likes
Message 4 of 4

caroline.gitonga
Autodesk
Autodesk
Accepted solution

@lbhardwaj4ZUA6,

May you kindly confirm Revit performed phase mapping correctly aligning the linked model phases in the host project. Revit usually does this automatically but the automatic phasing may not always be correct. You may follow this guide to ensure you have the desired phase mapping: https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Wrong-display-of-p...https://help.autodesk.com/view/RVT/2023/ENU/?guid=GUID-97E3F329-B78A-4854-841D-CDE2EAA1FD73 .

You may also go through this resource About Phase-Specific Rooms and Boundaries to get more of understanding of how to work with phase-specific rooms.

 

Kindly, let us know if the information provided is helpful. You may have to provide a simple reproducible use case we can use to explore the issue.

Carol Gitonga, Developer Advocacy and Support, ADN Open
0 Likes