Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>OCP CAD ViewerNew to Visual Studio Code? Get it now.
OCP CAD Viewer

OCP CAD Viewer

Bernhard Walter

|
158 installs
| (0) | Free
An integrated OCP CAD viewer for CadQuery and build123d
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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 three-cad-viewer

Installation

Prerequisites

  • A fairly recent version of VS Code, e.g. 1.76.0 or newer
  • Python extension installed in VS Code
  • Python and pip available in the Python enviroment that will be used for CAD development (with conda the minimum is conda create -n ocp python=3.9)

Steps:

  • Open the VS Code Marketplace, and search and install OCP CAD Viewer 1.0.0.

    Afterwards the OCP viewer is available in the VS Code sidebar:

  • Install ocp_vscode via the blue button in the welcome screen of the "Viewer Manager" or by pressing the green down-arrow in the "Library Manager" section of the OCP CAD Viewer sidebar

    Afterwards, the "Viewer Manager" and the "Library Manager" show the loaded libraries:

  • Additionally, you can use the OCP CAD Viewer sidebar to manage the Python libraries for build123d, cadquery, ipython and ocp_tessellate

    • Install the needed library by pressing the green down-arrow behind the library name in the "Library Manager" section of the OCP CAD Viewer sidebar

    More details, see here

Usage

Using with VS Code Run menu

  • Start the OCP CAD Viewer by pressing the green box-arrow button in the "Viewer Manager" section of the OCP CAD Viewer sidebar
  • Import ocp_vscode and the CAD library by using the paste button behing the library names in the "Viewer Manager" section
  • Use the usual Run menu to run the code

Use with run

Extra topics

  • Use the ipython extension
  • Use the show command
  • Use the show_object command
  • Download examples for build123d or cadquery
  • Use the build123d snippets
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft