- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi facing issue with window if it is inside room.
tried 3 ways
1.Passes bounding box filter to room but all windows inside model getting.Means filter not applying properly.
2.tried by getting walls using boundry segment in room through loop.And then get associate element of wall.But only one window is identified.Although room has three window.Please find image. here window 2 &3 is not identified by API.The wall is getting identified of 2 &3 window but when use asssociate element api window not present in that.
IEnumerable<Element> associate = new FilteredElementCollector(revitDocument).OfClass(typeof(FamilyInstance)).Where(m => (m as FamilyInstance).Host == null ? false : (m as FamilyInstance).Host.Id == eleTem.Id);
here eleTem.Id is wall ID.
3.tried by "ispointinsideroom" by giving location point of window.but window is not getting identified.
Is their any other way should try?
waiting for reply.
thank you.
Solved! Go to Solution.
Developer Advocacy and Support +