Revit 2026 API
DocumentNew |
Creates a new unplaced space on a given phase.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public Space NewSpace( Phase phase )
Public Function NewSpace ( phase As Phase ) As Space
public: Space^ NewSpace( Phase^ phase )
member NewSpace : phase : Phase -> Space
Parameters
- phase Phase
- The phase in which the space is to exist.
Return Value
SpaceIf successful the new space should be returned, otherwise .
| Exception | Condition |
|---|---|
| ArgumentException | Thrown if the phase does not exist in the given document. |
See Also