Hi Rudi!
http://thebuildingcoder.typepad.com/blog/2013/02/whats-new-in-the-revit-2012-api.html
FaceSplitter class
The FaceSplitter class, representing the element produced by a Split Face operation, has been exposed to the API.
Use this class to identify the element whose face was split by the element (SplitElementId property).
Autodesk.Revit.DB.Options opt
= app.Create.NewGeometryOptions();
opt.ComputeReferences = true;
opt.IncludeNonVisibleObjects = true;
FilteredElementCollector collector
= new FilteredElementCollector( doc );
ICollection<FaceSplitter> splitElements
= collector.OfClass( typeof( FaceSplitter ) )
.Cast<FaceSplitter>().ToList();
foreach( FaceSplitter faceSplitter in
splitElements )
{
Element splitElement = doc.get_Element(
faceSplitter.SplitElementId );
Autodesk.Revit.DB.GeometryElement geomElem
= faceSplitter.get_Geometry( opt );
foreach( GeometryObject geomObj in
geomElem.Objects )
{
Line line = geomObj as Line;
if( line != null )
{
XYZ end1 = line.get_EndPoint( 0 );
XYZ end2 = line.get_EndPoint( 1 );
double length = line.ApproximateLength;
}
}
}
To find the faces created by the split, use the new Face.GetFaceRegions() method on the face of the host element for the split.
Cheers,
Jeremy