Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yiskang/aps-hubs-browser-with-rooms-nodejs

Sample demonstrates how to load Revit rooms from linked RVT files into the host RVT.
https://github.com/yiskang/aps-hubs-browser-with-rooms-nodejs

autodesk-data-management autodesk-model-derivative autodesk-platform-services autodesk-viewer

Last synced: 21 days ago
JSON representation

Sample demonstrates how to load Revit rooms from linked RVT files into the host RVT.

Awesome Lists containing this project

README

        

# aps-hubs-browser-with-rooms

![platforms](https://img.shields.io/badge/platform-windows%20%7C%20osx%20%7C%20linux-lightgray.svg)
[![node.js](https://img.shields.io/badge/Node.js-v20.12-blue.svg)](https://nodejs.org)
[![pnpm](https://img.shields.io/badge/pnpm-9.0.5-blue.svg)](https://pnpm.io/)
[![npm](https://img.shields.io/badge/npm-10.5.2-blue.svg)](https://www.npmjs.com/)
[![license](https://img.shields.io/:license-mit-green.svg)](https://opensource.org/licenses/MIT)

Sample demonstrates how to load Revit rooms from linked RVT files into the host RVT.

(Modified from Simple [Autodesk APS](https://aps.autodesk.com) application built by following
the [Hubs Browser](https://aps-tutorials.autodesk.io/tutorials/hubs-browser/) tutorial
from https://aps-tutorials.autodesk.io.)

![screenshot](screenshot.png)

## Development

### Prerequisites

- [APS application](https://aps.autodesk.com/en/docs/oauth/v2/tutorials/create-app)
- Provisioned access to [BIM 360 Docs](https://aps.autodesk.com/en/docs/bim360/v1/tutorials/getting-started/manage-access-to-docs/)
or Autodesk Construction Cloud
- [Node.js](https://nodejs.org) (we recommend the Long Term Support version)
- Terminal (for example, [Windows Command Prompt](https://en.wikipedia.org/wiki/Cmd.exe)
or [macOS Terminal](https://support.apple.com/guide/terminal/welcome/mac))

### Setup & Run

- Clone this repository
- Install dependencies: `pnpm install` or `npm install`
- Setup environment variables:
- `APS_CLIENT_ID` - your APS application client ID
- `APS_CLIENT_SECRET` - your APS application client secret
- `APS_CALLBACK_URL` - URL for your users to be redirected to after they successfully log in with their Autodesk account
- For local development, the callback URL is `http://localhost:8080/api/auth/callback`
- For applications deployed to a custom domain, the callback URL is `http:///api/auth/callback` or `https:///api/auth/callback`
- Do not apst to update the callback URL for your application in https://aps.autodesk.com/myapps as well
- `SERVER_SESSION_SECRET` - arbitrary phrase used to encrypt/decrypt server session cookies
- Run the server: `npm start`

> When using [Visual Studio Code](https://code.visualstudio.com),
you can specify the env. variables listed above in a _.env_ file in this
folder, and run & debug the application directly from the editor.

## Troubleshooting

Please contact us via https://aps.autodesk.com/en/support/get-help.

## License

This sample is licensed under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Please see the [LICENSE](LICENSE) file for more details.

## Written by

Eason Kang [in/eason-kang-b4398492/](https://www.linkedin.com/in/eason-kang-b4398492), [Developer Advocacy and Support Team](http://aps.autodesk.com)