GetInstanceCutoutFromWall for curtain walls inserted into walls

GetInstanceCutoutFromWall for curtain walls inserted into walls

Anonymous
Not applicable
431 Views
2 Replies
Message 1 of 3

GetInstanceCutoutFromWall for curtain walls inserted into walls

Anonymous
Not applicable

Is there an alternative Autodesk.Revit.DB.IFC.ExporterIFCUtils.GetInstanceCutoutFromWall that can compute the edges of any wall insert, not just family instances hosted on a wall? Inserted curtain walls, for example. 

0 Likes
432 Views
2 Replies
Replies (2)
Message 2 of 3

FAIR59
Advisor
Advisor

I don't think there is a ready made alternative. But it's easy to implement it yourself.

 

If you have the list of all the faces of the wall, you can use this code-snippet to find the faces that are generated as a result of the insert:

 

Wall wall;
Element insert;
List<Face> FacesOfWall;
List<Face> FacesMadeByInsert = new List<Face>();
foreach (Face f in FacesOfWall)
{
   	if (wall.GetGeneratingElementIds(f).Contains(insert.Id)) FacesMadeByInsert.Add(f);
}

From those faces you can find the Edges.

 

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks for the response. This might be what I am looking for. I'll need to address what happens when the curtain wall extends outside the wall, since it won't form a closed loop.

0 Likes