Based on the Design Automation tutorial sample from learnforge.autodesk.io
In order to use the "Keep workitem running (max 1 minute)" option in the sample, you need to have a Forge subscription and then reach out to forge.help@autodesk.com to get Open Network enabled for yor Forge app. See this for more info: Open Network in Preview
It includes 2 modules:
- .NET Framework plugin Inventor. See each readme for plugin details.
- .NET Core web interface to invoke Design Automation v3 and show results. See readme for more information.
The designautomation.sln
includes the bundle and the webapp. The BUILD
action copy all files to the bundle folder, generate a .zip and copy to the webapp folder.
Before running the project make sure that you provide the correct values for the following environment variables. You can set them either inside the project settings of forgesample
or some other ways:
FORGE_CLIENT_ID
: the client ID of your APS appFORGE_CLIENT_SECRET
: the client secret of your APS appFORGE_WEBHOOK_URL
: the URL of the server where you run this appFORGE_NICKNAME
: the nickname that you set for your APS app using the Design Automation'sPATCH forgeapps/:id
endpoint. If you have not done that, then use the same value as forFORGE_CLIENT_ID
After the first compilation of the solution the UpdateIPTParam\bin\Bundle\UpdateIPTParam.bundle\Contents
folder will be created. Inside it create a folder named Shelving
and copy all the files in forgesample\wwwroot\files
folder into it. Then recompile the whole solution again.