Postman collection to create App, define activity, and call the WorkItem.
Before start with Design Automaiton workflow, I strongly recommend you to read throught all the details at
Design Automation for Revit Documenation, and check the following steps if you already have basic understanding.
-
Download or update Postman from here.
-
Create a Forge App. If you have already created a Forge App then you can skip this and proceed to the next step.
-
From your local clone of the repository, import our
Postman collections
Design Automation V3 Samples Collection into the Postman application. You can find more details about collections here -
From your local clone of the repository, import our
Postman environment
Design Automation V3 Samples Environment into the Postman application. You can find more details about managing and editing environment variables here. -
Select the environment and enter your Forge App's
Client ID
andClient Secret
. This is used for authentication. In the environment variables give your app an easy to manage unique nickname. -
Compile and package the sample applications as noted here. You will need this to upload the app to Design Automation. Alternatively you may also download the packages from FileUpgraderApp.zip.
-
Prepare your input and output url. You need to upload an old version of revit file as input Url, you can use Revit2014.rvt for test.
-
Before following the steps from collection, create a NickName for your App first.
-
Follow Step from 0 ~ 7, this will create an AppBundle, define an Activity and post a WorkItem.
-
You can use Get command to list the AppBundles/Activities.
-
You can use Delete command to delete the AppBundle/Activity and start the workflow from Step 0 ~ 7 again.
These Postman samples will allow you to easily issue REST API calls without using cumbersome cURL commands.
Note that you will have to carefully read through the requests - DELETE
-ing an app
or activity
will delete all its associated versions!
Note that for all workitems
kindly provide signed URL for the expected output file. Else the workitem
post will result with failedUpload
.
REST API documentation on Design Automation V3 can be found here.
A more complicated step by step instructional video can be found here, the main steps should be similar.
Design Automation Postman collection and environment, Updated by Zhong Wu, Forge Partner Development