# Create a layout - .NET

In order to get up and running with the Paragon API, we provide a sample .NET application that uses the Paragon API to create a simple Layout project. In order to follow along you will need the following:

* A Paragon Team account with API access.
* [.NET 9.0](https://learn.microsoft.com/en-us/dotnet/core/install/)
* [Git](https://git-scm.com/)

## Step 1 - Open a browser and log into [Paragon Design](https://docs.paragontruss.com/design/)

## Step 2 - Clone the [ParagonApiDotnetSamples](https://github.com/ParagonTruss/ParagonApiDotnetSamples) project

## Step 3 - Navigate to the LayoutConsoleApp folder and run the project

```sh
git clone https://github.com/ParagonTruss/ParagonApiDotnetSamples
cd LayoutConsoleApp
dotnet run
```

When you run the project for the first time you will notice the following line :

```
Connecting to the Paragon API...
```

Your default web browser should open to the Paragon Services client and you will be presented with an option to authorize:

<figure><img src="/files/xYVioaHmKSryRze59kNH" alt=""><figcaption></figcaption></figure>

If your account is set up properly you should get a success message:

<figure><img src="/files/OJIqExOGgKRCokYsijQ7" alt=""><figcaption></figcaption></figure>

Now when you go back to your terminal you should see the following output indicating that a project has been created successfully.

```sh
Creating a new project...
Creating bearing envelopes and roof planes...
Creating truss envelopes...
Creating trusses...
Upgrading and analyzing trusses...

Truss 14 Capacity Ratio: 0.96
Truss 52 Capacity Ratio: 0.59
Truss 33 Capacity Ratio: 0.94
Truss 53 Capacity Ratio: 0.59
Truss 24 Capacity Ratio: 0.93
Truss 3 Capacity Ratio: 0.9
Truss 23 Capacity Ratio: 0.98
Truss 4 Capacity Ratio: 0.98
Truss 40 Capacity Ratio: 0.98
Truss 1 Capacity Ratio: 1.6
Truss 2 Capacity Ratio: 1.04

Project URL: https://design.paragontruss.com/4ff7b68b-8de7-4be5-b989-36b95f5142da

```

Now you can open the project in your browser. It should resemble the following:

<div><figure><img src="/files/eEijk1905VohMVVgcGEf" alt=""><figcaption><p>Layout Mode</p></figcaption></figure> <figure><img src="/files/W8q972HiNUmajAT7JAsj" alt=""><figcaption><p>Design Mode</p></figcaption></figure></div>

Congratulations! You have now created your first project using the Paragon API.

Now you can modify the code in `ParagonApi/samples/LayoutConsoleApp` to explore features of the API.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.paragontruss.com/api/tutorials/layout-sample-app.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
