Document.NewZone
Method
Description:
Creates a new Zone element.
Creates a new Zone element.
Parameters
Parameter | Type | Description |
---|---|---|
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
Type | Description |
---|---|
Zone | If successful a new Zone element within the project, otherwise . |
Exceptions
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. |