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

# RAParticleCollection

### *class* RAParticleCollection

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

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

```python theme={null}
particle_collection = study.GetParticleCollection()
```

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

```python theme={null}
particle_1 = particle_collection.New()
particle_2 = particle_collection[1]
del particle_collection[0]
for particle in particle_collection:
    particle.SetMaterial('My Particle Material')
```

Items in this list are of type [`RAParticle`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/2025-r2/RAParticle#generated.RAParticle).

**Methods:**

| Name | Description |
| - | - |
| [`Clear`](#generated.RAParticleCollection.Clear)() | Remove all items from the list. |
| [`GetParticle`](#generated.RAParticleCollection.GetParticle)(particle\_name) | Get a particle given its name. |
| [`GetParticleNames`](#generated.RAParticleCollection.GetParticleNames)() | Get a list of the names of all the particles in this collection. |
| [`New`](#generated.RAParticleCollection.New)() | Add a new item. |
| [`Remove`](#generated.RAParticleCollection.Remove)(item) | Remove an item from the list. |

#### Clear()

Remove all items from the list.

#### GetParticle(particle\_name: str)

Get a particle given its name.

#### GetParticleNames()

Get a list of the names of all the particles in this collection.

* **Return type:**
  list

#### New()

Add a new item. Returns the newly created item.

#### Remove(item: T)

Remove an item from the list.
