M

Document.NewFloor

Description:
Creates a floor within the project with the given horizontal profile and floor style on the specified level with the specified normal vector.
Remarks:
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,XYZ)
[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,
	XYZ normal
)
  • profile
    An array of planar lines and arcs that represent the horizontal profile of the floor.
  • floorType
    A floor type to be used by the new floor instead of the default type.
  • level
    The level on which the floor is to be placed.
  • Boolean
    structural
    If set, specifies that the floor is structural in nature.
  • normal
    A vector that must be perpendicular to the profile which dictates which side of the floor is considered to be upper and down.
Return Value nullNothingnullptr if successful, a new floor object within the project, otherwise null Nothing nullptr a null reference ( Nothing in Visual Basic) .