Skip to content

Industrial Construction Demo:Autodesk Platform Services application demonstrating possible usage in industrial construction.

Notifications You must be signed in to change notification settings

autodesk-platform-services/aps-industrial-construction

Repository files navigation

Industrial Construction Demo

Platforms Node.js License

Viewer Data-Management Model-Derivative

Autodesk Platform Services sample application demonstrating features relevant to the area of industrial construction.

thumbnail

Live demo

Master branch is deployed to https://aps-industrial-construction.autodesk.io

Development

Prerequisites

Sample Data

This demo expects your 3D designs stored in APS to be named in a specific way:

<facility>-<area>-<type>.nwd

Where <facility> can be either el or montreal (these two names are currently hard-coded), <area> is an arbitrary number, and <type> is an arbitrary word describing the type of data in the design. Here's some examples:

  • el-100-electrical.nwd
  • el-200-structural.nwd
  • montreal-300-electrical.nwd
  • montreal-400-structural.nwd

With this naming, the application is able to present a matrix of checkboxes representing individual area codes and disciplines, and load their corresponding designs on demand.

You can modify the hard-coded facilities here, and the parsing of design names here.

Setup & Running

  • clone this repository
  • install dependencies: npm install
  • run server with all the required env. variables
    • for example, on macOS:
      export APS_CLIENT_ID=<client-id>
      export APS_CLIENT_SECRET=<client-secret>
      export APS_BUCKET=<bucket-name>
      export GOOGLE_MAPS_API_KEY=<api-key>
      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": {
                  "APS_CLIENT_ID": "<client-id>",
                  "APS_CLIENT_SECRET": "<client-secret>",
                  "APS_BUCKET": "<bucket-name>",
                  "GOOGLE_MAPS_API_KEY": "<api-key>",
                  "MONGODB_URL": "<mongodb-connection-string>"
              }
          }
  • go to http://localhost:3000

Deployment

Deploy

License

This sample is licensed under the terms of the MIT License.

Written by

Petr Broz (@ipetrbroz), APS Developer Advocates

About

Industrial Construction Demo:Autodesk Platform Services application demonstrating possible usage in industrial construction.

Topics

Resources

Stars

Watchers

Forks