Revit 2024 API |
Toposolid..::..CreateFromTopographySurface Method |
Toposolid Class See Also |
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: 24.0.0.0 (24.0.0.0)
Since:
2024
Syntax
C# |
---|
public static Toposolid CreateFromTopographySurface( Document document, ElementId hostSurfaceId, ElementId topoTypeId, ElementId levelId ) |
Visual Basic |
---|
Public Shared Function CreateFromTopographySurface ( _ document As Document, _ hostSurfaceId As ElementId, _ topoTypeId As ElementId, _ levelId As ElementId _ ) As Toposolid |
Visual C++ |
---|
public: static Toposolid^ CreateFromTopographySurface( Document^ document, ElementId^ hostSurfaceId, ElementId^ topoTypeId, ElementId^ levelId ) |
Parameters
- document
- Type: Autodesk.Revit.DB..::..Document
The document in which the new toposolid is created.
- hostSurfaceId
- Type: Autodesk.Revit.DB..::..ElementId
Id of the host TopogarphySurface element.
- topoTypeId
- Type: Autodesk.Revit.DB..::..ElementId
Id of the toposolid type to be used by the new toposolid.
- levelId
- Type: Autodesk.Revit.DB..::..ElementId
Id of the level on which the toposolid is to be placed.
Return Value
A new toposolid object within the project if successful.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |