Document.NewFloor
Description:
Creates a floor within the project with the given horizontal profile and floor style on the specified level.
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.
The curves of the profile must be contiguous and the Face formed by profile should be suitable to create floor.
Overloads (3):
NewFloor(CurveArray,FloorType,Level,Boolean)
[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
)
-
profileAn array of planar lines and arcs that represent the horizontal profile of the floor.
-
floorTypeA floor type to be used by the new floor instead of the default type.
-
levelThe level on which the floor is to be placed.
-
BooleanstructuralIf set, specifies that the floor is structural in nature.
Return Value
nullNothingnullptr
if successful, a new floor object within the project, otherwise null Nothing nullptr a null reference ( Nothing in Visual Basic) .
-
Thrown if the floor type does not exist in the given document.
-
Thrown if the level does not exist in the given document.