WallFoundation Class


An object that represents a wall foundation element.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.1090.0)
Since: 2016

Syntax

C#
public class WallFoundation : HostObject
Visual Basic
Public Class WallFoundation _
	Inherits HostObject
Visual C++
public ref class WallFoundation : public HostObject

Examples

Copy C#
public void GetInfo_WallFoundation(WallFoundation wallFoundation)
{
    string message = "Wall Foundation : ";

    // Get Analytical model
    if (null != wallFoundation.GetAnalyticalModel())
    {
       message += "\nAnalytical model : " + wallFoundation.GetAnalyticalModel();
    }

    // Get Footing type name
    Document doc = wallFoundation.Document;
    message += "\nFoundation type name is : " + doc.GetElement(wallFoundation.GetTypeId()).Name;

    TaskDialog.Show("Revit",message);
}
Copy VB.NET
Public Sub GetInfo_WallFoundation(wallFoundation As WallFoundation)
   Dim message As String = "Wall Foundation : "

   ' Get Analytical model
   If wallFoundation.GetAnalyticalModel() IsNot Nothing Then
      message += vbLf & "Analytical model : " & wallFoundation.GetAnalyticalModel().ToString()
   End If

   ' Get Footing type name
   Dim doc As Document = wallFoundation.Document
   message += vbLf & "Foundation type name is : " & Convert.ToString(doc.GetElement(wallFoundation.GetTypeId()).Name)

   TaskDialog.Show("Revit", message)
End Sub

Inheritance Hierarchy

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →