    

 ## On this page

  

 

 # RAParticleAssemblyPartList

 Last update: 17.07.2025 

<a id="generated.RAParticleAssemblyPartList"></a>

### *class* RAParticleAssemblyPartList

Rocky PrePost Scripting wrapper for the parts list in a single Particle Assembly.

To get the [`RAParticleAssemblyPartList`](#generated.RAParticleAssemblyPartList) from a `RAParticleAssembly`, use:

```python
assembly_parts = particle_assembly.GetAssemblyParts()

```

[`RAParticleAssemblyPartList`](#generated.RAParticleAssemblyPartList) contains methods to add, remove and retrieve individual assembly parts. It corresponds to the list of entries on a Particle Assembly’s “Shape” tab on the Rocky UI.

The following examples add, remove and access individual entries in the assembly parts list:

```python
# Add new items
assembly_part_1 = assembly_parts.New()

# Access and modify items
assembly_part_2 = assembly_parts[0]
assembly_part_2.SetParticle('Particle 1')

# Remove items
assembly_parts.Remove(assembly_part_2)
del assembly_parts[0]
assembly_parts.Clear()

```

The [`RAParticleAssemblyPartList`](#generated.RAParticleAssemblyPartList) is a list of [`RAParticleAssemblyPart`](RAParticleAssemblyPart.md#generated.RAParticleAssemblyPart).

**Methods:**

NameDescription[`Clear`](#generated.RAParticleAssemblyPartList.Clear)()Remove all items from the list.[`New`](#generated.RAParticleAssemblyPartList.New)()Add a new item.[`Remove`](#generated.RAParticleAssemblyPartList.Remove)(item)Remove an item from the list.<a id="generated.RAParticleAssemblyPartList.Clear"></a>

#### Clear()

Remove all items from the list.

<a id="generated.RAParticleAssemblyPartList.New"></a>

#### New()

Add a new item. Returns the newly created item.

<a id="generated.RAParticleAssemblyPartList.Remove"></a>

#### Remove(item: T)

Remove an item from the list.