Note: This API is now obsolete.
Creates a new Zone element.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
[ObsoleteAttribute("This method is deprecated in Revit 2026 and may be removed in a future version of Revit. Please use the GenericZone object instead.")] public Zone NewZone( Level level, Phase phase )
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 null.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when the specified parameter Value is null. |
| 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. |
