Message 1 of 5
A beam (Structural Framing) with no Faces ?
Not applicable
07-13-2016
02:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi !
Working on intersections between structural elements and ducts, I encounter an unexpected problem: A family of beam (homemade I guess) which has no Faces. I compare settings of the family with other homemade beams but found no differences...
My method to extract Faces of elements :
public List<Face> FindElementFace(Element Elem)
{
List<Face> normalFaces = new List<Face>();
Options opt = new Options();
opt.ComputeReferences = true;
opt.DetailLevel = ViewDetailLevel.Fine;
GeometryElement e = Elem.get_Geometry(opt);
foreach (GeometryObject obj in e)
{
Solid solid = obj as Solid;
if (solid != null && solid.Faces.Size > 0)
{
foreach (Face face in solid.Faces)
{
PlanarFace pf = face as PlanarFace;
if (pf != null)
{
normalFaces.Add(pf);
}
}
}
}
return normalFaces;
}Thank you Mustafa.Salaheldin for the method !
And my Family is Attached!
I think the original project (where i took the family) was on Revit 2015 (automatically update to 2016) and i'm working with Revit 2016.
Any hints are welcome!
Thanks
