-
-
Notifications
You must be signed in to change notification settings - Fork 72
FAQ
Welcome to the FAQ page!
Here you’ll find answers to common questions and troubleshooting tips about CAD-Viewer. If your question isn’t covered here, please open an issue or start a discussion.
CAD-Viewer is an open-source DWG/DXF file viewer that runs directly in your browser — no installation required.
It provides features such as zoom, pan, layer control, entity selection, and layout switching, enabling users to explore CAD drawings easily.
This project is maintained by the mlightcad team and contributors from the open-source community.
You can find all contributors on the GitHub Contributors page.
CAD-Viewer is released under the MIT License.
See the LICENSE file for full details.
Currently supported formats:
- DWG: decided by libredwg. According to its document, it supports AutoCAD r1.2 through AutoCAD 2018.
- DXF: decided by dxf-json which doesn't introduce the AutoCAD version supported yet.
CAD-Viewer currently focuses on 2D drawings. 3D viewing support is planned for future releases.
❓ Does it support DWG files created by AutoCAD vertical products such as AutoCAD Architecture, AutoCAD Mechanical, AutoCAD MEP, AutoCAD Map 3D, AutoCAD Plant 3D, AutoCAD Civil 3D, and Tianzheng Architecture (天正建筑)?
CAD-Viewer supports rendering the standard AutoCAD entities. If drawings created by those AutoCAD vertical products contain some custom entities, those custom entities will not be rendered. However, the standard entites in those drawing can be shown correctly.
- Tables entities are not currently supported in DWG files because LibreDWG is used to read DWG files and it doesn't support table entity yet. If one table is created by line and polyline entities, definitely it is supported.
- XRefs (External references) are not supported in both DWG and DXF and will not be displayed.
✅ Yes, CAD-Viewer supports:
- Layer visibility control
- Block references
- Layout switching (Model / Paper space)
Ensure opening VPN if you are in China. You can try to open font repository in browser. If you can't open this repository, it should be your network issue.
If some of texts are shown incorrectly. It may occur due to missing fonts in DWG/DXF. CAD-Viewer use default fonts to display texts or characters in this case. There are two ways to handle it.
- Create one pull request to font repository and add your fonts to this repository.
- Host font repository in your own server. Please refer to this wiki page to learn hwo to deploy fonts on your own server.
if all of texts are not shown, please open 'Developer Tools' in browser and delete font cache database named 'mlightcad' in IndexedDB and refresh page again.

❓ What is the dependency relationship between @mlightcad/cad-simple-viewer and @mlightcad/data-model?
@mlightcad/cad-simple-viewer depends on @mlightcad/data-model for core CAD data structures and runtime behavior.
However, @mlightcad/cad-simple-viewer does NOT guarantee compatibility with all versions of @mlightcad/data-model.
If you upgrade @mlightcad/data-model independently (for example, using @mlightcad/data-model@1.7.0 together with @mlightcad/cad-simple-viewer@1.4.7), you may encounter runtime errors due to internal API or data structure changes.
When using a specific version of @mlightcad/cad-simple-viewer, always:
- Check the revision history of its
package.json
👉 https://github.com/mlightcad/cad-viewer/blob/main/packages/cad-simple-viewer/package.json - Use the exact same version of
@mlightcad/data-modeldeclared there.
This ensures the two packages remain compatible and avoids subtle runtime issues.
In short:
Treat@mlightcad/cad-simple-viewerand@mlightcad/data-modelas a version-locked pair.
Yes. CAD-Viewer is licensed under the MIT License, allowing both personal and commercial use.
Please include a reference such as:
“Powered by CAD-Viewer”
For questions or suggestions, you can reach us through:
- GitHub Issues: https://github.com/mlightcad/cad-viewer/issues
- Discussions: https://github.com/mlightcad/cad-viewer/discussions
If you discover a new common question, please help improve this FAQ by submitting a pull request!