{"id":20382641,"url":"https://github.com/autodesk-forge/bim360appstore-model.derivative-nodejs-xls.exporter","last_synced_at":"2025-04-12T08:53:52.225Z","repository":{"id":23977965,"uuid":"99612011","full_name":"Autodesk-Forge/bim360appstore-model.derivative-nodejs-xls.exporter","owner":"Autodesk-Forge","description":"BIM360 data to Excel: Let you export the Revit data, hosted on BIM360, into an Excel file","archived":false,"fork":false,"pushed_at":"2023-07-11T01:15:22.000Z","size":31146,"stargazers_count":23,"open_issues_count":16,"forks_count":23,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-12T08:53:47.862Z","etag":null,"topics":["javascript","nodejs","spreadsheet"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Autodesk-Forge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-08-07T19:21:48.000Z","updated_at":"2024-04-23T17:39:54.000Z","dependencies_parsed_at":"2023-10-20T18:08:11.416Z","dependency_job_id":null,"html_url":"https://github.com/Autodesk-Forge/bim360appstore-model.derivative-nodejs-xls.exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk-Forge%2Fbim360appstore-model.derivative-nodejs-xls.exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk-Forge%2Fbim360appstore-model.derivative-nodejs-xls.exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk-Forge%2Fbim360appstore-model.derivative-nodejs-xls.exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk-Forge%2Fbim360appstore-model.derivative-nodejs-xls.exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Autodesk-Forge","download_url":"https://codeload.github.com/Autodesk-Forge/bim360appstore-model.derivative-nodejs-xls.exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543882,"owners_count":21121838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","nodejs","spreadsheet"],"created_at":"2024-11-15T02:18:27.301Z","updated_at":"2025-04-12T08:53:52.204Z","avatar_url":"https://github.com/Autodesk-Forge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Export to Excel with Model Element Data\n\n![Platforms](https://img.shields.io/badge/platform-Windows|MacOS-lightgray.svg)\n[![License](http://img.shields.io/:license-MIT-blue.svg)](http://opensource.org/licenses/MIT)\n\n[![oAuth2](https://img.shields.io/badge/oAuth2-v1-green.svg)](https://forge.autodesk.com/en/docs/oauth/v2/developers_guide/overview/)\n[![Data-Management](https://img.shields.io/badge/Data%20Management-v1-green.svg)](https://forge.autodesk.com/api/data-management-cover-page/)\n[![Model-Derivative](https://img.shields.io/badge/Model%20Derivative-v2-red.svg)](https://forge.autodesk.com/api/model-derivative-cover-page/)\n[![Viewer](https://img.shields.io/badge/Viewer-v7-blue.svg)](https://forge.autodesk.com/api/viewer-cover-page/)\n\n### Thumbnail\n\n![thumbnail](/DataToExcel.png)\n\n### Demo Video\n![thumbnail](/thumbnail.gif)\n\n# Description\n\nThis sample application demonstrates how to extract metadata of model on your Autodesk360, BIM360 or Autodesk Construction Cloud(ACC) account, into an excel spreadsheet.  The sample code demonstates 3-legged OAuth, a simple viewer extension and code to handle  meta-data and format it into an excel spreadsheet file.\n\nIn the project tree of this sample, Autodesk360, BIM360 and ACC project are listed with different icons.\n\n   \u003cp align=\"center\"\u003e\u003cimg src=\"/project_icon.png\" width=\"200\" \u003e\u003c/p\u003e \n\n### Live version\n\n[https://forge-exportxls.autodesk.io](https://forge-exportxls.autodesk.io/)\n\nVideo: [Youtube](https://youtu.be/800d2xmQl0s)\n\n# Setup\n\nFor using this sample, you need to log into your Autodesk developer account. Visit the [Forge Developer Portal](https://developer.autodesk.com) and sign up for an account, then [create an app](https://developer.autodesk.com/myapps/create). When asked for the 'callback URL' in your new app, use **http://localhost:3000/api/forge/callback/oauth**. Finally take note of the **Client ID** and **Client Secret**.\n\n### Run locally\n\nInstall [NodeJS](https://nodejs.org).\n\nClone this project or download it. It's recommended to install [GitHub desktop](https://desktop.github.com/). To clone it via command line, use the following (**Terminal** on MacOSX/Linux, **Git Shell** on Windows):\n\n    git clone https://github.com/Autodesk-Forge/forge-exportxls\n\nTo run it, install the required packages, set the enviroment variables with your client ID \u0026 secret and finally start it. Via command line, navigate to the folder where this repository was cloned and use the following:\n\nMac OSX/Linux (Terminal)\n\n    npm install\n    export FORGE_CLIENT_ID=\u003c\u003cYOUR CLIENT ID FROM FORGE DEVELOPER PORTAL\u003e\u003e\n    export FORGE_CLIENT_SECRET=\u003c\u003cYOUR FORGE CLIENT SECRET\u003e\u003e\n    npm run dev\n\nWindows (use \u003cb\u003eNode.js command line\u003c/b\u003e from Start menu)\n\n    npm install\n    set FORGE_CLIENT_ID=\u003c\u003cYOUR CLIENT ID FROM FORGE DEVELOPER PORTAL\u003e\u003e\n    set FORGE_CLIENT_SECRET=\u003c\u003cYOUR FORGE CLIENT SECRET\u003e\u003e\n    npm run dev\n\nOpen the browser: [http://localhost:3000](http://localhost:3000).\n\n**Important:** do not use **npm start** locally, this is intended for PRODUCTION only with HTTPS (SSL) secure cookies.\n\n### Deploy on Heroku\n\nTo deploy this application to Heroku, the **Callback URL** \u0026 **redirect_uri** must use your .herokuapp.com address. After clicking on the button below, at the Heroku Create New App page, set your Client ID \u0026 Secret and the correct callback URL.\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\nWatch [this video](https://www.youtube.com/watch?v=Oqa9O20Gj0c) on how deploy this sample to Heroku.\n\n## Packages used\n\nAll Autodesk Forge NPM packages are included by default, see complete list of what's available at [NPM website](https://www.npmjs.com/browse/keyword/autodesk). OAuth, Model Derivative and OSS are used. Some other non-Autodesk packaged are used, including [express](https://www.npmjs.com/package/express) and its session/cookie middlewares ([express-session](https://www.npmjs.com/package/express-session) and [cookie-parser](https://www.npmjs.com/package/cookie-parser)) for user session handling. The front-end uses [bootsrap](https://www.npmjs.com/package/bootstrap) and [jquery](https://www.npmjs.com/package/jquery).\n\n# Tips \u0026 tricks\n\nFor local development/testing, consider use [nodemon](https://www.npmjs.com/package/nodemon) package, which auto restart your node application after any modification on your code. To install it, use:\n\n    sudo npm install -g nodemon\n\nThen, instead of \u003cb\u003enpm run dev\u003c/b\u003e, use the following:\n\n    npm run nodemon\n\nWhich executes **nodemon server.js --ignore www/**, where the **--ignore** parameter indicates that the app should not restart if files under **www** folder are modified.\n\n## Troubleshooting\n\n1. **getProperties does not return data**: In default, [Get Properties endpoint](https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/urn-metadata-guid-properties-GET/) can only respond with data if the resource \u003c 20M. A query param **forceget** forces get the large resource even if it exceeded the expected maximum length (20 MB). \n\n2. **Cannot see my BIM 360 or ACC projects**: Make sure to provision the Forge App Client ID within the BIM 360 or ACC Account, [learn more here](https://forge.autodesk.com/blog/bim-360-docs-provisioning-forge-apps). This requires the Account Admin permission.\n\n3. **Cannot load Autodesk360 model**: In Autodesk360, the model is not translated by default until the end user loads the model one time in Autodesk360, or the developer posts job to translate. \n\n4. **error setting certificate verify locations** error: may happen on Windows, use the following: `git config --global http.sslverify \"false\"`\n\n\n## Blogs\n\n- [Forge Blog](https://forge.autodesk.com/categories/bim-360-api)\n- [Field of View](https://fieldofviewblog.wordpress.com/), a BIM focused blog\n- [Autodesk Construction Cloud Unified Products: Does it Affect My Application?](https://forge.autodesk.com/blog/autodesk-construction-cloud-unified-products-does-it-affect-my-application)\n- [Autodesk Build and Other Autodesk Construction Cloud Unified Products Launch](https://forge.autodesk.com/blog/autodesk-build-and-other-autodesk-construction-cloud-unified-products-launch)\n\n# License\n\nThis sample is licensed under the terms of the [MIT License](http://opensource.org/licenses/MIT).\nPlease see the [LICENSE](LICENSE) file for full details.\n\n## Written by\n\nDeveloper Advocate and Support, Autodesk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautodesk-forge%2Fbim360appstore-model.derivative-nodejs-xls.exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautodesk-forge%2Fbim360appstore-model.derivative-nodejs-xls.exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautodesk-forge%2Fbim360appstore-model.derivative-nodejs-xls.exporter/lists"}