> ## 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.

# RARegionsOfInterestCollection

### *class* RARegionsOfInterestCollection

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

This wrapper corresponds to the “Regions Of Interest” item in the project’s data tree. To
retrieve the [`RARegionsOfInterestCollection`](#generated.RARegionsOfInterestCollection) from a [`RAStudy`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/2025-r1/RAStudy#generated.RAStudy), use:

> roi\_collection = study.GetRegionsOfInterestCollection()

Instances of the [`RARegionsOfInterestCollection`](#generated.RARegionsOfInterestCollection) class act as regular Python lists, and
can be iterated on, accessed via index, etc:

**Methods:**

| Name | Description |
| - | - |
| [`AddCube`](#generated.RARegionsOfInterestCollection.AddCube)(\[name]) | Add a new Cube. |
| [`AddCylinder`](#generated.RARegionsOfInterestCollection.AddCylinder)(\[name]) | Add a new Cylinder. |
| [`Clear`](#generated.RARegionsOfInterestCollection.Clear)() | Remove all items from the list. |
| [`New`](#generated.RARegionsOfInterestCollection.New)() | Add a new item. |
| [`Remove`](#generated.RARegionsOfInterestCollection.Remove)(item) | Remove an item from the list. |

#### AddCube(name: str | None = None)

Add a new Cube. Returns the newly created item.

#### AddCylinder(name: str | None = None)

Add a new Cylinder. Returns the newly created item.

#### Clear()

Remove all items from the list.

#### New()

Add a new item. Returns the newly created item.

#### Remove(item: T)

Remove an item from the list.
