Document.NewRooms2(Phase, Int32)
Method
Description:
Creates new unplaced rooms in the given phase.
Creates new unplaced rooms in the given phase.
Parameters
| Parameter | Type | Description |
|---|---|---|
| phase | Phase | The phase on which the rooms are to exist. |
| count | Int32 | The number of the rooms to be created. |
Return Value
| Type | Description |
|---|---|
| ICollection | If successful, a set of ElementIds which contains the rooms should be returned, otherwise the exception will be thrown. |
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | If the room can not be created successfully or regeneration fails at the end of the creation. |
| ArgumentException | Thrown if the phase does not exist in the given document. |