Share

Document.NewSpace(Level, UV) Method

Creates a new space element on the given level at the given location.


Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

public Space NewSpace(
	Level level,
	UV point
)

Parameters

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

Space
If successful the new space element is returned, otherwise nullptr.

Exceptions

ExceptionCondition
ArgumentNullException Thrown when level or point is nullptr.
InvalidOperationException Thrown when the space cannot be created.
ArgumentExceptionThrown if the level does not exist in the given document.

See Also

Reference

Was this information helpful?