> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RAGeometryCollection

### *class* RAGeometryCollection

Rocky PrePost Scripting wrapper for the collection of geometries in a project.

The class represents the “Geometries” item on the project data tree. To get the [`RAGeometryCollection`](#generated.RAGeometryCollection)
from a [`RAStudy`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAStudy#generated.RAStudy), use:

```python theme={null}
geometry_collection = study.GetGeometryCollection()
```

This class contains methods to iterate and retrieve the geometries in a given project, manipulating
the collection as a regular Python list, e.g.:

```python theme={null}
for geometry in geometry_collection:
    print(geometry.GetName())

feed_conveyor = geometry_collection[1]
inlet = geometry_collection.GetGeometry('Inlet <01>')
```

To create the different kind of geometries (conveyors, inlets and custom geometries), see
[`RAStudy`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAStudy#generated.RAStudy).

**Methods:**

| Name | Description |
| - | - |
| [`Clear`](#generated.RAGeometryCollection.Clear)() | Remove all items from the list. |
| [`GetBoundingBox`](#generated.RAGeometryCollection.GetBoundingBox)(time\_step\[, force\_load, ...]) | Get the bounding box containing all geometries in this collection, at the given time. |
| [`GetGeometry`](#generated.RAGeometryCollection.GetGeometry)(geometry\_name) | Get a geometry from its name. |
| [`GetGeometryNames`](#generated.RAGeometryCollection.GetGeometryNames)() | Get the names of the geometries in this collection. |
| [`IterInletGeometries`](#generated.RAGeometryCollection.IterInletGeometries)() | Iterate over the inlet geometries. |
| [`IterSurfaces`](#generated.RAGeometryCollection.IterSurfaces)() | Iterate over the surface geometries. |
| [`IterSystemCouplingWalls`](#generated.RAGeometryCollection.IterSystemCouplingWalls)() | Iterate over the System Coupling walls geometries. |
| [`IterWalls`](#generated.RAGeometryCollection.IterWalls)() | Iterate over the walls geometries. |
| [`New`](#generated.RAGeometryCollection.New)() | Add a new item. |
| [`Remove`](#generated.RAGeometryCollection.Remove)(item) | Remove an item from the list. |
| [`RemoveGeometry`](#generated.RAGeometryCollection.RemoveGeometry)(geometry) | Remove the given geometry from the project. |

#### Clear()

Remove all items from the list.

#### GetBoundingBox(time\_step: ITimeStep | None, force\_load: bool = False, force\_orthogonal: bool = True)

Get the bounding box containing all geometries in this collection, at the given time.

* **Parameters:**
  * **time\_step** – The time step for which the bounding box should be computed.
  * **force\_load** – If True, the bounding box will be computed by loading the geometries from the project.
    If False, the bounding box will only be returned if it was already computed.
  * **force\_orthogonal** – If True, the bounding box will be computed in an orthogonal coordinate system.
    If False, the bounding box will be computed in the original coordinate system of the geometries.
* **Returns:**
  The bounding box of all the geometries in the passed time step, or None if the box
  could not be computed.

#### GetGeometry(geometry\_name)

Get a geometry from its name.

* **Parameters:**
  **geometry\_name** (*unicode*)

#### GetGeometryNames()

Get the names of the geometries in this collection.

#### IterInletGeometries()

Iterate over the inlet geometries.

#### IterSurfaces()

Iterate over the surface geometries.

#### IterSystemCouplingWalls()

Iterate over the System Coupling walls geometries.

#### IterWalls()

Iterate over the walls geometries.

#### New()

Add a new item. Returns the newly created item.

#### Remove(item: T)

Remove an item from the list.

#### RemoveGeometry(geometry: RABaseGeometry | str | None)

Remove the given geometry from the project.
