Creates a Toposolid element from a host TopographySurface, and Toposolid sub-divisions from its subregions.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.3.0.0 (26.3.0.0)
Syntax
C#
public static Toposolid CreateFromTopographySurface( Document document, ElementId hostSurfaceId, ElementId topoTypeId, ElementId levelId )
Parameters
- document Document
- The document in which the new Toposolid is created.
- hostSurfaceId ElementId
- Id of the host TopogarphySurface element.
- topoTypeId ElementId
- Id of the Toposolid type to be used by the new Toposolid.
- levelId ElementId
- Id of the level on which the Toposolid is to be placed.
Return Value
ToposolidA new Toposolid object within the project if successful.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
