Script to generate production files (part -> step, dxf, pdf)
installFromZeroScript | ||
sample_parts | ||
scripts | ||
.gitignore | ||
gui.py | ||
install.ps1 | ||
README.md | ||
requirements.txt | ||
run.ps1 |
SldwrksExporter
Script to generate production files (part -> step, dxf, pdf)
Prerequisite:
- python (to install type python in terminal, it will open the windows store to install it)
- git (install:
winget install --id Git.Git -e --source winget
)
Automatic install
will dowwnload the git repo, install everything and launch the program.
copy paste this line in an Administrator powershell or windows terminal
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned; curl -o installFrom0.cmd https://git.lurenaud.com/lurenaud/SldwrksExporter/raw/branch/main/installFromZeroScript/installFrom0.cmd; .\installFrom0.cmd
Manual 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 problems:
- Cannot activate venv, script : in an admin terminal run
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Use:
In terminal: .\gui.py path\toFloderOfFiles
will generate step, pdf and dxf in a export folder
Double click the gui.py file