Message 1 of 5
Wrong face number of solid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can you tell me why this beam have 12 face instead of 14?
I want to recognize the prismatic beams like this and this beam caused problem:
Snippet
public static bool IsPrismatic(FamilySymbol symbol) { var o = new Options(); o.DetailLevel = ViewDetailLevel.Fine; var geometry = symbol.get_Geometry(o); var solids = geometry.Where(x => x is Solid).Select(x => x as Solid).ToList(); var faces = solids[0].Faces; if (faces.IsEmpty) { faces = solids[1].Faces; } var firstFace = faces.get_Item(0); var revitContours = firstFace.EdgeLoops.ToList().Sum(x => x.Size); return revitContours == faces.Size - 2; }