Didn't find what you're looking for? Submit a
Documentation Request
LogoLogo
AppsContact Support
API
API
  • Welcome to the Paragon API
  • Quickstarts
    • Getting Started with .NET
    • Getting Started with REST
  • Tutorials
    • Create a layout - .NET
  • Concepts
    • API Overview
  • Design API Overview
  • Coordinates
  • Samples
    • .NET Samples
    • Node.js Samples
  • Reference
    • REST
Powered by GitBook
On this page
  • Step 1 - Open a browser and log into Paragon Design
  • Step 2 - Clone the ParagonApiDotnetSamples project
  • Step 3 - Navigate to the LayoutConsoleApp folder and run the project
  1. Tutorials

Create a layout - .NET

PreviousGetting Started with RESTNextAPI Overview

Last updated 16 days ago

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.

Step 1 - Open a browser and log into

Step 2 - Clone the project

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

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:

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

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

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:

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.

.NET 9.0
Git
ParagonApiDotnetSamples
Paragon Design
Layout Mode
Design Mode