701

(234 replies, posted in News)

This morning I updated my Windows 10 to last updates on my old laptop, after many reboots, I have idea to check last 0.100-devel QET version, wow !!!
Elements collection finished to be loaded in 1.23 seconds

You could confirm it?

Édition    Windows 10 Professionnel
Version    22H2
Installé le    10/03/2021
Build du système d’exploitation    19045.3930
Expérience    Windows Feature Experience Pack 1000.19053.1000.0
12:50:33.534 Info: "QElectroTech V 0.100.0-dev" 
12:50:33.535 Info: "Compilation : GCC 11.4.0" 
12:50:33.535 Info: "Built with Qt 5.15.11 - x86_64 - Date : Dec 21 2023 : 15:57:17" 
12:50:33.535 Info: "Run with Qt 5.15.11 using 8 thread(s)" 
12:50:33.536 Info: "CPU : NAME                                      \r\r\nINTEL(R) CORE(TM) I7-8550U CPU @ 1.80GHZ  \r\r\n\r\r\n" 
12:50:33.536 Info: "RAM Total : 16 GB" 
12:50:33.536 Info: "RAM Available : 11 GB" 
12:50:33.537 Info: "GPU : VideoProcessor                \r\r\nIntel(R) UHD Graphics Family  \r\r\n\r\r\n" 
12:50:33.537 Info: "GPU RAM : RAM Total : AdapterRAM  \r\r\n1073741824  \r\r\n\r\r\n B" 
12:50:33.538 Info: "OS : winnt  - x86_64 - Version : Windows 10 Version 2009 - Kernel : 10.0.19045" 
12:50:33.538 Info: *** Qt screens *** 
12:50:33.538 Info: "( 1 : 3840 x 2160 )" 
12:50:33.539 Info: DISK : C:/   
12:50:33.540 Info: FileSystemType: "NTFS" 
12:50:33.540 Info: SizeTotal: 66 GB 
12:50:33.541 Info: AvailableSize: 9 GB 
12:50:33.542 Info: DISK : D:/   
12:50:33.542 Info: FileSystemType: "NTFS" 
12:50:33.543 Info: SizeTotal: 20 GB 
12:50:33.543 Info: AvailableSize: 0 GB 
12:50:33.545 Info: DISK USED: C:/   
12:50:33.545 Info: FileSystemType: "NTFS" 
12:50:33.546 Info: SizeTotal: 66 GB 
12:50:33.547 Info: AvailableSize: 9 GB 
12:50:34.706 Info: Elements collection finished to be loaded in 1.23 seconds 

702

(8 replies, posted in Videos howto)

Siemens Logo is in QET collection -> https://download.qelectrotech.org/qet/e … index.html
https://download.qelectrotech.org/qet/elements/10_electric/20_manufacturers_articles/siemens/01_PLC_controllers/logo/siemenslogo230rce.svg

Hi,
see https://qelectrotech.org/forum/viewtopic.php?id=1946

Hello Flix,

thanks for compliments. nomicons/wink

Yes on https://download.qelectrotech.org/qet/schemas_pdf/ You see many schemes drawn by many authors and a little by me with QET software.

Best regards,
Laurent

A BOM page must not contain any schemes..
https://qelectrotech.org/forum/viewtopi … 256#p16256

707

(96 replies, posted in Scripts)

Just for record:

#!/bin/bash
 
# to be able to process blanks in file names - remember original state:
OFS=$IFS
# set new:
IFS="
"

 
BaseDir="qelectrotech-elements"
 
for d in `find $BaseDir -type d | sort`; do
  echo "processing directory $d"
  # html-Header:
  echo "<html><body>" > $d/index.html
  echo '<li><a href="../index.html">&larr;  Parent Directory </a></li><br><li><button class="spectrum-Button spectrum-Button--sizeM spectrum-Button--cta svelte-1gv5n3y cd17fc8d794774a44aa5bbe652ad93894-dom" onclick="history.back()">Back return</button></li>'  >> $d/index.html
  # Unterverzeichnisse auflisten:
  for sd in `find $d -maxdepth 1 -type d | sort`; do
    if [[ "$d" == "$sd" ]] ; then
      continue
    fi
    echo "sub-dir: $sd"
    echo "<a href=\"`basename $sd`/index.html\">`basename $sd`</a><br>" >> $d/index.html
  done
  # SVG-Dateien auflisten:
  for f in  `find $d -maxdepth 1 -name "*.svg" | sort` ; do
    echo "file: `basename $f`"
    svgdatei=`basename $f`
    elmtdatei="${svgdatei%.svg}.elmt"
    echo "<a href=\"$elmtdatei\" download>${svgdatei%.svg}<br> <img src=\"$svgdatei\" /></a><br><br>" >> $d/index.html
  done
  # html-Footer:
  echo "<li><a href="../index.html">&larr;  Parent Directory </a></li><br><a href="#" class="btn btn-default">Back to top ↑</a>" >> $d/index.html
  echo "</body></html>" >> $d/index.html
  echo ""
done
 
# blanks in filenames - back to original:
IFS=$OFS
# DONE!

708

(209 replies, posted in Import DXF)

Smurfeous wrote:

I have tried installing the windows executable. I unzip the file, run the program, click "install anyway" to the windows security message. When I try importing a DXF into the Element Editor it still says "Third party software required". The installation folder is empty.


QElectroTech V 0.90+c7891bc4cb0a58100c957a06d79751d3

https://qelectrotech.org/forum/viewtopi … 112#p17112

achim wrote:

Hi Joel

C:\Users\"user"\Application Data\qet\binary
I think you have to create the folder by yourself

Achim

Voir peut-etre ici: https://qelectrotech.org/forum/viewtopi … 256#p16256

https://qelectrotech.org/forum/viewtopi … 344#p19344

Bonjour,

non! on ne peux pas inverser les lignes( lettres)/colonnes(chiffres) des folios, c'est codé en dur dans le code, ça ne gène en rien un électricien qui sait lire un schéma:

https://forum-photovoltaique.fr/viewtop … e7dfa9c383
https://forum.gce-electronics.com/t/qel … px/3962/85

Control + mouse permet un déplacement fin
de même
ALT + moving keys permet aussi un déplacement aussi fin, voir plus. Suivant le réglage de la grille dans la page contrôle.

Bonjour,

https://download.qelectrotech.org/qet/forum_img_2/grille_clavier_config.png

Hello Tiz,
change element in collection police size, you need to change for these elements also the UUID/
Put these element in other directory:
see my script bash linux
https://download.qelectrotech.org/qet/s … en_uuid.sh

After you re drad and dropt this element un menu appair chose owervrite all elements placed by the news.

Other workatound it 's to edit XML .qet file.Please backup your projects before try.

714

(36 replies, posted in Bar Fourre-tout)

Ou dans la collection-contrib
https://github.com/qelectrotech/qelectr … nt-contrib


https://download.qelectrotech.org/qet/e … index.html

Cordialement,
Laurent

715

(36 replies, posted in Bar Fourre-tout)

Bonjour dans la collection officielle:
https://download.qelectrotech.org/qet/e … index.html

716

(209 replies, posted in Import DXF)

Hello Hamish,

thank you for your support.

I think your MAC is an Intel processor so x86_64, now Apple is releasing an Apple silicon chip "M1, M2, M3" it's like your smartphone an ARM64 chip so the code compiled on X86_64 doesn't work directly but emulated with roseta 2 the code can work more slowly with sometimes bugs, on the other hand the code compiled on arm64 environment can't work on an intel processor...


So use https://download.qelectrotech.org/qet/b … .0/osx_64/ on Intel Mac.

Best regards
Laurent

717

(130 replies, posted in Bar Fourre-tout)

Nice tip, thanks.

Importing and exporting files in UserLAnd:
https://github.com/CypherpunkArmory/Use … n-UserLAnd
Running Linux apps on Android without rooting your phone:
Printing with CUPS does not immediately work either.
https://www.linux-magazine.com/Issues/2 … (offset)/3

719

(130 replies, posted in Bar Fourre-tout)

The electrical horn wouldn't be a problem with us, we've got quite a few in our shop, but you'd have to fiddle with it and add a battery...

I love your bike, which is very well organised. Unfortunately, that's not possible in our site, where we'd need around 25 of them for each electrician and mechanic guys, and the factory is several hectares in size and has several floors...

That's why I carry more than ten kilos of tools with me... like a cowboys or special force, and I walk an average of ten kilometres per 8-hour shift...

Unfortunately I'm now broken all over, and I'll have to make do with a desk job...
I'm no longer healthy enough to work 5x8 after 35 years in 4x8 and 5x8, or to be on the front line.



I have seriously been considering getting one of these Impact Train Horns,

lol nomicons/smiley-green

720

(96 replies, posted in Scripts)

Added automatic download element file when you click on *.elmt link text.

- echo "<a href=\"$elmtdatei\">${svgdatei%.svg}<br> <img src=\"$svgdatei\" /></a><br>" >> $d/index.html
+echo "<a href=\"$elmtdatei\" download>${svgdatei%.svg}<br> <img src=\"$svgdatei\" /></a><br>" >> $d/index.html

Added return to history back button:

echo '<li><a href="../index.html">Parent Directory </a></li><br><br><li><button class="spectrum-Button spectrum-Button--sizeM spectrum-Button--cta svelte-1gv5n3y cd17fc8d794774a44aa5bbe652ad93894-dom" onclick="history.back()">Back return</button></li><br>'  > $d/index.html

Bonjour,

tu dois facilement importer une feuille de calcul Libreoffice, comme dans cette video.

722

(96 replies, posted in Scripts)

Added the back button to the parent directory, to make navigation easier.


<a href="../index.html">Parent Directory </a><br>
#!/bin/bash
 
# to be able to process blanks in file names - remember original state:
OFS=$IFS
# set new:
IFS="
"

 
BaseDir="qelectrotech-elements"
 
for d in `find $BaseDir -type d | sort`; do
  echo "processing directory $d"
  # html-Header:
  echo "<html><body>" > $d/index.html
  echo "<a href="../index.html">Parent Directory </a><br>"  > $d/index.html
  # Unterverzeichnisse auflisten:
  for sd in `find $d -maxdepth 1 -type d | sort`; do
    if [[ "$d" == "$sd" ]] ; then
      continue
    fi
    echo "sub-dir: $sd"
    echo "<a href=\"`basename $sd`/index.html\">`basename $sd`</a><br>" >> $d/index.html
  done
  # SVG-Dateien auflisten:
  for f in  `find $d -maxdepth 1 -name "*.svg" | sort` ; do
    echo "file: `basename $f`"
    svgdatei=`basename $f`
    elmtdatei="${svgdatei%.svg}.elmt"
    echo "<a href=\"$elmtdatei\">${svgdatei%.svg}<br> <img src=\"$svgdatei\" /></a><br>" >> $d/index.html
  done
  # html-Footer:
  echo "</body></html>" >> $d/index.html
  echo ""
done
 
# blanks in filenames - back to original:
IFS=$OFS
# DONE!

Edit: changed to

echo "<li><a href="../index.html">Parent Directory </a></li>"  > $d/index.html

723

(96 replies, posted in Scripts)

Benchmark scripts on my Debian workstation
8340 elements dans 1110 categories (soit 9450 fichiers)

Clean my local git repository:

cd qelectrotech-elements/
git clean -d -x -f
cd ..

Convert *.elmt to *.SVG:

time ./toSVG.sh

real    0m55,232s

Add index.html pages in all directory:

time ./toHTMLsh

real    0m47,843s

Ssh sync to remote:

time rsync -e ssh -av -W --delete-after --no-owner --no-g --chmod=g+w --progress  --exclude='.*/' /home/laurent/Qet_scripts/qelectrotech-elements/qelectrotech-elements/  server:download.qelectrotech.org/qet/elements/

real    0m30,741s

724

(96 replies, posted in Scripts)

@plc-user:

good work, thanks plc-user. nomicons/wink
Preview on remote, example:
https://download.qelectrotech.org/qet/e … index.html

ps: I changed scale factor to 2.0 instead of 5.0.

725

(96 replies, posted in Scripts)

Just for the record:

diff --git a/toSVG.sh b/toSVG.sh
index 98101ca..976a899 100755
--- a/toSVG.sh
+++ b/toSVG.sh
@@ -3,9 +3,9 @@
# scales QET - Element-files in the directory from where it was called and
# all sub-dirs by the factor given here:
 
-Skalierung="1.0"
-SkalierProg="/home/ich/Projekte/c_c++/QET_ElementScaler/QET_ElementScaler"
-
+Skalierung="5.0"
+#SkalierProg="/home/ich/Projekte/c_c++/QET_ElementScaler/QET_ElementScaler"
+SkalierProg="/home/laurent/Qet_scripts/qelectrotech-elements/QET_ElementScaler"
# to be able to process blanks in file names - remember original state:
OFS=$IFS
# set new:
@@ -16,7 +16,7 @@ for i in  `find . -name "*.elmt"` ; do
   echo "processing $i"
   # With the construct in curly brackets the file extension
   # is changed accordingly
-  "$SkalierProg" --toSVG -o "$i" > "${i%.elmt}.svg"
+  "$SkalierProg" --toSVG -o -F "$Skalierung" "$i" > "${i%.elmt}.svg"
   done
 
# blanks in filenames - back to original:
rsync -e ssh -av -W --delete-after --no-owner --no-g --chmod=g+w --progress  --exclude=''.*/ /home/laurent/Qet_scripts/qelectrotech-elements/qelectrotech-elements/  server:download.qelectrotech.org/qet/elements/
rsync -e ssh -av -W --delete-after --no-owner --no-g --chmod=g+w --progress --exclude='.*/'  /home/laurent/Qet_scripts/qelectrotech-element-contrib/qelectrotech-element-contrib/elements/   server:download.qelectrotech.org/qet/elements_contrib/

@plc-user: https://github.com/plc-user/QET_ElementScaler/pull/2