Forge C# Quickstart¶a>
This quickstart uses the Forge .NET SDK and the C# sample app to demonstrate how to use the Authentication and Data Management Forge APIs. It shows the following workflow:
- Create a 2-legged authentication token
- Create a bucket (an arbitrary space to store objects)
- Upload a file to the bucket
- Prepare the file for displaying in the Viewer (translate the file into SVF format)
- Display the translated file in the Viewer
Requirements¶
- Microsoft .NET Framework 4.0 or higher
- Microsoft Visual Studio 2015
Installation¶
Clone the SDK and sample app from the following repository:
$ git clone https://github.com/Autodesk-Forge/forge-api-csharp-client.git
Create an App¶
Create an app on the Forge portal, and ensure that you select the Data Management API. Note the client ID and client secret.
Configure the Parameters¶
Configure the parameters in one of the following ways:
- Open the simple-csharp/Program.cs file and replace
your_client_id
andyour_client_secret
with the client ID and client secret generated when creating the app. - Create two environment variables (
FORGE_CLIENT_ID
,FORGE_CLIENT_SECRET
) and set them according to the client ID and client secret generated when creating the app.
Run the App¶
Run the app from your IDE console or from the command line.
The app calls the Authentication, Data Management, and Model Derivative endpoints, and uses the Viewer JavaScript library to render the model.

Forge Resources¶
See the Forge Samples section for a complete list of our code samples and SDKs.