Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/autodesk-forge/forge-digital-twin

Autodesk Forge application demonstrating various use cases in manufacturing, specifically in context of digital twins.
https://github.com/autodesk-forge/forge-digital-twin

autodesk autodesk-data-management autodesk-forge autodesk-model autodesk-viewer digital-twin expressjs jquery manufacturing nodejs

Last synced: about 2 hours ago
JSON representation

Autodesk Forge application demonstrating various use cases in manufacturing, specifically in context of digital twins.

Awesome Lists containing this project

README

        

# Forge Digital Twin Demo

![Platforms](https://img.shields.io/badge/platform-Windows|MacOS-lightgray.svg)
![Node.js](https://img.shields.io/badge/node-%3E%3D%2010.0.0-brightgreen.svg)
![License](https://img.shields.io/badge/license-MIT-green.svg)

[![Viewer](https://img.shields.io/badge/Viewer-v7-green.svg)](http://developer.autodesk.com/)
[![Data-Management](https://img.shields.io/badge/Data%20Management-v1-green.svg)](http://autodesk-forge.github.io)
[![OSS](https://img.shields.io/badge/OSS-v2-green.svg)](http://autodesk-forge.github.io)
[![Model-Derivative](https://img.shields.io/badge/Model%20Derivative-v2-green.svg)](http://autodesk-forge.github.io)

![Intermediate](https://img.shields.io/badge/Level-Intermediate-blue.svg)

Autodesk Forge application demonstrating various use cases in manufacturing, specifically in context of digital twins.

![Screenshot](thumbnail.png)

## Live demo

Master branch is deployed to http://forge-digital-twin.autodesk.io.

## Development

### Prerequisites

- Node.js v10+
- [Forge](https://forge.autodesk.com) application credentials,
and an _urn_ of a model processed with [Model Derivative APIs](https://forge.autodesk.com/en/docs/model-derivative/v2)
- MongoDB database
- for example, use the free tier of [MongoDB Atlas](https://www.mongodb.com/cloud/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:
```bash
export FORGE_CLIENT_ID=
export FORGE_CLIENT_SECRET=
export FORGE_MODEL_URN=
export MONGODB_URL=
npm start
```
- or, when using [Visual Studio Code](https://code.visualstudio.com), add this configuration to your _.vscode/launch.json_:
```json
{
"type": "node",
"request": "launch",
"name": "Launch Express Server",
"program": "${workspaceFolder}/server.js",
"env": {
"FORGE_CLIENT_ID": "",
"FORGE_CLIENT_SECRET": "",
"FORGE_MODEL_URN": "",
"MONGODB_URL": ""
}
}
```
- go to http://localhost:3000

### Deployment

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

## 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](https://forge.autodesk.com/en/docs/model-derivative/v2/tutorials/translate-zip-to-stl) and remember to specify the output format as `SVF`)

- 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](https://tldrlegal.com/license/mit-license).
Please refer to [LICENSE](LICENSE) for more details.

## Written by

Petr Broz ([@ipetrbroz](https://twitter.com/ipetrbroz)), Varun Patil, Forge Partner Development Group