Forge Digital Twin Demo
Autodesk Forge application demonstrating various use cases in manufacturing, specifically in context of digital twins.
Live demo
Master branch is deployed to http://forge-digital-twin.autodesk.io.
Development
Prerequisites
- 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
Setup
- 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
Deployment
Sample data
-
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
Features
- Heatmaps (using the viewer's theming color API)
- Annotations
- Animations
Support
For support, please contact [email protected].
License
This sample is licensed under the terms of the MIT License. Please refer to LICENSE for more details.
Written by
Petr Broz (@ipetrbroz), Varun Patil, Forge Partner Development Group