Revit 2026 API
WallCreate(Document, Curve, Element |
Creates a new rectangular profile wall within the project using the default wall style.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static Wall Create( Document document, Curve curve, ElementId levelId, bool structural )
Public Shared Function Create ( document As Document, curve As Curve, levelId As ElementId, structural As Boolean ) As Wall
public: static Wall^ Create( Document^ document, Curve^ curve, ElementId^ levelId, bool structural )
static member Create : document : Document * curve : Curve * levelId : ElementId * structural : bool -> Wall
Parameters
- document Document
- The document in which the new wall is created.
- curve Curve
- A curve representing the base line of the wall.
- levelId ElementId
- Id of the level on which the wall is to be placed.
- structural Boolean
- If set, specifies that the wall is structural in nature.
Return Value
WallIf successful a new wall object within the project.

Exception | Condition |
---|---|
ArgumentException | The curve argument is not valid for wall creation. |
ArgumentNullException | A non-optional argument was null |
ModificationForbiddenException | The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process. |
ModificationOutsideTransactionException | The document has no open transaction. |
See Also