Revit Viewer — open Revit & IFC models in VS CodeOpen Revit models in 3D, right inside VS Code. Double-click a
✨ Features
📷 Gallery
🚀 Getting a model to viewOption A — open
|
| Action | How |
|---|---|
| Open a model | Double-click a .ifc or .rvt file (or right-click → Open With… → Revit Viewer) |
| Orbit / zoom / pan | Left-drag / scroll / right-drag |
| Select an element | Click it in 3D — or use the Elements panel |
| Hide a type | ◉ button next to its row in the Elements panel |
| Isolate a type | ⌖ button — shows only that type |
| Wireframe / grid / fit | Toolbar buttons |
🛠️ Development
npm install
npm run compile # build dist/ + media/ (esbuild)
npm run watch # rebuild on change
npm run typecheck # tsc --noEmit
npm run smoke # end-to-end test on samples/ (.rvt → IFC → real viewer, headless)
Debug: press F5 to launch the Extension Development Host, then open a .ifc file.
Regenerate the marketplace screenshots (runs the real webview UI headlessly with the FZK-Haus sample):
node scripts/screenshot.js
Package for distribution:
npx vsce package # → revit-preview-<version>.vsix
code --install-extension revit-preview-<version>.vsix
🧱 How it works
Revit (.rvt) ──rvt-wasm (local, in worker)──► IFC4 ──┐
├──web-ifc (WASM)──► three.js 3D in a VS Code webview
Revit (.rvt) ──Revit Export IFC────────────► .ifc ──┘
src/— extension host: registers the custom editors, converts.rvtin a worker thread, streams the file into the webviewwebview/— the viewer: three.js scene, web-ifc parsing, element panel, inspectorvendor/rvt-wasm/— the open-source Revit reader (rvt-rs, Apache-2.0)scripts/— screenshot harness (runs the real webview outside VS Code)
🗺️ Roadmap
- [ ] Section cut (clipping planes)
- [ ] Full property sets (psets/quantities)
- [ ] Model comparison view
📄 License
MIT — see LICENSE. Third-party: three.js (MIT), web-ifc (Apache-2.0), rvt-rs (Apache-2.0). "Revit" is a trademark of Autodesk, Inc.; this extension is independent and not affiliated with or endorsed by Autodesk.


