Namespace:
Autodesk.Revit.DB
DividedSurface
Class
Description:
An element that represents a mesh on the surface of another element, a family instance, an import instance or a geometry combination, and a tile pattern built on that mesh.
An element that represents a mesh on the surface of another element, a family instance, an import instance or a geometry combination, and a tile pattern built on that mesh.
Remarks:
The type of this element may be set to: a TilePattern element, a FamilySymbol element from a Curtain Panel family.
The type of this element may be set to: a TilePattern element, a FamilySymbol element from a Curtain Panel family.
Examples
public void TileSurface(Document document, Form form)
{
// cover surface with OctagonRotate tile pattern
TilePatterns tilePatterns = document.Settings.TilePatterns;
foreach (Reference r in DividedSurface.GetReferencesWithDividedSurfaces(form))
{
DividedSurface ds = DividedSurface.GetDividedSurfaceForReference(document, r);
ds.ChangeTypeId(tilePatterns.GetTilePattern(TilePatternsBuiltIn.OctagonRotate).Id);
}
}