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-07 16:47:10 +00:00
- python (to install type python in terminal, it will open the windows store to install it) (or: `curl -o python.exe https://www.python.org/ftp/python/3.11.1/python-3.11.1-amd64.exe; python.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0` )
2023-02-06 18:42:56 +00:00
- git (install: `winget install --id Git.Git -e --source winget` )
2023-02-06 11:11:57 +00:00
2023-02-06 18:42:56 +00:00
## Automatic install
will dowwnload the git repo, install everything and launch the program.
2023-02-07 16:44:33 +00:00
copy paste this line in an **Administrator** powershell or windows terminal
2023-02-07 18:49:32 +00:00
`curl -o installFrom0.cmd https://git.lurenaud.com/lurenaud/SldwrksExporter/raw/branch/main/installFromZeroScript/installFrom0.cmd; .\installFrom0.cmd`
2023-02-06 18:42:56 +00:00
## Manual 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`
2023-02-06 18:42:56 +00:00
## Common problems:
2023-02-06 19:09:18 +00:00
- Cannot activate venv, script : in an admin terminal run `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned`
2023-02-06 11:11:57 +00:00
2023-02-06 10:28:57 +00:00
## Use:
2023-02-06 18:42:56 +00:00
In terminal: `.\gui.py path\toFloderOfFiles` will generate step, pdf and dxf in a export folder
Double click the gui.py file
2023-02-07 18:49:32 +00:00
# Generate exe file
Using auto-py-to-exe
`pip install auto-py-to-exe`
Works in single file but need to add the ps1 and ddl files in the same directory