RVTDocs.com
Namespace: Autodesk.Revit.DB Class: WallFoundation

WallFoundation.Create

Method
Description:
Creates a new wall foundation within the project.
Syntax
public static WallFoundation Create(
	Document document,
	ElementId typeId,
	ElementId wallId
)
Parameters
Parameter Type Description
document Document The document.
typeId ElementId The id of the wall foundation type of the newly created wall foundation.
wallId ElementId The id of the host wall of the newly created wall foundation.
Return Value
Type Description
WallFoundation If successful, returns the newly created wall foundation, otherwise.
Exceptions
Exception Condition
ArgumentException typeId is not a valid WallFoundationType id. -or- wallId does not refer to a valid wall.
ArgumentNullException A non-optional argument was null