Script to generate production files (part -> step, dxf, pdf)
sample_parts | ||
.gitignore | ||
export-file.cmd | ||
export-file.ps1 | ||
export-pdf-dxf.ps1 | ||
export-step.ps1 | ||
gui.py | ||
README.md | ||
requirements.txt | ||
run.py | ||
runSimple.py | ||
SolidWorks.Interop.sldworks.dll |
SldwrksExporter
Script to generate production files (part -> step, dxf, pdf)
Prerequisite:
- python
- (git)
Install:
- Get the code:
git clone https://git.lurenaud.com/lurenaud/SldwrksExporter.git
- Setup python env
- create venv
python -m venv .venv
- activate environement
.venv\Script\Activate.ps1
- install requirements
pip install -r requirements.txt
Common errors:
- Cannot activate venv, script : in an admin terminal run
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Use:
.\run.py path\Part1
(without extension) will generate step, pdf and dxf in path
For multiple files, add them in argument