Revit 2025 API
DocumentNew |
Creates a new Zone element.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public Zone NewZone( Level level, Phase phase )
Public Function NewZone ( level As Level, phase As Phase ) As Zone
public: Zone^ NewZone( Level^ level, Phase^ phase )
member NewZone : level : Level * phase : Phase -> Zone
Parameters
- level Level
- The level on which the Zone is to exist.
- phase Phase
- The associative phase on which the Zone is to exist.
Return Value
ZoneIf successful a new Zone element within the project, otherwise .

Exception | Condition |
---|---|
ArgumentNullException | Thrown when the specified parameter Value is . |
InvalidOperationException | Thrown when the electrical system cannot be created by these input phase and level. |
ArgumentException | Thrown if the level does not exist in the given document. |
ArgumentException | Thrown if the phase does not exist in the given document. |
See Also