Autodesk Forge application demonstrating various use cases in manufacturing, specifically in context of digital twins.
Master branch is deployed to http://forge-digital-twin.autodesk.io.
- Node.js v10+
- Forge application credentials, and an urn of a model processed with Model Derivative APIs
- MongoDB database
- for example, use the free tier of MongoDB Atlas
- or run it locally: https://docs.mongodb.com/manual/installation
- clone this repository
- install dependencies:
npm install
- run server with all the required env. variables
- for example, on macOS:
export FORGE_CLIENT_ID=<client-id> export FORGE_CLIENT_SECRET=<client-secret> export FORGE_MODEL_URN=<model-urn> export MONGODB_URL=<mongodb-connection-string> npm start
- or, when using Visual Studio Code, add this configuration to your .vscode/launch.json:
{ "type": "node", "request": "launch", "name": "Launch Express Server", "program": "${workspaceFolder}/server.js", "env": { "FORGE_CLIENT_ID": "<client-id>", "FORGE_CLIENT_SECRET": "<client-secret>", "FORGE_MODEL_URN": "<model-urn>", "MONGODB_URL": "<mongodb-connection-string>" } }
- for example, on macOS:
- go to http://localhost:3000
-
The jet engine model used in the live demo can be obtained from https://knowledge.autodesk.com/sites/default/files/file_downloads/Jet_Engine_Model.zip.
-
Create an archive of the
Workspace
folder and translate the archive into SVF with_Jet Engine Model.iam
as the root file (see tutorial here and remember to specify the output format asSVF
) -
Once completed, feed the URN as environment variable and run the sample
- Heatmaps (using the viewer's theming color API)
- Annotations
- Animations
For support, please contact forge.help@autodesk.com.
This sample is licensed under the terms of the MIT License. Please refer to LICENSE for more details.
Petr Broz (@ipetrbroz), Varun Patil, Forge Partner Development Group