Revit 2026 API
DocumentNew |
Creates a set of new unplaced spaces on a given phase.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public ICollection<ElementId> NewSpaces2( Phase phase, int count )
Public Function NewSpaces2 ( phase As Phase, count As Integer ) As ICollection(Of ElementId)
public: ICollection<ElementId^>^ NewSpaces2( Phase^ phase, int count )
member NewSpaces2 : phase : Phase * count : int -> ICollection<ElementId>
Parameters
- phase Phase
- The phase in which the spaces are to exist.
- count Int32
Return Value
ICollectionElementIdIf successful, a set of ElementIds of new unplaced spaces are be returned, otherwise .
| Exception | Condition |
|---|---|
| ArgumentException | Thrown if the phase does not exist in the given document. |
See Also