Giter VIP home page Giter VIP logo

comphound.github.io's Introduction

CompHound – Component Tracker

This is the CompHound project main landing page.

CompHound is a cloud-based universal component and asset usage analysis, reporting, bill of materials, visualisation and navigation project providing sample code for two presentations on connecting the desktop with the cloud at RTC Europe in Budapest end of October and Autodesk University in Las Vegas in December.

It currently consists of two parts:

This project is based on and derived from the node.js mongodb web server for the FireRating in the Cloud sample, consisting of the FireRatingCloud C# .NET REST API client Revit add-in and the fireratingdb Node.js mongoDB web server.

In addition to that, this project also sports a user interface, including report, bill of material, Autodesk View and Data API 2D and 3D model analysis, viewing and navigation functionality.

You can try it out live and read the detailed articles describing the entire project implementation and evolution below.

Try it out Live

You can explore this app up and running live.

Here is the mongolab-hosted database that we are using: mongolab.com/databases/comphound.

It contains the collection of component instances. The only occurrences that I exported so far are from the standard Revit sample file rst_advanced_sample_project.rvt. You can add more yourself by running the CompHoundRvt add-in in any other Revit BIM of your choice.

The node.js web server driving the database via mongoose is hosted on Heroku, and its URL is https://comphound.herokuapp.com.

Its REST API is accessible via the route /api/v1.

/api/v1/instances should in theory return all database entries, but it will fail with an application error due to too large data.

From version 0.0.25 onwards, the REST API route /api/v1/auth provides access to the View and Data API authorisation token.

However, you can use /api/v1/instances/:id to retrieve the JSON document for a single specific entry.

Finally, it sports the beginnings of a user interface that currently provides the following access points:

  • / – say hello.
  • /hello/:message – reply with the message passed in.
  • /html/count – return the number of database entries.
  • /www/instances1 – list all the database entries in a table – this can take a long time.
  • /datatable2 – display a datatable navigation interface through the instance records.

In the long run, most of these access points can be shut down again.

Instead, one single main index entry point will display the datatable listing the component occurrences as well as provide access to the still missing reporting, viewing and model navigation functionality.

Further Reading

The following discussions by The 3D Web Coder and The Building Coder describe the entire project implementation and evolution:

Author

Jeremy Tammik, The Building Coder and The 3D Web Coder, ADN Open, Autodesk Inc.

License

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

comphound.github.io's People

Stargazers

Chandler Zhang avatar Philip Bussey avatar

Watchers

James Cloos avatar Adam E Nagy avatar Jeremy Tammik avatar  avatar

Forkers

colinchou123

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.