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

# Managing complex asset assemblies in Idalia

> Hang drives and parts on a winch, swap a worn motor, and book the whole unit onto a job.

## Introduction

As an example, we'll use a **luff winch** with three **luff drives**. Each drive has a **gearbox**, a **motor**, and a **brake**. We also keep a spare of each part so we can swap a worn unit without rebuilding the tree.

Each step has an Idalia AI prompt and the same work in the app. Use either path. The records are the same.

## Set up the example

Go to [Asset types](https://idalia.app/asset-types) and add the plant below.

To use Idalia AI, paste the following message:

```text wrap theme={null}
Create asset types for the following: luff winch, luff drive, luff gearbox, luff motor, and luff brake.

Then create the assets, all Ready:
- one winch, Luff Winch 01
- four drives, Luff Drive 1 to 4
- four gearboxes, Luff Gearbox 1 to 4
- four motors, Luff Motor 1 to 4
- four brakes, Luff Brake 1 to 4
```

Or in the app:

1. Open [Asset types](https://idalia.app/asset-types) and create one type for each of: luff winch, luff drive, luff gearbox, luff motor, and luff brake. Leave each type as **Part**.
2. Open [Assets](https://idalia.app/assets) and create the units. Set status to **Ready**.
   * one winch: **Luff Winch 01**
   * four drives: **Luff Drive 1** to **Luff Drive 4**
   * four gearboxes: **Luff Gearbox 1** to **Luff Gearbox 4**
   * four motors: **Luff Motor 1** to **Luff Motor 4**
   * four brakes: **Luff Brake 1** to **Luff Brake 4**
3. Open **Luff Winch 01** and choose **Assembly**. Stay on that page for the rest of this guide.

If a type already has a parts recipe, empty slots show on **Assembly**. Right-click an empty slot and choose **Create asset**. If several slots of that type are empty, choose **Create N assets**. To hang a new unit when there is no empty slot, right-click the machine and choose **Create asset**, or open **Add part**, pick a type, and press **+**.

This walkthrough hangs the units you already created. Use **Add part** and drag those assets onto a node.

## Add drives to the winch

This luff winch has three drives.

To use Idalia AI, paste the following message:

```text wrap theme={null}
Put Luff Drive 1, 2, and 3 on this winch. They're the actual drives, not empty slots. Leave Drive 4 in the yard.
```

Or in the app:

1. Stay on **Assembly** for **Luff Winch 01**.
2. Press **Add part** on the toolbar, or press <kbd>A</kbd>. The parts library opens on the right.
3. Open the **luff drive** type.
4. Drag **Luff Drive 1** onto the winch node. Repeat for **Luff Drive 2** and **Luff Drive 3**. You can select several drives, then drag them together.
5. Leave **Luff Drive 4** in the list. Do not drop it on the winch.

The winch should now show three child drives. Each drive is still empty.

## Build out the drives

Each drive needs a gearbox, motor, and brake.

To use Idalia AI, paste the following message:

```text wrap theme={null}
Now attach a motor, gearbox, and brake to each of those drives. Use the matching numbers — Drive 1 gets Motor 1, Gearbox 1, and Brake 1, and so on.

Leave Motor 4, Gearbox 4, and Brake 4 as spares.
```

Or in the app:

1. Keep the parts library open. If it is closed, press **Add part** again.
2. Open the **luff motor** type. Drag **Luff Motor 1** onto the **Luff Drive 1** node, not onto the winch. Repeat for Drive 2 and Drive 3 with the matching motors.
3. Open the **luff gearbox** type. Drag **Luff Gearbox 1** onto Drive 1, and match the numbers for Drive 2 and Drive 3.
4. Open the **luff brake** type. Drag **Luff Brake 1** onto Drive 1, and match the numbers for Drive 2 and Drive 3.
5. Leave Motor 4, Gearbox 4, and Brake 4 in the yard.

You should see the winch, three drives, and three parts on each drive.

## Set useful life

Parts wear out over time. Idalia makes it easy to see which parts are close to the end of their life and swap them out for a fresh unit before they fail.

Swap replaces the installed unit in place. Motor 1 comes off Drive 1. Motor 4 goes into that slot. Motor 1 becomes a spare.

Drive 1's motor is near the end of its life. Set that on Luff Motor 1 first.

To use Idalia AI, paste the following message:

```text wrap theme={null}
On Luff Motor 1, set useful life to 10,000 hours and set the hour meter to 10,800 hours.
```

Or in the app:

1. Right-click **Luff Motor 1**.
2. Open **Useful life** and choose **Set useful life**. Enter `10000` hours and save.
3. Right-click **Luff Motor 1** again. Open **Useful life** and choose **Add hours**. Choose **Set total**, enter `10800`, and save.
4. Open **Display options** in the **Assembly** header and turn on **Useful life**.

You can also select **Luff Motor 1**, then use **Set useful life** and **Add hours** on the selection bar.

Note how **Luff Motor 1** has a small red bar, telling you it's past the end of its useful life. It's time to consider swapping it out for a fresh spare.

## Swap a part

To use Idalia AI, paste the following message:

```text wrap theme={null}
Drive 1's motor is coming off. Swap Luff Motor 1 for the spare, Luff Motor 4.
```

Or in the app:

1. Right-click **Luff Motor 1** and choose **Change**.
2. Select **Luff Motor 4**.

You can also press **Add part**, switch the library to **Spares**, open **luff motor**, and drag **Luff Motor 4** onto the motor on Drive 1. Matching slots highlight. Drop only on a motor slot.

Drive 1 now shows Luff Motor 4. Luff Motor 1 is free. You can swap it back the same way.

## Send the winch to a project

The winch is built and the worn motor is off. Book **Luff Winch 01** onto a job with an [allocation](https://useidalia.com/docs/allocations/introduction.md). You add the unique winch once. The drives, motors, gearboxes, and brakes that are hung on it go with that unit. Do not add those nested parts as extra lines.

Leave the yard spares off the order: **Luff Drive 4**, **Luff Motor 1**, and Gearbox 4 and Brake 4.

To use Idalia AI, paste the following message:

```text wrap theme={null}
Create a project named Harbour Tower if it does not exist.

Create an allocation on Harbour Tower from next Monday for 8 weeks. Put Luff Winch 01 on it. It's going as a complete unit.

Do not add Drive 4, Motor 1, Gearbox 4, or Brake 4 — those stay in the yard.
```

Or in the app:

1. Open [Allocations](https://idalia.app/allocations) and press **Create** (or open the project and choose **Create allocation**).
2. Name the order, set the **project** to Harbour Tower, and set the dates. Save.
3. Press **Add assets**. Open the **luff winch** type.
4. Select **Luff Winch 01**. Do not press **+** under **Placeholders** — that books a type, not this machine.
5. Leave Drive 4 and the spare motor, gearbox, and brake unselected. Close the panel.

The order should show one line: **Luff Winch 01**. Open the winch on **Assembly** if you need to confirm which parts are still hung on it.

## Further reading

See [How to manage useful life](./useful-life.mdx) for useful life, and [Manage allocations](https://useidalia.com/docs/allocations/manage.md) for allocation orders.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.