Skip to content

Plot to PDF Java Client: Shows how to issue a direct HTTP requests to call the Design Automation API

License

Notifications You must be signed in to change notification settings

xiaodongliang/design.automation-java-simple.sample

 
 

Repository files navigation

design.automation-java-simple.sample

odata Design Automation IntelliJ [JAVA SDK] License

Description

This is a simple Java client that exercises the predefined PlotToPDF activity. It issues direct HTTP requests to call the Autodesk Forge Design Automation API.

Thumbnail

thumbnail

Setup

Dependencies

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.

Running locally

  1. Set enviroment variables.
  • Mac OSX/Linux (Terminal). Note: to let IntelliJ refresh with the updated enviroment variables, perform
    open -a "IntelliJ IDEA CE" to start IntelliJ Community

OR

    open -a "IntelliJ IDEA" to start IntelliJ Ultimate
    export FORGE_CLIENT_ID=<<YOUR CLIENT ID FROM FORGE DEVELOPER PORTAL>>
    export FORGE_CLIENT_SECRET=<<YOUR FORGE CLIENT SECRET>>
  • Windows (command line)
    set FORGE_CLIENT_ID=<<YOUR CLIENT ID FROM FORGE DEVELOPER PORTAL>>
    set FORGE_CLIENT_SECRET=<<YOUR FORGE CLIENT SECRET>>
  1. In IntelliJ, open the project as Maven oriject
  2. Configure with available JAVA enviroment
  3. Run or debug src/Main, the work item will be posted, and status is shown in the console.

Picture

Known Issues

Further Reading

License

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

Authors

About

Plot to PDF Java Client: Shows how to issue a direct HTTP requests to call the Design Automation API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%