This C# sample shows various ways to specify input for a work item of Design Automation
- 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.
- 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.
- Make a note with the credentials (client id and client secret) of the app.
- as mentioned in Dependencies, ensure to provide a URL of a presigned place where the result can be uploaded if testing with SubmitWorkItemWithOutputHeaders
- 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)
- Put your Forge credentials in program.cs
- Run project Client, you will see a status in the console:
- 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.
- if there is any error with the process of work item, check the report file what error is indicated.
- 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.
- Design Automation API help
- Intro to Design Automation API Video
- Create and use a SAS with Blob storage
These samples are licensed under the terms of the MIT License. Please see the LICENSE file for full details.
Jonathan Miao & Albert Szilvasy