CAD Viewer is a free web application that lets you open and view 2D CAD drawings (DWG, DXF) and 3D models (glTF, GLB, OBJ, FBX, STL, IFC, STP, STEP, IGS, IGES) directly from Google Drive™ in the browser — no software installation required.
Live app: https://cad.thingraph.site/ Install from Google Workspace Marketplace: CAD Viewer – Google Workspace Marketplace
| Format | Description |
|---|---|
| DWG | AutoCAD Drawing — the most widely used 2D CAD format |
| DXF | Drawing Exchange Format — open CAD interchange format |
| glTF | GL Transmission Format (JSON + external .bin / textures) |
| GLB | Binary glTF — single-file, self-contained 3D model |
| OBJ | Wavefront Object — widely supported 3D mesh format |
| FBX | Autodesk Filmbox — common in animation and game pipelines |
| STL | Stereolithography — used in 3D printing and CAD |
| IFC | Industry Foundation Classes — open BIM / building model interchange |
| STP / STEP | ISO 10303 STEP — neutral CAD / 3D exchange |
| IGS / IGES | Initial Graphics Exchange Specification — neutral CAD / 3D exchange |
- High-performance 2D WebGL rendering — DWG/DXF files are parsed and rendered entirely in the browser using WebGL (Three.js), no server-side conversion needed
- Full 3D model viewer — glTF, GLB, OBJ, FBX, STL, IFC, STP, STEP, IGS, IGES with orbit, pan, zoom
- Layer management — show/hide DWG/DXF layers, manage layer visibility
- Layout switching — switch between model space and paper space layouts in multi-layout DWG/DXF files
- Measurement tools — distance, area, angle, coordinate measurements with object snapping (osnap)
- Markup & annotation — arrows, rectangles, circles, text annotations with undo/redo
- Screenshot — export high-quality PNG images of the current view
- Section plane — clip 3D models with interactive section planes
- Tree view — browse and select model hierarchy
- Skybox & ground shadow — realistic environment for 3D models
- Settings panel — customize background, rendering quality, and more
- Google Drive™ integration — open files via "Open with" directly from Google Drive™ without downloading
CAD Viewer is built on top of the @x-viewer/core and @x-viewer/plugins JavaScript SDK — a high-performance WebGL-based 2D and 3D viewer engine for the web.
The 2D DWG/DXF viewer stack is powered by cad-viewer (mlightcad), an open-source browser-based DXF/DWG viewer and editor.
@x-viewer/core is a TypeScript/JavaScript SDK for building CAD and 3D model viewer applications in the browser. It provides:
Viewer2d— a WebGL-based 2D viewer for DWG and DXF files, built on Three.jsViewer3d— a WebGL-based 3D viewer for glTF, GLB, OBJ, FBX, STL, IFC, STP, STEP, IGS, IGES, built on Three.js
Key capabilities of the SDK:
- Parse and render DWG/DXF entirely client-side (no backend/server required)
- Support for AutoCAD entity types: LINE, ARC, CIRCLE, POLYLINE, LWPOLYLINE, SPLINE, HATCH, TEXT, MTEXT, INSERT, DIMENSION, LEADER, MLEADER, ELLIPSE, SOLID, and more
- Layer control, layout switching, osnap, distance/area/angle measurements
- Markups, hotpoints, comparison mode, undo/redo
- Full TypeScript support with comprehensive type definitions
- Modular plugin architecture via
@x-viewer/plugins
npm install @x-viewer/core @x-viewer/plugins
# or
pnpm add @x-viewer/core @x-viewer/pluginsimport { Viewer2d } from '@x-viewer/core'
const viewer = new Viewer2d({ containerId: 'myCanvas' })
await viewer.setFont(['hztxt.shx', 'simplex.shx'])
await viewer.loadModel({ modelId: 'drawing', src: 'path/to/file.dwg' })
viewer.goToHomeView()import { Viewer3d } from '@x-viewer/core'
const viewer = new Viewer3d({ containerId: 'myCanvas' })
await viewer.loadModel({ modelId: 'model', src: 'path/to/model.glb' })| Package | Description |
|---|---|
@x-viewer/core |
Core viewer engine — Viewer2d and Viewer3d |
@x-viewer/plugins |
Plugin modules: toolbar, measurements, markups, tree view, skybox, section, screenshots, etc. |
- SDK examples repository: github.com/thingraph/dwg-viewer-example
- Live SDK demos: dwg.thingraph.site
- Install CAD Viewer from the Google Workspace Marketplace
- Open Google Drive™ in your browser
- Right-click a DWG, DXF, glTF, GLB, OBJ, FBX, STL, IFC, STP, STEP, IGS, or IGES file
- Choose Open with → CAD Viewer
- Sign in with Google if prompted — the app only accesses the specific file you open
- Use the toolbar to zoom, pan, measure, annotate, or export screenshots
You can also open local files directly at cad.thingraph.site/open without connecting Google Drive™.
- The app requests only
drive.fileanddrive.installOAuth scopes drive.file— read access to files you explicitly open via "Open with"drive.install— allows the app to appear in the Google Drive™ "Open with" menu- File content is processed entirely in your browser — no files are uploaded to our servers
- We do not store, index, or share your files or file metadata
- Email: thingraph@outlook.com
- GitHub: github.com/thingraph/dwg-viewer-example
Google Drive™ is a trademark of Google LLC. CAD Viewer is not affiliated with or endorsed by Google LLC