RVTDocs.com
Namespace: Autodesk.Revit.Creation Class: Document

NewFloor

Method
Description:
Creates a floor within the project with the given horizontal profile and floor style on the specified level.
Remarks:
The curves of the profile must be contiguous and the Face formed by profile should be suitable to create floor.
Syntax
[ObsoleteAttribute("This method is deprecated in Revit 2022 and may be removed in the future version of Revit. To create new instance of Floor, call Floor.Create().")]
public Floor NewFloor(
	CurveArray profile,
	FloorType floorType,
	Level level,
	bool structural
)
Parameters
Parameter Type Description
profile Autodesk.Revit.DB.CurveArray An array of planar lines and arcs that represent the horizontal profile of the floor.
floorType Autodesk.Revit.DB.FloorType A floor type to be used by the new floor instead of the default type.
level Autodesk.Revit.DB.Level The level on which the floor is to be placed.
structural System.Boolean If set, specifies that the floor is structural in nature.
Return Value
Type Description
Autodesk.Revit.Exceptions.ArgumentException if successful, a new floor object within the project, otherwise nullNothingnullptr a null reference (Nothingin Visual Basic) .
Exceptions
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.