The dxf contains Blocks in Blocks in Blocks in.....
That's currently not supported by dxf2elmt, but developer is working on it!
Use CAD-Software, to "explode" all blocks. 
Then dxf2elmt produces beautiful elements! 
276 2025-02-04 00:48:15
Re: Try to Import DXF (8 replies, posted in Import DXF)
277 2025-02-03 12:05:23
Re: sorting order terminals (19 replies, posted in Terminal block generator)
i made a deeper dive into the source of the plugin
Within the plugin i switched positions with the down button.
(...)
It looks as if the properties of the terminals are switched (ground and standart) and not, like i hoped the positions within the plugin.
the solution is there only someone needs to implement it
The source code of qet_tb_generator has not been changed for four years. How high do you think the chances are that it is being worked on “today”?
The plugin is python code: Can't you perhaps get together with someone who "speaks" Python and see how the problem can be fixed, LievenC and andi11? 
You seem to have already found the problematic part... 
278 2025-02-03 11:41:40
Re: Schaltschrank Design - Design Mounting Plate (7 replies, posted in DE : Hilfe, Vorschläge, Unterhaltungen...)
I found out that if I can redeclare an element in the schematic, e.g. the "50_residual_current_circuit_breaker", to a "master" and then redeclare the "/10_electric/98_graphics/99_assembly_plan/01_thumbnails_mounting_plate/abb/012_abb_rcd_4p.elmt" from "thumbnail" to "slave" and then I can establish a link from schematic to mounting plate.
Is that really the only way to have mouning plate graphics linked to elements in the schematic?
Ja, im Moment ist das leider so! ![]()
Und ich glaube, das steht auch nicht ganz oben auf der Prioritätenliste, wenn der Haupt-Entwickler wieder voll einsatzfähig ist.
Es besteht natürlich immer die Möglichkeit, jemanden zu finden, der C++ unter Qt programmieren kann und Spaß daran hat, an QElectroTech mitzuarbeiten! Vielleicht kennst Du jemanden, stefan.123? Oder vielleicht kannst Du selber teilnehmen? 
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...
Gruß
  plc-user 
279 2025-02-02 21:59:51
Re: qet-tb-generator install linux using python3 -m venv (9 replies, posted in Terminal block generator)
Thanks, plc-user.
You're welcome!  
 
280 2025-02-01 11:37:42
Topic: Decimal places in element-file (13 replies, posted in EN : Help, suggestions, discussions, ...)
Hello everyone!
What do you think about limiting the numerical values to two decimal places when saving elements with element-editor?
The background to the question.
For example, the elements contain such values (excerpt):
x1="-1.77636e-15" y5="6.91313" x5="-1.77636e-15"
dth="5.4" height="0.64596"/>
dth="5.4" height="0.64596"/>
idth="3" height="3.87576"/>
dth="3" height="3.87576"/>
idth="3.6" height="1.93788"/>Where do these many decimal places come from?
Several possibilities:
- from a conversion tool
- copy and paste from the clipboard
- ???
I can't edit the third decimal place at the latest in the element editor itself because all input fields are limited to two decimal places.
Using mouse and keyboard, I can only move the individual graphical elements by a minimum of 0.1.
This means I can't change the values in such detail with on-board tools anyway!
How far do I have to zoom in the element editor to see the difference between “0” and “-1.77636e-15”? 
So why all these decimal places? 
I have included two screenshots in the appendix to show that the differences are hardly noticeable in most cases - not even with the selected (rather small) example element.
It's not like I'm just asking the question here and waiting for someone else to do the work: I've already prepared something and would like to ask your opinion on the topic, whether you think it makes sense too!
Looking forward to your comments!
Best regards
  plc-user 
281 2025-01-30 20:30:05
Re: Elements de tableaux du groupe Legrand (et bticino) (84 replies, posted in Elements)
@iznobe:
Wir werden das gesamte Programm an elektrischen Geräten der genannten Hersteller gerne veröffentlichen, wenn Du die Elemente erstellt und uns zur Verfügung gestellt hast!
Online-Translation to English:
We will be happy to publish the entire programme of electrical devices from the manufacturers mentioned if you have created the elements and made them available to us!
Online-Translation to French:
Nous publierons volontiers l'ensemble de la gamme d'appareils électriques des fabricants mentionnés si tu as créé les éléments et nous les as mis à disposition! 
282 2025-01-30 12:18:27
Re: Cannote find Sqlite dev package linux, but its installed (5 replies, posted in Code)
make -j48
I'm a little envious: I don't have 48 cores!  
 
283 2025-01-30 11:21:54
Re: Cannote find Sqlite dev package linux, but its installed (5 replies, posted in Code)
It seems you have more than one independent "problems":
Cannot read /home/andrew/sources/qt/qelectrotech-source-mirror/SingleApplication/singleapplication.pri: No such file or directory
did you fetch sources of "SingleApplication"?
Project ERROR: sqlite3 development package not found
on my Debian stable VM these "sql"-packages are installed:
    ich@deb-devel:~$ dpkg -l | grep sql
    ii  libqt5sql5:amd64
    ii  libqt5sql5-sqlite:amd64
    ii  libqt6sql6:amd64
    ii  libqt6sql6-sqlite:amd64
    ii  libsqlite3-0:amd64
    ii  libsqlite3-dev:amd64
    ii  libsqlite3-tcl
    ii  sqlite3
    ii  sqlite3-tools
    ich@deb-devel:~$Hope it helps
284 2025-01-30 09:06:19
Re: New .dxf to .elmt Conversion Program (209 replies, posted in Import DXF)
Hello vadoola,
It's good that we agreed on the scaling after all! I knew there was a misunderstanding somewhere... but didn't see
Sometimes I have to read the documentation and comments in the source code several times, too: the language barrier (French, English, German, ...) is sometimes quite high and with sharp edges! ![]()
Take your time for the realization! 
As we say in German: "Gut Ding braucht Weile!"
‘Good things take time!’ 
285 2025-01-30 08:47:51
Re: Set Config- and Data-Directory to system-specific paths (21 replies, posted in Code)
Salut Laurent !
Thanks for the links, but don't get me wrong: 
I don't want to compile it, just want to use that plugin!
There are binaries for Linux and Win that run on Debian unstable and win10 that I can use on github: raulroda These binaries work for me.
EDIT (again):
Remark for me: Terminals in project need to be connected! Then the plugin works as expected!
In the meantime I rewrote the code for calling qet_tb_generator from diagram-editor: It looks very tidy now.
I used the existing locations for the various systems and added new path "dataDir()/binary" to search for the plugin. A few lines of additional output to log-file can be removed again, if we want. 
286 2025-01-30 00:57:18
Re: New .dxf to .elmt Conversion Program (209 replies, posted in Import DXF)
 If you look at the “imperial” DXF from last week:
Which one matches the original sizes better?
I know that we won't be perfect with text-size, because for elements we have to round to integer numbers, but I think we should be as close to the original as possible!
287 2025-01-30 00:47:56
Re: New .dxf to .elmt Conversion Program (209 replies, posted in Import DXF)
Hello vadoola,
let's put it this way:
I created a QET-Element just with the use of element-editor.
In the attachment you see, that the texts are the same size as the height of the rectangles.
So in my opinion we do not have to use another factor than 2.0 for the "real world" size in the DXF!
When DXF says circle has a diameter of 10mm then in element it is 20.
If it says 1 inch in the DXF it will be 50.8 in the element whether it is a graphical part or a text!
It does not matter if text or anything else: There is always a "scale" of 1mm = 2px
I checked in all DXFs I have: Fits everywhere!  
If you have a DXF where the factor of 2.0 does not fit: Let me see. 
288 2025-01-29 20:44:31
Re: Set Config- and Data-Directory to system-specific paths (21 replies, posted in Code)
Salut Laurent !
Thanks again, Laurent!
The Debian-Version is also working pretty good! 
A few questions about "qet_tb_plugin":
As I understand correctly, the plugin may or even can only be started, when a project is loaded, correct?
"qet_tb_plugin" or "qet_tb_plugin.exe" is an executable file, right?
And:
Similar to dxf2elmt or QET_ElementScaler QET only starts the executable from known locations ... QET does not download python or source-code of the plugin, right?
If all three answers are "yes", some of the "spaghetti-code" in qetdiagrameditor.cpp can be simplified and "automated" similar to configDir() or dataDir().
Already making first attempts... 
289 2025-01-29 17:32:34
Re: Set Config- and Data-Directory to system-specific paths (21 replies, posted in Code)
Salut Laurent !
Didn't find any new Debian-Packages on QET-Repo but my local created binary works very well with the latest changes!
The latest "major" changes mainly concern the ReadyToUse version for Windows and it works exactly as I know it from the “old” version ... only with more comprehensible directories for projects, exports, etc.!
The Install-Version for Windows also works as expected.
Best regards,
  plc-user 
290 2025-01-29 15:54:10
Re: New .dxf to .elmt Conversion Program (209 replies, posted in Import DXF)
Hello vadoola,
(...) A font point is defined as 1pt = 1/72 inches, which comes out to 1pt = 0.3528mm.
Based on this conversion the values that are being generated are "correct", because text height in mm would be multiplied by a factor of roughly 2.83. instead of the 2 used to convert mm to pixels.
Just to understand you correctly:
You think the calculation of the text size is correct if a text that fits well into a rectangle in the DXF is much bigger and no longer fits into the same rectangle in the converted element? And that's because it says somewhere that a px is not as big as a pt? Seriously?
Attached is another example to clarify what I mean:
A DXF file in which I have inserted an 11 mm high text into a field of about 12 mm. Next to it is the converted element file, where you can see that the text “11 mm” definitely does not fit into the same field. In addition, the element file in which I changed the text “11 mm” to the appropriate size “22” and moved it.
I am explicitly not talking about the text position here, as we both know that this does not yet fit: I'm talking about the text size!
Note:
I used dxf2elmt - sources from last weeks commit c3a5b2a. 
291 2025-01-28 20:41:49
Re: Set Config- and Data-Directory to system-specific paths (21 replies, posted in Code)
Salut Laurent !
i just published all packages, please try and check.
Thank you for the work you did with packaging!  
In my opinion they work perfectly: 
For the ReadyToUse-Version the additional config (*.json, etc) and the data (elements, titleblocks, etc) are saved below one directory!
For convenience-reasons I changed some additional places in source-code, to QETApp::documentDir(), where other places were used.
But still: Location and handling of qet_tb_generator stays untouched, until we know, what we have to do to also move it to "dataDir()/binary" or so. 
Or can we drop support of python-plugin at some time, when internal Terminal-Manager is ready for production-use?
This leads to the question of what is going on with Joshua: Do you have any information? How are he and his wife doing now? Can we expect to see him again in the foreseeable future? Please send him my regards: He is missing!
I don't publish arm64 macOS at this time. maybe this week...
That's o.k. with me: Have no bitten fruits...  ![]()
Best regards
  plc-user 
292 2025-01-28 18:05:17
Re: New .dxf to .elmt Conversion Program (209 replies, posted in Import DXF)
 Back to the topic:  ![]()
Hello Vadoola,
I'm not quite happy with the font sizes yet.
That's why I used Inkscape to create a drawing with different font sizes. When I realized that the fonts were exported as polygons into DXF, I used LibreCAD to add some MText in different sizes. 
I then converted the DXF into an element and realized that the font sizes did not fit.
If we focus on the 20 mm font:
In LibreCAD (black background) it is good to see that both texts are the same size - I expect the same for the element.
In the element (white background), the polygon 20 mm are 40px high, but the 20 mm text has a font size of 57.
So there is still a factor of about 1.4 somewhere in there that doesn't belong.
I noticed something similar with the imperial DXF from your American compatriot.
Packed all files into attached zip.
Remark #1:
The Text-Positions ...  ![]()
Remark #2:
When saving the DXF from Inkscape, the bottom edge of the rectangle was lost somewhere. That shouldn't bother you! 
293 2025-01-27 23:44:41
Re: PLC I/O Box (1 replies, posted in EN : Help, suggestions, discussions, ...)
Where did you get the screenshot from if you don't have the element?
The element is so easy to draw yourself: Two rectangles, two texts and a terminal!
I guess it took you longer to write the question than it would have taken to create the element! 
294 2025-01-27 22:28:05
Re: Set Config- and Data-Directory to system-specific paths (21 replies, posted in Code)
Salut Laurent !
What I noticed when using the ReadyToUse version for Windows:
We haven't quite finished setting the directories for configuration and data yet. 
One small detail is still missing:
A command line parameter for specifying a data directory!
If we want to keep the “ReadyToUse” version for Windows as a “portable” version as far as possible, in which all files are located under ONE base directory, we need the command line parameter “--data-dir” in the batch file. Otherwise, the log files and data are not stored in the directory of the ReadyToUse version, but in the standard Windows data directory.
As an additional benefit, we offer users the option of running completely separate versions on one PC! It would only need to be called with different parameters for “--config-dir” and “--data-dir” and completely different configurations and data are possible. 
And this applies in particular to all macOS and Linux users:
Here the configuration is available as “QElectroTech.conf”, which is also located in the configuration directory. Win users have the disadvantage with the registry... 
Will upload the changes to my fork of QET very soon ... stay tuned!  ![]()
I have also noticed that we (still) supply a “QElectroTech.conf” with the ReadyToUse version, which is known not to be used on Windows. This can therefore be removed?
295 2025-01-26 20:38:03
Re: NO_PUBKEY BC9F825E1D4FB6C1 - Download for Debian Bookworm (16 replies, posted in Platform-specific problems, Linux!)
Perhaps because the system was installed a long time ago and has only been updated since then?
In any case: The qelectrotech.sources described above also works with Debian Bookworm.
296 2025-01-26 20:09:21
Re: NO_PUBKEY BC9F825E1D4FB6C1 - Download for Debian Bookworm (16 replies, posted in Platform-specific problems, Linux!)
For the record and users who run Debian GNU/Linux unstable:
apt-key is not available in Debian unstable anymore!
For a few days now, this is the way to go:
download key-file:
wget -q https://debian.qelectrotech.org/qet/bui … sitory.asc
and save (as root) to /etc/apt/keyringsadjust sources-list entry for QElectroTech
file needs the ending ".sources" as in this example:
/etc/apt/sources.list.d/qelectrotech.sourcescontent of qelectrotech.sources:
# draw electric diagrams with QElectroTech
# 
Types:      deb
URIs:       https://debian.qelectrotech.org/qet/builds/debian/
Suites:     unstable
Components: main
Enabled:    yes
Signed-By:  /etc/apt/keyrings/Qelectrotech_Repository.ascfrom here everything further is known:
apt update
apt install qelectrotech
@scorpio810:
Maybe you can update the information on QET-Homepage, Laurent?
Thanks in advance!  
 
297 2025-01-25 22:18:03
Re: Set Config- and Data-Directory to system-specific paths (21 replies, posted in Code)
Salut Laurent !
A question of understanding about other storage locations:
Is there a special reason why all files (projects, export files, BOMs, etc.) are saved on the desktop by default and not in the documents directory?
I would even suggest to save nomenclatures, BOMs, etc. just beside the project-files by default.
While we're at it, we could adjust this at the same time. No user intervention would be necessary for this change!
Best regards
  plc-user 
298 2025-01-25 22:03:26
Re: Set Config- and Data-Directory to system-specific paths (21 replies, posted in Code)
A short manual for the transition from old to new locations of config- and data-directories.
In the following blocks you find the changes, that have to be made by the user, when upgrading to the new version.
If you are missing any information or have found an error, please let us know!
Modifications on Linux:
- location of QElectroTech.conf:
  ~/.config/QElectroTech/QElectroTech.conf
  NO activity required!
- location of QET-stalefiles
  ~/.local/share/stalefiles/QElectroTech
  NO activity required!
- python-plugin "qet_tb_generator"
  binary of plugin may be moved to ~/.local/share/QElectroTech/QElectroTech/binary
  but generally: NO activity required!
Linux old                         -->  Linux new
~/.qet/*.json                     -->  ~/.config/QElectroTech/QElectroTech/*.json
~/.qet/element_texts_pattern/*.*  -->  ~/.config/QElectroTech/QElectroTech/element_texts_pattern/*.*
~/.qet/*.log                      -->  ~/.local/share/QElectroTech/QElectroTech/*.log
~/.qet/elements_cache.sqlite      -->  ~/.local/share/QElectroTech/QElectroTech/elements_cache.sqlite
the following directories: including content!
~/.qet/binary                     -->  ~/.local/share/QElectroTech/QElectroTech/binary
~/.qet/elements                   -->  ~/.local/share/QElectroTech/QElectroTech/elements
~/.qet/elements-company           -->  ~/.local/share/QElectroTech/QElectroTech/elements-company
~/.qet/titleblocks                -->  ~/.local/share/QElectroTech/QElectroTech/titleblocks
~/.qet/titleblocks-company        -->  ~/.local/share/QElectroTech/QElectroTech/titleblocks-company--------------------------------------------------------------------------------
Modifications on Windows (ReadyToUse):
- Configuration and data:
  NO activity required
- python-plugin "qet_tb_generator"
  binary of plugin may be moved to  (base-dir)\conf\binary
  but generally: NO activity required!--------------------------------------------------------------------------------
Modifications on Windows (Installer):
- QElectroTech.conf:
  NO activity required: Registry
- QET-stalefiles
  NO activity required!
- python-plugin "qet_tb_generator"
  binary of plugin may be moved to  (+)\Roaming\QElectroTech\QElectroTech\binary
  but generally: NO activity required!
To keep line-length short:
  "(#)" means "C:\Users\<USER>\Application Data"
  "(+)" means "C:\Users\<USER>\AppData"
Windows old                        -->  Windows new
(#)\qet\*.json                     -->  (+)\Local\QElectroTech\QElectroTech\*.json
(#)\qet\element_texts_pattern\*.*  -->  (+)\Local\QElectroTech\QElectroTech\element_texts_pattern\*.*
(#)\qet\*.log                      -->  (+)\Roaming\QElectroTech\QElectroTech\*.log
(#)\qet\elements_cache.sqlite      -->  (+)\Roaming\QElectroTech\QElectroTech\elements_cache.sqlite
the following directories: including content!
(#)\qet\binary                     -->  (+)\Roaming\QElectroTech\QElectroTech\binary
(#)\qet\elements                   -->  (+)\Roaming\QElectroTech\QElectroTech\elements
(#)\qet\elements-company           -->  (+)\Roaming\QElectroTech\QElectroTech\elements-company
(#)\qet\titleblocks                -->  (+)\Roaming\QElectroTech\QElectroTech\titleblocks
(#)\qet\titleblocks-company        -->  (+)\Roaming\QElectroTech\QElectroTech\titleblocks-company
299 2025-01-24 19:33:06
Re: Set Config- and Data-Directory to system-specific paths (21 replies, posted in Code)
Salut Laurent !
Maybe I think I made a a little mistake when merging your PR (...)
I admit, I was a bit surprised, that you accepted the PR that fast! ![]()
(...) the location of binary plugin collections, the path in the logs now was wrong, and so on.
I wouldn't say the paths were wrong: Let's say the paths were different!
Transition for the users might be a challenge...
We should at least have done a few tests to see how the change affects the various systems and how the effects can be explained and resolved. That's why I invited the other forum members to try out the changes on their systems and give feedback!
The invitation to test and give feedback is still active!
As far as I have seen on my systems, the corrections are limited to moving files from here to there. And on systems without any previous version, everything is fine!
/home/laurent/.local/share/QElectroTech/QElectroTech/binary/
Yes, that's the new directory for the binaries of dxf2elmt and QET_ElementScaler on Linux
On a windows-system this directory for the additional binaries defaults to this:
C:/Users/<USER>/AppData/Roaming/QElectroTech/QElectroTech/binaryDo the path-specifications for python-plugin "qet_tb_generator" also need to be adjusted? I don't think so, because these aren't touched by the changes regarding "configDir()" or "dataDir()": They still refer to "QDir::homePath()".
(There is so much hardcoded in the sources! Maybe in another step and with the support of someone knowing, how to deal with "constrictor snakes"...)
As you said, the configuration on win is kept in the Registry, but the additional configuration files (*.json for nomenclature, etc.) are kept in this newly created path:
C:/Users/<USER>/AppData/Local/QElectroTech/QElectroTech/For users who start QET from the command line and use the parameter “--config-dir $PATH”, nothing with configuration changes, as this is handled when the program is started, before reading system-default.
Sometimes you have to demolish everything in order to rebuild better.
We are on a good way to make QET even better!  ![]()
Best regards,
  plc-user 
300 2025-01-24 14:46:34
Re: sorting order terminals (19 replies, posted in Terminal block generator)
Ça veut pas me le prendre, il est trop gros.
Your Project-file is too big?
Use zip to compress and try again. 
