OCP CAD Viewer for VSCode
Actively maintained. Last release 1 day ago, commits in 19 of the last 26 weeks. A safe choice.
pip install ocp-vscodeREADME as published on PyPI with version 4.4.0.
OCP CAD Viewer for VS Code
OCP CAD Viewer for VS Code is an extension to show CadQuery and build123d objects in VS Code via the three-cad-viewer viewer component.

A typical session is just a few lines of Python:
# build123d
from build123d import Box
from ocp_vscode import show
show(Box(1, 2, 3))
# CadQuery
import cadquery as cq
from ocp_vscode import show
show(cq.Workplane().box(1, 2, 3))
Installation
Prerequisites
- Microsoft VS Code, 1.85.0 or newer
- The Python extension installed in VS Code
- Necessary tools:
pythonandpiporuv pip/uv addavailable in the Python environment that will be used for CAD development.
Notes:
- To use OCP CAD Viewer, start VS Code from the commandline in the Python environment you want to use or select the right Python interpreter in VS Code first. OCP CAD Viewer depends on VS Code using the right Python interpreter (i.e. mamba / conda / pyenv / poetry / ... environment).
- For VSCodium, the extension is not available in the VS code market place. You need to download the the vsix file from the release folder and install it manually.
Installation within VS Code
-
Open the VS Code Marketplace, and search and install OCP CAD Viewer 4.4.0.
Afterwards the OCP viewer is available in the VS Code sidebar:




