Skip to content

mtabbal/workflow-aspnet-webform-view.and.data.api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Autodesk View and Data API sample using an ASP.NET Webform

##Description

This is a ASP.NET Webform sample providing functions to :

  • Upload a file to a bucket.
  • Start the translation of the file.
  • Check translation progress.
  • Load the translated file into the viewer.

See the live demo.

##Dependencies

This sample uses the RestSharp and log4net libraries. You can add them to your project using NuGet in Visual Studio.

##Setup/Usage Instructions

  • Get your consumer key and secret key from http://developer.autodesk.com.
  • Run Visual Studio 2012 or 2013 and open ViewAndShare.sln
  • Set the API keys in the Credentials.cs file.
  • Change the bucket name for uploading files (also in the Credentials.cs file). The bucket name must match the pattern “^[-.a-z0-9]{3,128}$” - i.e. the bucket name must be between 3 to 128 characters long and contain only lowercase letters, numbers and the symbols .–. Bucket keys must be unique within the data center or region in which they were created. Therefore, to ensure uniqueness, we recommend you incorporate your company name/domain name or consumer public key (converted to lowercase) into the bucket name.
  • Go to property of "ViewAndShare" web project, in "Web" tab, it uses "IIS Express", click "Create Virtual Directory".
  • Build the sample and launch the sample in a WebGL enabled browser like Google Chrome or Firefox.

You can get your model URN by clicking the 'Share' button, the urn is the parameter of sharing URL.

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.

##Written by

Daniel Du

About

This is a sample demoing the complete workflow of using Autodesk View and Data API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 46.2%
  • Classic ASP 37.6%
  • JavaScript 14.8%
  • CSS 1.4%