NewFloor Method (CurveArray, FloorType, Level, Boolean)

Creates a floor within the project with the given horizontal profile and floor style on the specified level.

Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: (


public Floor NewFloor(
	CurveArray profile,
	FloorType floorType,
	Level level,
	bool structural
Visual Basic
Public Function NewFloor ( _
	profile As CurveArray, _
	floorType As FloorType, _
	level As Level, _
	structural As Boolean _
) As Floor
Visual C++
Floor^ NewFloor(
	CurveArray^ profile, 
	FloorType^ floorType, 
	Level^ level, 
	bool structural


Type: Autodesk.Revit.DB CurveArray
An array of planar lines and arcs that represent the horizontal profile of the floor.
Type: Autodesk.Revit.DB FloorType
A floor type to be used by the new floor instead of the default type.
Type: Autodesk.Revit.DB Level
The level on which the floor is to be placed.
Type: System Boolean
If set, specifies that the floor is structural in nature.

Return Value

if successful, a new floor object within the project, otherwise a null reference ( Nothing in Visual Basic) .


The curves of the profile must be contiguous and the Face formed by profile should be suitable to create floor.


Exception Condition
Autodesk.Revit.Exceptions ArgumentException Thrown if the floor type does not exist in the given document.
Autodesk.Revit.Exceptions ArgumentException Thrown if the level does not exist in the given document.

See Also