Message 1 of 3
Why Edge door in wall is null?

Not applicable
04-13-2018
03:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to get the edges of the door in the wall, in some cases I get 4 edges in some nothing at all.
I attach a model and a picture on which I designated a room, from whose doors I can not find the edges.
Two model files must be linked.
method produces null
List<Edge> FindEdges = wallOfDoor
.get_Geometry(new Options { ComputeReferences = true })
.OfType<Solid>()
.SelectMany(x => x.Edges.OfType<Edge>())
.Where(x => IsDoorEdge(x, door))
.Where(IsVerticalEdge)
.Where(x => IsWallExteriorFaceEdge(x, wallOfDoor.Orientation)).ToList();