# Rhino

## Supported Rhino Versions

The plugin is compatible with the following software versions:

* **Rhino 7** — version **7.38.24338.17001** or later (available only via direct download from [food4rhino](https://www.food4rhino.com/en/app/cityweft))
* **Rhino 8** — version **8.21.25188.17001** or later
* **Grasshopper** (included with Rhino 7 and Rhino 8)

#### Supported Operating Systems

* **Windows**
* **macOS**

## Installing via Package Manager

1. **Open the Package Manager**

   In Rhino, go to the **Tools** menu and select **Package Manager** (or type `PackageManager` in the Rhino command line).<br>

   <figure><img src="https://2449447963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ahel6HN9zgEzJ1vY9kr%2Fuploads%2FcXbpzkzXbcZTRsRY9Vdn%2Fimage.png?alt=media&#x26;token=1436f87b-5eac-4cbc-943b-c0829e1958a5" alt=""><figcaption></figcaption></figure>

2. **Search for “Cityweft” and install the plugin**

   In the search bar, type **Cityweft** and press Enter. The Cityweft plugin will appear in the list of available packages.\
   Click on the Cityweft package entry, then press Install. Rhino will automatically download and install the latest compatible version.<br>

   <figure><img src="https://2449447963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ahel6HN9zgEzJ1vY9kr%2Fuploads%2FKyVxqp7fSPgdeeJAYfWg%2Fimage.png?alt=media&#x26;token=1ea5ef9d-2158-4d35-a5e8-b9f64d958c42" alt=""><figcaption></figcaption></figure>

3. **Restart Rhino**

   Once the installation is complete, **restart Rhino** to ensure the plugin loads correctly.<br>

4. **Verify Installation**

   After restarting, open the **Plugins** tab in Rhino or Grasshopper to confirm that **Cityweft** appears in the list of installed plugins.<br>

   <figure><img src="https://2449447963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ahel6HN9zgEzJ1vY9kr%2Fuploads%2FgZrNajxFC1ddakTUvJHT%2Fimage.png?alt=media&#x26;token=7d280c19-205f-442a-9446-9039ab07a95a" alt=""><figcaption></figcaption></figure>

5. When you open the Cityweft Plugin, the container will open, and you're ready to go!<br>

   <figure><img src="https://2449447963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ahel6HN9zgEzJ1vY9kr%2Fuploads%2FNMvrTteTl9nddre2hMtd%2Fimage.png?alt=media&#x26;token=3a3a23f1-cf43-4314-aff0-2154cfbb7730" alt=""><figcaption></figcaption></figure>

## Activating Plugin

A **valid Cityweft API key** is required to use the plugin.

You must have an **active subscription or bundle package** that includes API access in order to retrieve an API key.

API keys can be generated and managed from your **Cityweft API Dashboard**.

For detailed instructions on how to obtain and manage your API key, see the section:

{% content-ref url="getting-your-api-key" %}
[getting-your-api-key](https://cityweft.gitbook.io/docs/plugins/getting-your-api-key)
{% endcontent-ref %}

## **Getting Started**

Before getting started, ensure you have followed the instructions for both installation and API key access.

### 🔑 **Activating your API Key**

To activate the plugin the first time, you need to enter your API key. If you do not have this, please visit the **‘Getting your API Key’** page

1. Once you have retrieved your API key, simply go to the usage tab and find the ‘Set API Key’ button\ <br>

   <figure><img src="https://2449447963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ahel6HN9zgEzJ1vY9kr%2Fuploads%2FzP2Lpm1kMwcIRwu8H63r%2Fimage.png?alt=media&#x26;token=0cb0a5e7-86e6-4686-a154-155aa4c46996" alt=""><figcaption></figcaption></figure>

2. Simply paste your API Key into the field, and press ‘OK’<br>

   <figure><img src="https://2449447963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ahel6HN9zgEzJ1vY9kr%2Fuploads%2F5Eo6WRqj4iNgdJrVysUt%2Fimage.png?alt=media&#x26;token=06be19ba-025e-4195-bdb7-b6ff8adc7ece" alt=""><figcaption></figcaption></figure>

3. Once input correctly, you are ready to go!

### 🏢 **Getting Your Model**

1. In the Cityweft window, **navigate or search** for your desired site location.\ <br>

   <figure><img src="https://2449447963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ahel6HN9zgEzJ1vY9kr%2Fuploads%2Fx6RLc2GBtEPe4dIYf6Xe%2Fimage.png?alt=media&#x26;token=3872fc4e-c286-41e5-a40b-6c3d2359ef65" alt=""><figcaption></figcaption></figure>

2. **Select an area** on the map using the polygon selection tool.<br>

   <figure><img src="https://2449447963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ahel6HN9zgEzJ1vY9kr%2Fuploads%2FUEy4NTJm1vvLUqKxzKNA%2Fimage.png?alt=media&#x26;token=58775fa7-663a-4bfd-b0ea-537815ff254e" alt=""><figcaption></figcaption></figure>

3. **Choose your save folder in the output settings**<br>

   <figure><img src="https://2449447963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ahel6HN9zgEzJ1vY9kr%2Fuploads%2Fz6NS8zxmCBSrtueYkrzr%2Fimage.png?alt=media&#x26;token=e8628fe5-f47a-4df4-98a4-15b12f9b613f" alt=""><figcaption></figcaption></figure>

   Before downloading, open the **Output Settings** section:

   * **Filename:** Enter the name you’d like for your model file (e.g., `Paris`).
   * **Output Folder:** Choose where you’d like the model files to be saved on your computer.

   All generated files will be placed in this folder.

   > 💡 Tip: Create a dedicated folder for each project area to keep your Cityweft models organized.

4. **Press the ‘Download and Import Model’ button**\
   \
   The model will automatically appear in the viewport\
   If you are selecting a large area with dense geometry, this process can take up to 1-2 minutes.<br>

5. **View all the model layers in the layer manager**<br>

   <figure><img src="https://2449447963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ahel6HN9zgEzJ1vY9kr%2Fuploads%2F9PoMmwS9Uq7ykZhbqtEo%2Fimage.png?alt=media&#x26;token=484b770a-cf2c-4a74-8afc-ab7127b5293e" alt=""><figcaption></figcaption></figure>

6. Geometry metadata
   * In addition to geometry, the model contents also contain a host of metadata, including building name, facade material, and more
   * To view this information, simply click on any object and open the **Attribute User Text** under **Properties**\ <br>

     <figure><img src="https://2449447963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ahel6HN9zgEzJ1vY9kr%2Fuploads%2FuVfAzI236jlUKa3IsNAp%2Fimage.png?alt=media&#x26;token=d32a5fe7-3e2c-4fef-810a-5b1517304d9c" alt=""><figcaption></figcaption></figure>

### ⚙️ Plugin **Settings Overview**

The Cityweft Rhino plugin includes several settings that control what data is included and how it is processed when generating models.

These are grouped into three main categories:

***

#### **1. Geometry Types**

*(Check boxes — choose which layers to include in your model)*

These options let you define which geometry types to include when downloading the model.

| **Option**         | **Description**                                                        |
| ------------------ | ---------------------------------------------------------------------- |
| **Buildings**      | Imports buildings and roof geometry.                                   |
| **Surface**        | Includes ground surfaces such roads, green space, or base mesh.        |
| **Barriers**       | Adds physical boundaries like fences, retaining walls, or embankments. |
| **Topography**     | Imports detailed elevation data and terrain contours.                  |
| **Infrastructure** | Adds infrastructure layers such as trees, bus stops, or benches        |

> 💡 Tip: If you only need building geometry, uncheck other layers to speed up processing.

***

#### **2. Processing Options**

*(Check boxes — controls how geometry is handled during conversion)*

| **Option**             | **Description**                                                                                                                                                                                      |
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Force flat surface** | Deactivates surface geometry projection onto Topography. When Topography is activated, this will generate all surfaces (roads, parks, water) at z=0, while topography layer is generated seperately. |

***

#### **3. Building Settings**

*(Adjustable fields — define defaults for missing data)*

| **Setting**                  | **Description**                                                                                                                  |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| **Default Roof Type**        | Sets a default roof geometry type for buildings that lack roof data. This does **not** override existing roof shape information. |
| **Default Levels**           | Specifies how many building levels to assign when no height data is available.                                                   |
| **Default Level Height (m)** | Defines the assumed height of each building level in meters. Used to estimate total building height when no data exists.         |

> 🏗️ These settings ensure that all buildings generate correctly, even when data is incomplete.
