Code Monkey home page Code Monkey logo

bim360-projects-powerbi's Introduction

bim360-projects-powerbi

R script that uses 2-legged OAuth and BIM 360 API to extract projects' data from BIM 360 Account Administration

R PowerBI License OAuth2 BIM360

Description

This is a sample code that shows how to use R programming to extract projects' infromation from a BIM 360 Account. The output of this script is a data frame that contains the project directory data from BIM 360 Account. A good way to use this script is by importing it as a data source in Power BI Desktop to analyze BIM 360 data.

Setup

1. Create Autodesk Forge App.

  • Visit the Forge Developer Portal and sign up for an account
  • Create an App. Callback URL is not being used by this script. When asked for the 'callback URL', you can use any URL
  • Take note of the Client ID and Client Secret.

2. Add Custom Integration to BIM 360 Account

  • Log into your BIM 360 Account Admin site, https://admin.b360.autodesk.com/
  • Go to “SETTINGS” tab then to “Custom Integrations” tab
  • Click on “Add Custom Integration” button to register your app for this specific account.
  • Take note of the BIM 360 Account ID.

3. Setup R

4. Execute R script

Before executing the R script from the Export BIM360 Project Data.R file, input Client ID, Client Secret, and BIM 360 Account ID from steps 1 & 2 into lines 6, 7, and 8 of the script.

5. Execute R script in Power BI Desktop (Optional)

  • Install PowerBI Desktop: Download from https://powerbi.microsoft.com/desktop/
  • Click on Get Data and select R Script
  • Copy the R script from the Export BIM360 Project Data.R file and Paste in the Script box
  • Input Client ID, Client Secret, and BIM 360 Account ID from steps 1 & 2 into lines 6, 7, and 8 of the script.
  • Click Ok and select BIM360_Project_Data table to load it to PowerBI

Power BI Template

To test how this R script works in Power BI, downlaod the following PowerBI Template for BIM 360 Project Data.pbit

To run this template, you need Client ID, Client Secret, and BIM 360 Account ID from steps 1 & 2 in Setup and you need to setup R as per step 3 in Setup.

The successful loading of the template should show results similar to this.

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.

Written by

Sam Nseir, P.E. @samnseirpe, Autodesk Enterprise Priority Support

bim360-projects-powerbi's People

Contributors

nseirs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.