2023-02-06 10:23:22 +00:00
|
|
|
# SldwrksExporter
|
|
|
|
|
2023-02-06 11:12:43 +00:00
|
|
|
Script to generate production files (part -> step, dxf, pdf)
|
2023-02-06 10:28:57 +00:00
|
|
|
|
2023-02-06 11:11:57 +00:00
|
|
|
|
2023-02-06 11:14:52 +00:00
|
|
|
## Prerequisite:
|
2023-02-06 11:11:57 +00:00
|
|
|
- python
|
|
|
|
- (git)
|
|
|
|
|
2023-02-06 11:14:52 +00:00
|
|
|
## Install:
|
2023-02-06 11:11:57 +00:00
|
|
|
1. Get the code:
|
|
|
|
|
|
|
|
- `git clone https://git.lurenaud.com/lurenaud/SldwrksExporter.git`
|
|
|
|
|
|
|
|
2. 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`
|
|
|
|
|
|
|
|
|
2023-02-06 10:28:57 +00:00
|
|
|
## Use:
|
|
|
|
|
2023-02-06 10:58:20 +00:00
|
|
|
`.\run.py path\Part1` (without extension) will generate step, pdf and dxf in path
|
2023-02-06 10:28:57 +00:00
|
|
|
|
|
|
|
For multiple files, add them in argument
|