> For the complete documentation index, see [llms.txt](https://docs.finch3d.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.finch3d.com/docs/projects-and-variants/story-editor/generate-unit-mix-and-corridors.md).

# Generate Unit Mix & Corridors

### 1. Add a centerline

* Click on the Centerline icon
* Draw a centerline

<figure><img src="https://2550488103-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffr7wU7S4fvKhCNJqX17T%2Fuploads%2Fgit-blob-050b7d5c2ecdab1f25af2ee4943080ca09a97281%2Fgenerate-unit-mix1.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
A centerline controls the placement of Finch generated corridors. It represents the centerline of the corridor itself (if you input a 2m corridor, the corridor will be offset both sides of the centerline by 1m).
{% endhint %}

<figure><img src="https://2550488103-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffr7wU7S4fvKhCNJqX17T%2Fuploads%2Fgit-blob-f3b8ee9e9d37ccfcc368d4347000040d4bbc29d9%2Fgenerate-unit-mix2.png?alt=media" alt=""><figcaption></figcaption></figure>

### 2. Start the generation

* Select the areas you want to generate in (hold shift to select multiple) and hit **`Generate Floor Plate`** on the **`Context Menu`**.
* The generation will begin to run.

<figure><img src="https://2550488103-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffr7wU7S4fvKhCNJqX17T%2Fuploads%2Fgit-blob-0775cb6fad9be187a2f447d2a0920288a2380040%2Fgenerate-unit-mix3.png?alt=media" alt=""><figcaption></figcaption></figure>

### 3. Adjust the settings

{% hint style="info" %}
The more iterations that run, the more accurate the result will become.
{% endhint %}

* Input the desired **`Stairwell range`** in the upper left panel.
* Input your **`Maximum egress distances`** to generate according to exit distances.
* Use **Stairwell Attractors** (shortcut S) to control which facade the stairwells face.
* Adjust **`Dimensions`** to customize further.

<figure><img src="https://2550488103-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffr7wU7S4fvKhCNJqX17T%2Fuploads%2Fgit-blob-5bbf32e036bea30c58076d4cc340ec8ce82c9bc0%2Fgenerate-unit-mix4.png?alt=media" alt=""><figcaption></figcaption></figure>

### 4. Weights to influence the scoring

{% hint style="info" %}
Users can continously change parameters to interact with the algorithm throughout the generation process.
{% endhint %}

* In the bottom left corner, interact with the algorithm weights to optimize for certain metrics.
* Metrics with their sliders further to the right will be prioritized.

<figure><img src="https://2550488103-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffr7wU7S4fvKhCNJqX17T%2Fuploads%2Fgit-blob-551f0100216ee49464aa0ef61a674a93f3808bcb%2Fgenerate-unit-mix5.png?alt=media" alt=""><figcaption></figcaption></figure>

### 5. Generate units

* Once you are satisifed with the corridor placement, **`pause`** the algorithm and click **`Generate Units`**.
* Follow the instructions on how to [generate around a custom core](https://docs.finch3d.com/floor-plate-studio/generate-unit-mix-around-circulation).

{% content-ref url="/pages/W6veFuxT6AO11gmW9K7M" %}
[Generate Unit Mix around Circulation](/docs/projects-and-variants/story-editor/generate-unit-mix-around-circulation.md)
{% endcontent-ref %}

<figure><img src="https://2550488103-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffr7wU7S4fvKhCNJqX17T%2Fuploads%2Fgit-blob-7460e3da3097cdbbb379767e1d1276b3aa5fd2ba%2Fgenerate-unit-mix6.png?alt=media" alt=""><figcaption></figcaption></figure>

***
