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

Document.NewSpace(Level, UV)

Method
Description:
Creates a new space element on the given level at the given location.
Syntax
public Space NewSpace(
	Level level,
	UV point
)
Parameters
Parameter Type Description
level Level The level on which the space is to exist.
point UV A 2D point that dictates the location on that specified level.
Return Value
Type Description
Space If successful the new space element is returned, otherwise .
Exceptions
Exception Condition
ArgumentNullException Thrown when level or point is.
InvalidOperationException Thrown when the space cannot be created.
ArgumentException Thrown if the level does not exist in the given document.