Skip to content

Specify inputs for work item: In this Design Automation C# sample, see various ways of specifying inputs for a workitem

License

Notifications You must be signed in to change notification settings

Autodesk-Forge/design.automation-.net-input.output.sample

Repository files navigation

Design Automation API: Input/Output worflow .NET sample

.net odata Design Automation visual studio License

Description

This C# sample shows various ways to specify input for a work item of Design Automation

Thumbnail

thumbnail

Setup

Dependencies

  • Download and install Visual Studio. In the latest test, Visual Studio version is 2017.
  • If you need to test with SubmitWorkItemWithOutputHeaders function of Program.cs, ensure to provide a URL of a presigned place where the result can be uploaded. In this sample, Azure blob is demoed. Follow the tutorial of Create and use a SAS with Blob storage to generate the url.

Prerequisites

  1. Forge Account: Learn how to create a Forge Account, activate subscription and create an app at this tutorial. Make sure to select the service Design Automation.
  2. Make a note with the credentials (client id and client secret) of the app.
  3. as mentioned in Dependencies, ensure to provide a URL of a presigned place where the result can be uploaded if testing with SubmitWorkItemWithOutputHeaders

Running locally

  1. Open the project. Restore the packages of the project by [NuGet](https://www.nuget.org/. The simplest way is
  • VS2012: Projects tab >> Enable NuGet Package Restore. Then right click the project>>"Manage NuGet Packages for Solution" >> "Restore" (top right of dialog)
  • VS2013/VS2015/2017: right click the project>>"Manage NuGet Packages for Solution" >> "Restore" (top right of dialog)
  1. Put your Forge credentials in program.cs
  2. Run project Client, you will see a status in the console: thumbnail
  3. if everything works well, the result files and the report files will be downloaded to MyDocuments. The result by SubmitWorkItemWithOutputHeaders will be uploaded to your Azure blob storage. thumbnail
  4. if there is any error with the process of work item, check the report file what error is indicated.

Known Issues

  • as of writing, Design Automation of Forge is released with version 2. Odata is used with .NET project. In futher version, OData might not be used.

Further Reading

License

These samples are licensed under the terms of the MIT License. Please see the LICENSE file for full details.

Written by

Jonathan Miao & Albert Szilvasy

About

Specify inputs for work item: In this Design Automation C# sample, see various ways of specifying inputs for a workitem

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages