I used the splitface tool in revit and created a spliface object on a wall.
I'm trying to use C# so that if I click on the splitface then it's material will change. I looked at some examples
Element splitelem = document.GetElement(wall.SplitElementId);
Autodesk.Revit.DB.Options opt = new Options();
Autodesk.Revit.DB.GeometryElement geomElem = wall.get_Geometry(opt);
int faceval = 0;
ElementId m = new ElementId(11534);
foreach (GeometryObject geomObj in geomElem)
{
// change the material using doc.paint();
}
but this isn't working.