Document.NewFoundationSlab
Description:
Creates a foundation slab within the project with the given horizontal profile and floor style on the specified level.
Creates a foundation slab 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.
[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 NewFoundationSlab(
CurveArray profile,
FloorType floorType,
Level level,
bool structural,
XYZ normal
)
-
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.
-
normalA 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 foundation slab 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.