Ajout d'un script pour générer des dessins 2D pour tous les tubes
This commit is contained in:
parent
43d7036751
commit
98924d44a1
5 changed files with 348 additions and 9 deletions
16
tools/generate-2d-drawings.sh
Executable file
16
tools/generate-2d-drawings.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Set the path to your FreeCAD executable here
|
||||
FREECAD=~/dev/FreeCAD-asm3-Daily-Conda-Py3.10-20221128-glibc2.12-x86_64.AppImage
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
cd $SCRIPT_DIR/..
|
||||
|
||||
# Check script syntax before starting freecad
|
||||
python3 -m py_compile tools/generate-2d-drawings.py
|
||||
|
||||
# Start freecad to run the script. We must start freecad with GUI. We start it hidden in a virtual framebuffer (xvfb) so that it can run cleanly in the background.
|
||||
xvfb-run $FREECAD tools/generate-2d-drawings.py
|
||||
#$FREECAD tools/generate-2d-drawings.py
|
||||
Loading…
Add table
Add a link
Reference in a new issue