Skip to content
Selected work

BIM Virtual Assistant

Building models in 3D in the browser: upload a model, explore it in the Autodesk viewer, and ask a chat about its walls, doors, windows and rooms.

The viewer with an apartment block model in x-ray and one room highlighted, a side panel counting levels, walls, doors, windows and rooms, and a chat answering how many windows the model has and how big the room is
The viewer on a phone, with the apartment block model and the touch toolbar above the project name, the upload button and the model list
Role
Developer, then rebuilt solo
Year
2020 to 2026
Stack
  • Nuxt 2
  • Vue 2
  • Bootstrap Vue
  • Firebase Auth
  • Cloud Firestore
  • Netlify Functions
  • Autodesk Platform Services
  • Dialogflow
Live site
bim-virtual-assistant.netlify.app(opens in a new tab)

BIM Virtual Assistant shows building information models (BIM) in the browser and answers questions about them. You sign up, create a project for a building, upload a model file (Revit, IFC, Navisworks, DWG and other formats) and explore it in the Autodesk viewer. A side panel counts the levels, walls, doors, windows and rooms and lists each room's floor area, and a chat answers questions such as how many windows the model has or how big a room is, highlighting what it talks about in the viewer. The demo account holds four sample buildings: an apartment block, a medical and dental clinic, a house and a duplex's mechanical systems.

What I built

The app began in 2020 as a team project for a class, with a product owner, and I brought it into my own repository in 2021. By 2026 it no longer worked: its server code was Express middleware that never runs on a static host, it signed in to Autodesk Forge with a method Autodesk has retired and keys that no longer worked, and it stored passwords in its database. I rebuilt it on my own: a new Firebase project with rules that keep each user's data to themselves, the Autodesk calls moved into Netlify Functions on the current sign-in, an upload flow the first version never had, answers for the chat and a new interface.

How it is built

The site is Nuxt 2 with Vue 2 and Bootstrap Vue, generated as static pages and hosted on Netlify, with Firebase Authentication and Cloud Firestore for accounts and projects. Six Netlify Functions talk to Autodesk Platform Services: they issue a viewer token that can only read, list a project's models, sign uploads, start translations and fetch thumbnails. Each project is a storage bucket on Autodesk's side, and its models are listed from there rather than copied into the database. A model file goes from the browser straight to Autodesk's storage, the Model Derivative service translates it for the viewer, and the app checks until it is ready.

The hard parts

The functions had to be safe without a database on the server or Firebase's admin library. Each one verifies the caller's Firebase ID token itself, checking its signature against Google's rotating certificates and then its audience, issuer and expiry. A bucket's name is a salted hash of the verified user and the project, worked out on the server, so a request can only ever reach the caller's own models.

Anyone can look around without signing up: a demo account opens the sample project in one click. The functions and the security rules refuse to create, upload or delete anything for it, so a visitor cannot spend the Autodesk allowance or change what the next visitor sees. Firebase lets a signed-in user change their own email and password, which no rule can stop, so a scheduled function puts the demo account's sign-in back every hour.

Netlify Functions accept requests of at most 6 MB, and building models are often much larger. A function asks Autodesk for signed upload addresses, one for each 16 MB part, the browser sends the parts straight to storage with a progress bar, and a second call completes the upload and starts the translation.

The chat's Dialogflow agent recognizes questions about the model but has no code behind it to answer them, so the app reads the viewer's property data once and answers in the browser. A door or a window is several nodes in that tree, so counting every node gave one door instead of 126; the app counts a node only when its parent is not the same kind of element. Rooms come from their number property, areas from Autodesk's unit strings, and the camera frames the building by its doors and windows instead of the whole site around it. Each sample model holds something different, a clinic with 269 rooms, a house with none, a duplex of ducts and pipes with no walls at all, so the summary and the chat count whatever the model has (slabs, columns, beams, ducts, pipes, fittings and fixtures too) and suggest questions from it.

Stack

Nuxt 2, Vue 2, Vuex and Bootstrap Vue. Firebase Authentication and Cloud Firestore. Netlify Functions on Autodesk Platform Services (authentication, object storage and Model Derivative) and the Autodesk Viewer. Dialogflow for the chat. The sample models are open IFC files: the apartment block and the house from André Wisén's BIM Whale samples (MIT license), and the clinic and the duplex from buildingSMART International's Medical-Dental and Duplex Apartment test files (BSI 2020, CC BY 4.0).

How it fits together
  1. Viewer and chatNuxt 2, Autodesk Viewer
  2. Netlify FunctionsCheck the Firebase token
  3. Autodesk APSStorage, translation

Screens

  • The projects page of the demo account, with model previews of an apartment block, a medical and dental clinic, a house and a duplex's mechanical systems, each ready to view, and an empty project
  • The viewer with the clinic model in x-ray and one waiting room highlighted, a summary of 4 levels, 1,080 walls, 254 doors, 58 windows and 269 rooms, and the chat answering how many windows there are and how big the room is
  • The viewer with a duplex's ducts and pipes inside its translucent rooms, a summary with no walls, doors or windows and 42 rooms, and the chat answering that the model has 427 duct and pipe segments
  • The viewer on a phone, with the apartment block model and the touch toolbar above the project name, the upload button and the model list
    The home page on a phone, with the menu button, the headline, the Try the demo and Create an account buttons and the start of a viewer screenshot of the apartment block

Next projectXService

A service desk for a car repair shop: guests open tickets with a VIN lookup, customers follow their repairs, and admins run tickets, people and roles.

The admin dashboard with tiles for open tickets, services in progress, issues and closed tickets, a list of recent tickets with progress bars, and charts of service statuses and tickets per day