34 lines
709 B
Markdown
34 lines
709 B
Markdown
## Installatie build123d en ocp_vscode viewer
|
|
|
|
### Creeer de virtuele omgeving
|
|
`python -m venv .ocp_venv`
|
|
|
|
### Start de virtuele omgeving
|
|
`source /home/h3n3/CAD/.ocp_venv/bin/activate`
|
|
|
|
### Download de viewer
|
|
|
|
`wget https://github.com/bernhard-42/vscode-ocp-cad-viewer/releases/download/v2.6.1/ocp_vscode-2.6.1-py3-none-any.whl`
|
|
|
|
### Installeer de programma's
|
|
|
|
`pip install build123d`
|
|
`pip install ocp_vscode-2.6.1-py3-none-any.whl`
|
|
|
|
### Start de viewer
|
|
`python -m ocp_vscode`
|
|
|
|
Open in een browser http://localhost:3939/viewer
|
|
|
|
Begin de tekening met:
|
|
```
|
|
from ocp_vscode import *
|
|
from build123d import *
|
|
|
|
set_port(3939)
|
|
```
|
|
|
|
Start de tekening:
|
|
`python de_tekening.py`
|
|
|
|
|