Message 1 of 3
Find inserts retrieve hosted elements from another host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi community,
I've this room
And it can be seen that the window is hosted to the left wall:
Now I'm trying to get paint areas of the wall that bound a room which includes to substract area of the openning.
What happens is that the FindInsert method for the right wall is retrieving the left window opening somehow
This is the final geometry I get when I loop through this wall before throwing the exception:
IList<ElementId> wallInserts = wall.FindInserts(false, false, false, false);
DirectShape ds5 = DirectShape.CreateElement(doc, new ElementId(BuiltInCategory.OST_GenericModel));
ds5.SetShape(new List<GeometryObject> { overallOpeningSolid as GeometryObject });
DirectShape ds6 = DirectShape.CreateElement(doc, new ElementId(BuiltInCategory.OST_GenericModel));
ds6.SetShape(new List<GeometryObject> { wallFaceExtrus as GeometryObject });
tr.Commit();
return Result.Succeeded;
Any insights on this matter?
Thanks in advance