Your diff seem's to be fixing this issue.

Hallo plc-user,

see this project in examples directory: Projet_vierge.qet

We should wait for a response from Galexis before correcting the code.
As far as I'm concerned, if the variables are empty, there's no need to display them in the project!

Original
https://download.qelectrotech.org/qet/forum_img_2/galexis_bugp0.png
No need to edit old variables, empty variables was affiched! just saving with new 0.100-dev versions!
https://download.qelectrotech.org/qet/forum_img_2/galexis_bugp2.png
https://download.qelectrotech.org/qet/forum_img_2/galexis_bugp3.png

Bonjour Alexis,

merci du retour,
peux tu être plus précis en donnant le sha5 des commits?

galexis wrote:

La 8290 n'a pas le problème

Installer_QElectroTech-0.100.0_x86_64-win64+git8290-1.exe    2025-01-30 10:29    23M

Hallo plc-user,

Thanks for pointing that out, I didn't think to check the Qt documentation on the limitations of the QPainter..

Bonjour et bienvenu,

voir mon tuto ici, pour une liste de matériel :

https://qelectrotech.org/forum/viewtopi … 256#p16256

Thanks  for your work  plc-user. nomicons/wink

84

(9 replies, posted in Import DXF)

NathanM wrote:

Justement je n'arrive pas à trouver l'onglet me permettant d'afficher cette fenêtre

Dans l’éditeur d'éléments menu fichier -> Importer un DXF!

Merged, packages under construction.

It doesn't cost anything to change the limit of the spinBox, PCs have come a long way in terms of power over the last 15 years, as has software.

Edit: done!

@plc-user: I don't know for now, this code was writed since 16 years...

commit 4da7e54d75c048c456f5ee00b3888efdd0f3e434
Author: xavier <xavier@r991  xavier  2010-05-09 20:40:08 +0200 (dim. 09 mai 2010)>, Fri Apr 3 19:30:25 2009 +0000 (il y a 16 ans)
Committer: xavier <xavier@r991  xavier  2010-05-09 20:40:08 +0200 (dim. 09 mai 2010)>, Fri Apr 3 19:30:25 2009 +0000 (il y a 16 ans)
Branches: <Local>: master
          origin: 0.8.1, 0.9, 0.9.0, ..., terminal_strip_window, test_merge, test_pugi et 26 de plus
Precedes: 0.2a


Edit:


https://stackoverflow.com/questions/410 … png-images

The PNG specification doesn't appear to place any limits on the width and height of an image; these are 4 byte unsigned integers, which could be up to 4294967295. http://www.libpng.org/pub/png/spec/iso/ … tml#11IHDR

Actually, your statement about image size limits is incorrect. PNG doesn't technically use 32-bit unsigned integers; it uses 31-bit unsigned integers padded with an extra zero bit. This was done to accommodate languages which don't have unsigned integer types. The upper limit on image width or height is thus 2^31-1 or 2,147,483,647. –
DK.
CommentedMar 20, 2011 at 3:53

This reeks of a case for SVG.. anytime your file size gets that big it's time to think of vector vs raster.. SVG can draw many complex shapes with fractals and sprites too.. the size is infinite so you could draw it and scale it up to be the size of a billboard with zooming in and no loss of quality. –


What is the maximum size of a JPG image?
65,535×65,535 pixels

https://stackoverflow.com/questions/503 … itmap-file

PNG and JPEG have no explicit limit on file size, whereas BMP has a limit of 32K by 32K pixels


What I'm seeing is that it's only in BMP that this could cause a problem if the user exceeds the limit of 32K by 32K pixels.
But which now uses this old image format

Hello luf,
you want to print your project with these printers?: https://www.materiel-informatique.fr/7- … et-traceur
To print it 10 metres long by two metres wide?

I don't have this type of printer at home but I do at work, but i never used.
Here's how I'll do it, I'll adapt the QET title-block so that it's still in 4/3 format but with px dimensions of the order of 10,000 px 20X 600px on 10x800px that makes a very large work surface on the computer screen.

The official QET symbols will then be very small in the folio, so if you're working with a huge screen you should be able to put a lot of information on this plane.

You then need to re draw or enlarge the elements using plc-user's QET_elementScaler.

See this example attached.

Ich finde es immer sehr schade, wenn hier nach neuen supertollen Funktionen gefragt wird, aber scheinbar niemand bereit ist, sein/ihr Wissen und Können hier im Projekt einzubringen.

Ich bin hier auch ganz langsam angefangen und habe Fragen gestellt und inzwischen traue ich mich daran, bestehende Funktionen zu hinterfragen und bearbeiten! Und einige davon sind bereits in QET eingeflossen...

Das geht nicht gegen Dich, stefan.123!!!
Ich wollte das nur mal loswerden...


Just like you plc-user, I started in the same way by studying Xavier's commits on the subversion at the time, then by proposing my own patches later in ~2012, same for Joshua who did a C++Qt training online as a self-taught in addition to his job in maintenance, we are certainly not  specialist or crack of C++/QT but in electrical maintenance we know much more....

I spent my free time testing or reading QET source files to understand how it worked in 2000 year's.

Hallo plc-user,

I know Xavier, if he wrote this script in 2011 he must also have written another bash script to make batch corrections, unfortunately on my machine I haven't been able to find this file.
Forum search can't help me, sorry.

I remember we limited the primitives in the element editor to two decimal places, and Xavier even wrote a script to detect them and correct them.
https://download.qelectrotech.org/qet/s … dinates.sh

But I don't remember why now?....That was more than 15 years ago....

91

(9 replies, posted in Import DXF)

Bonjour Nathan,

sur la 0.100-dev c'est assez simple, puisqu'elle détecte que tu n'as pas le fichier ... dans le répertoire binary!
La popup te propose un lien qui est assez ancien vers dxf2elmt, depuis un fork fait par Vadoola exploite mieux les DXF.
Tu trouveras mes derniers builds ici: https://qelectrotech.org/forum/viewtopi … 828#p20828
Tu décompresses le Win_64_dxf2elmt.zip  et tu copies, dans la popup il y a directement le bouton dossier, qui ouvre l'explorateur Windows sur le dossier que cherche QET y a plus qu'a coller et valider pour ensuite essayer de convertir des DXF en elmt éléments QET.


PS: sur les dernières versions de QET nous avons un peu ré-organiser l'emplacement des fichiers voir le post de plc-user:
https://qelectrotech.org/forum/viewtopi … 884#p20884

(+)\Roaming\QElectroTech\QElectroTech\binary

yop190 wrote:

Bonjour,

A tout hasard @scorpio810, avez-vous conservé les fichiers .qet d'oscaro-power (les liens ne fonctionnent plus) ?

Merci d'avance,
Yop

Non, je n'ai rien conservé, ou du moins rien trouvé dans mes dossiers, il n'y a que les PDF que j'ai joint sur le post, c'est assez simple a re dessiner...


Laurent

source venv/bin/activate && qelectrotech %F

https://github.com/qelectrotech/qelectr … 95e9f6b74a
Thanks, plc-user. nomicons/wink

16:30:28.938 Info:  project to use for qet_tb_generator:  "/home/laurent/Qet-svn/git/qet/examples/industrial.qet" 
16:30:28.938 Info:  qet_tb_generator not found : "/home/laurent/.local/share/QElectroTech/QElectroTech/binary/qet_tb_generator" 
16:30:28.938 Info:  qet_tb_generator not found : "/home/laurent/qet_tb_generator" 
16:30:28.938 Info:  qet_tb_generator not found : "/home/laurent/.qet/qet_tb_generator" 
16:30:28.972 Info:  qet_tb_generator found here: "/home/laurent/venv/bin/qet_tb_generator" 
16:30:29 INFO     QET Terminal Block Generator - v1.3.1 [main.main:840]
16:30:29 INFO     Using the file: /home/laurent/Qet-svn/git/qet/examples/industrial.qet [main.get_QET_fullpath:189]

qet_tb_generator found here: "/home/laurent/venv/bin/qet_tb_generator

94

(32 replies, posted in News)

Fix: Now QET can found and launch qet_tb_generator plugin without scratched under python 3.11 and tkinter.
https://qelectrotech.org/forum/viewtopi … 955#p20955

FYI, Fix qet_tb_generator segfault on my flatpak repository
https://github.com/qelectrotech/qelectr … 7fd76444da

Now QET can found and launch qet_tb_generator plugin without segfault under python 3.11 and tkinter on
/var/lib/flatpak/app/org.qelectrotech.QElectroTech/x86_64/master/active/files/qet_tb_generator.

laurent@debian:/var/lib/flatpak/app/org.qelectrotech.QElectroTech/x86_64/master/active/files/bin$ ls -al
total 8240
drwxr-xr-x 2 root root    4096  1 janv.  1970 .
drwxr-xr-x 7 root root    4096  2 févr. 15:21 ..
-rwxr-xr-x 2 root root 8353048  2 févr. 15:21 qelectrotech
-rwxr-xr-x 2 root root     206  8 mai    2024 qet_tb_generator
-rwxr-xr-x 2 root root   30392 16 oct.   2023 sqlite3_analyzer
-rwxr-xr-x 2 root root   14520  8 mai    2024 tclsh8.6
-rwxr-xr-x 2 root root   14520  8 mai    2024 wish8.6

15:22:08.989 Info:  success so far:  false   - now searching for  "/home/laurent/.var/app/org.qelectrotech.QElectroTech/data/QElectroTech/QElectroTech/binary/qet_tb_generator" 
15:22:08.989 Info:  success so far:  false   - now searching for  "/home/laurent/qet_git/qet_tb_generator" 
15:22:08.989 Info:  success so far:  false   - now searching for  "/home/laurent/.qet/qet_tb_generator" 
15:22:08.989 Info:  success so far:  false   - now searching for  "/app/bin/qet_tb_generator" 
15:22:09.007 Info:  success so far:  true   - now searching for  "qet_tb_generator" 
15:22:09 INFO     QET Terminal Block Generator - v1.3.1 [main.main:840]
15:22:09 INFO     Using the file: /home/laurent/qet_git/examples/industrial.qet [main.get_QET_fullpath:189]


Edit: since new plc-user PR: https://github.com/qelectrotech/qelectr … r/pull/341


15:53:55.999 Info: Elements collection finished to be loaded 
15:54:00.369 Info:  project to use for qet_tb_generator:  "/home/laurent/qet_git/examples/industrial.qet" 
15:54:00.370 Info:  qet_tb_generator not found : "/home/laurent/.var/app/org.qelectrotech.QElectroTech/data/QElectroTech/QElectroTech/binary/qet_tb_generator" 
15:54:00.370 Info:  qet_tb_generator not found : "/home/laurent/qet_git/qet_tb_generator" 
15:54:00.370 Info:  qet_tb_generator not found : "/home/laurent/.qet/qet_tb_generator" 
15:54:00.389 Info:  qet_tb_generator found here: "/app/bin/qet_tb_generator" 
15:54:00 INFO     QET Terminal Block Generator - v1.3.1 [main.main:840]
15:54:00 INFO     Using the file: /home/laurent/qet_git/examples/industrial.qet [main.get_QET_fullpath:189]

scorpio810 wrote:

Maybe with create your pyton virtual env?

python3 -m venv venv/ && source venv/bin/activate
pip install qet_tb_generator


laurent@debian:~$ whereis qet_tb_generator 
qet_tb_generator: /home/laurent/venv/bin/qet_tb_generator

When you need qet_tb_generator activate your virtual env before.

by

source venv/bin/activate
(venv) [14:20:26] laurent@debian:~$ whereis qet_tb_generator 
qet_tb_generator: /home/laurent/venv/bin/qet_tb_generator
(venv) [14:27:18] laurent@debian:~$ 

Now in the same terminal launch QET

qelectrotech

Example here
(venv) [14:20:26] laurent@debian:~$ qelectrotech



14:19:59.059 Info:  project to use for qet_tb_generator:  "/home/laurent/Qet-svn/git/qet/examples/industrial.qet" 
14:19:59.059 Info:  success so far:  false   - now searching for  "/home/laurent/.local/share/QElectroTech/QElectroTech/binary/qet_tb_generator" 
14:19:59.059 Info:  success so far:  false   - now searching for  "/home/laurent/qet_tb_generator" 
14:19:59.059 Info:  success so far:  false   - now searching for  "/home/laurent/.qet/qet_tb_generator" 
14:19:59.059 Info:  success so far:  false   - now searching for  "/home/laurent/venv/bin/qet_tb_generator" 
14:19:59.091 Info:  success so far:  true   - now searching for  "qet_tb_generator" 
14:19:59 INFO     QET Terminal Block Generator - v1.3.1 [main.main:840]

Maybe edit QET launcher to ?

source venv/bin/activate && qelectrotech %F

97

(3 replies, posted in Videos howto)

grep ^processor /proc/cpuinfo | wc -l
48

I don't have 48 cores only Hyper-Threading Technology!
24 cores = 48 threads for this CPU.
Setup AMD   3960X it's very very old now but compile quickly still QET in 28 seconds. 150W en idle... nomicons/ermm  ~600 W when I use all cores ... like make -j 48.
I think the new mainstream AMD hardware performs better... for less power...



It's very usefull like build all tool-chain cross-compilation like MXE env, instead of the machine compiling continuously in 8 hours, it's done in about 1 hour.

Voir sur le depot contrib ou il y a beaucoup d'autres symboles.
https://download.qelectrotech.org/qet/e … index.html


https://download.qelectrotech.org/qet/elements_contrib/10_electric/98_graphics/99_assembly_plan/01_thumbnails_mounting_plate/general_electric/666561.svg


https://download.qelectrotech.org/qet/elements_contrib/10_electric/98_graphics/99_assembly_plan/01_thumbnails_mounting_plate/legrand/51-contacteur/4_4f/412562-contacteur_sil_230v_4p_400v_40a_4f.svg

sudo apt install qtbase5-dev, qt5-qmake, libqt5svg5-dev, libkf5widgetsaddons-dev, libkf5coreaddons-dev libsqlite3-dev
git clone --recursive https://github.com/qelectrotech/qelectrotech-source-mirror.git qet
cd qet 
mkdir build && cd build
qmake  ../qelectrotech.pro
make -j48