GBS API Getting Started

Follow these steps to get started with the Green Building Studio Energy Analysis Service API.

Step Details
  • Obtain an ADN Account
If you do not have an Autodesk ADN account, contact the Autodesk ADN team to obtain an ADN account.
  • Install Visual Studio 2010
You must have Visual Studio 2010 installed on your local machine to compile and build the sample code included in the SDK.
  • Obtain an Autodesk Single Sign On (SSO) Account and get your authorization key
You must have an Autodesk SSO account to access the GBS API or GBS website. To get the SSO account do one of the following:
  • If you have received your ADN Welcome Kit, follow the instructions in the Welcome email to obtain your Autodesk SSO account.
  • Request your ADN Welcome Kit by contacting the Autodesk ADN team or support team.
  • Register for a new trial account:
    1. In your browser, go to GBS ADN.
    2. Click "Create Account".
    3. Contact the Support team to get your authorization key and secret.
  • Set up your development environment
For best results, follow these steps:
  1. Download sample code from GBS ADN SDK.

    Note: When you sign into ADN website, go to Software and Support and choose Autodesk Green Building Studio. You can download the latest release of Autodesk Green Building Studio SDK from Downloads.

  2. Unzip the sample code (gbs.api.v1.sample.zip).
  3. Open the App.config file in a text editor, and do the following:
    • In the Value field of OpenApiUsername, enter your username.
    • In the Value field of OpenApiPassword, enter your password.
      Note: It is not recommended that you store your username and password as clear text in the configuration file. This is only done in the sample code to simplify your setup process.
    • In the Value field of identityOAuthConsumerKey, enter your authorization key.
    • In the Value field of identityOAuthConsumerSecret, enter your secret.
    • Save the App.config file.
  4. When you are ready to compile and build your sample application, open the gbs.api.v1.sample.sln file from Visual Studio 2010.
  5. Run or modify your sample program.
  6. Log in to the GBS ADN website to check your results.