Why not create a subdirectory for drafts there?

Some time ago I already suggested implementing a second user collection (https://qelectrotech.org/forum/viewtopic.php?id=2105), but the limited number of developers for QET unfortunately prevents this.
That was meant for another reason, but could be useful here, too.

577

(1 replies, posted in Code)

Hello paulomt9b,

a possible explanation:
Not all texts in QET may be translated to your language, so QET falls back to the "Standard"-language in that place.

At that point you can help to improve QET:
Translate the "missing" texts to your language.
We would be happy if we could take over your texts!  nomicons/smile


PS:
If you don't know if your question was asked before in this forum: Use Forum-Search.
In this case "language" would be the "magic word"! nomicons/wink

Hello rvamerongen,

you noticed, that you can have a User-Collection?

I created a User-Collection where I have a Sub-Folder for elements "in development" (see attachments).
Each with a separate "qet_directory"-file with a QET-name for the Sub-Folders...
This would be the place for your "templates".

579

(7 replies, posted in FR : Aide, suggestions, discussions, ...)

Salut Jerome,

Bitte beachte:
der Element-Editor führt manchmal "ein Eigenleben" - auch in der aktuellen Version.

Manchmal kommt es vor, dass beim Speichern die Position des zuletzt bearbeiteten Teils verschoben wird oder die Z-Positionen durcheinandergewürfelt werden.

Deswegen habe ich es mir angewöhnt, nach dem Speichern des Bauteils im Element-Editor, das Teil noch einmal neu in den Element-Editor zu laden, um zu sehen, ob beim Speichern alles gut gegangen ist.

-----

Please note:
The element editor sometimes has a "life of its own" - even in the current version.

Sometimes, when saving, the position of the last edited part is moved or the Z positions are jumbled up.

That's why I've got into the habit of reloading the part into the element editor after saving it in the element editor to see if everything went well when saving.

-----

Veuillez noter que :
l'éditeur d'éléments a parfois une "vie propre" - même dans la version actuelle.

Il arrive parfois que lors de l'enregistrement, la position de la dernière pièce traitée soit déplacée ou que les positions Z soient mélangées.

C'est pourquoi j'ai pris l'habitude, après avoir enregistré la pièce dans l'éditeur d'éléments, de charger à nouveau la pièce dans l'éditeur d'éléments pour voir si tout s'est bien passé lors de l'enregistrement.

Hello rvamerongen,

as far as I know photoshop can only handle pixel-graphic.
QET and Inkscape work with and produce Vector-Graphics.

If you have a pixel-graphic you have to work with "potrace" or the vectorising-features of inkscape to "trace" the graphic and thus create a vector graphic. In German Version of Inkscape: import a Bitmap to current file, click the image to mark it and then "Menü" -> "Pfad" -> "Bitmap nachzeichnen..." opens a tab where some parameters for tracing can be set.

When vectorised, converted to dxf, converted to QET-Element there is still much work to do, when you want to produce a fine-looking Element that only contains the necessary and visible parts. In the accu.elmt you attached earlier there are some polygons included that "blow up" the file-size but cannot be seen in the element because they are hidden behind the black rects! When I delete the invisible polygons, the file-size is reduced to less than half to 4.3kByte. When I adjust the English name of the element the file-size even reduces to 4.1kB...

But as I said in an earlier post:
For such simple Elements like the accu it would be much faster to draw it "from scratch" or you create yourself a template where for example a rect and some translations are included you'll be even faster in future!

EDIT: Of course I mean simple Elements can be drawn only with QET-Element-Editor!

I hope I haven't scared you off with these explanations!

Best regards,
  plc-user

Hello rvamerongen,

your SVG cannot be converted to DXF because most of it is an integrated Bitmap!

There is only one rect as outline of the Battery and the six smaller white rects is one big path.
You can even see that when you open SVG in a Text-Editor (see attachment).

If you open your SVG in Inkscape and look at the "Ebenen und Objekte"-Tab (opened with via Menu) you'll see what's inside your SVG: Most of it is a Bitmap that cannot be converted by any DXF-converter.

You can even see that when you open SVG in a Text-Editor (see attachment).

Such "simple" Symbols can be drawn very quick and easy with QET's Element-Editor:
Only rects that can be duplicated by <Ctrl>-C <Ctrl>-V

582

(96 replies, posted in Scripts)

Salut Laurent!

Thank you for your feedback!

I'll put the missing includes to the sources!

As already said:
I do not get any errors on Debian, ReactOS or Win10 ... strange.

583

(96 replies, posted in Scripts)

Salut Laurent!

I don't get this error on my Debian Unstable.
Maybe there's something missing in helpers.cpp?

Try to add
"#include <string>" or
"#include <sstream>"
at line 30 in helpers.cpp

584

(96 replies, posted in Scripts)

Salut Laurent !

Je suis heureux d'apprendre que tu es de retour et que tu es sur la voie de la guérison !

Une première version est désormais disponible sur https://github.com/plc-user/QET_ElementScaler, qui tient compte des sauts de ligne pour les éléments "text". De mon point de vue, c'est déjà bien utilisable !

Mais ce qui n'est définitivement pas possible, c'est que le format SVG ne le supporte pas : Le formatage de texte à l'aide d'espaces !

Sans compter qu'il n'est pas de bon ton de formater un texte avec des espaces, plusieurs espaces sont supprimés par le visualiseur SVG (comme en HTML) !

Merci de tester la nouvelle version et de donner votre avis sur les résultats : Je ne peux pas vérifier seul tous les éléments QET (plus de 8000) individuellement ! Seule votre participation permettra d'améliorer le programme !

Cordialement,
  plc-user


"Das war Französisch" ... vom Online-Übersetzer


Hallo zusammen!

Auf https://github.com/plc-user/QET_ElementScaler gibt es nun eine erste Version, die bei "text"-Elementen die Zeilenunbrüche beachtet. Aus meiner Sicht ist das schon gut brauchbar!

Was aber definitiv nicht geht, weil das SVG-Format das nicht unterstützt: Formatieren von Text mit Hilfe von Leerzeichen!
Mal ganz davon abgesehen, dass es kein guter Stil ist, Text mit Leerzeichen zu formatieren, werden mehrere Leerzeichen (wie bei HTML auch) vom SVG-Betrachter unterdrückt!

Bitte testet die neue Version und gebt Rückmeldung zu den Ergebnissen: Ich kann nicht allein alle QET-Elemente (mehr als 8000) einzeln überprüfen! Nur durch eure Mitwirkung kann das Programm besser werden!

Gruß
  plc-user



und nun noch auf Englisch:

Hello everybody!

There is a first version on https://github.com/plc-user/QET_ElementScaler that recognises line breaks for "text" elements. From my point of view, this is already very useful!

But what definitely doesn't work because the SVG format doesn't support it: Formatting text using spaces!
Quite apart from the fact that it is not good style to format text with spaces, multiple spaces (as with HTML) are suppressed by the SVG viewer!

Please test the new version and give feedback on the results: I cannot check all QET elements (more than 8000) individually! The software can only improve with your cooperation!

Best regards
  plc-user

585

(96 replies, posted in Scripts)

Line-Endings for SVG-Output are implemented now!  nomicons/smile
Additionally: Line-widths and the dotted and dashed lines were slightly "adjusted".

On https://github.com/plc-user/QET_ElementScaler you find a new pre-release.

In the attachment you see an example: SVG on the left; QET-Element-Editor on the right.
The blue rects in the background show the positions of x-values of the lines and the distances "length1" and "length2" of the Line-Endings.
For me the lines left/right look very similar!

We get closer to a first "non-beta" release.
The next great step will be texts with line-breaks. More on this: later.

Best regards
  plc-user

586

(96 replies, posted in Scripts)

Hello Erik,

as Joshua also explained in this Post (https://qelectrotech.org/forum/viewtopi … 180#p19180) (see above):

In QET we have the CheckBox "closed" for a Polygon. Then the Start- and End-Points of are connected.
In SVG there is no such attribute: There is "Polyline" for "open" and "Polygon" for "closed".

The Element you mentioned has some "open" polygons so that's why a "Polyline" must be used for SVG.

Can you explain, why you think "Polyline" may be wrong or "not good"?

EDIT:
If you think the "kink" in the dashed line is not properly recognizable, then I must refer you to the creator of this element: The drawing is not correct!

These kinks in the dashed lines represent a kind of "notch" for the actuation, which (since I have been working in electrical engineering) is shown with a solid line. Only the notch, not the rest of the mechanical connection of the switching elements! In the attachment you find a screenshot from "Eaton Schaltungsbuch 2023" PDF-Page 485 (https://www.eaton.com/de/de-de/support/ … sbuch.html)

Have we found a volunteer here who wants to fix this error in the elements, Erik?  nomicons/wink

587

(96 replies, posted in Scripts)

Hello Erik, (and all others!)

on https://github.com/plc-user/QET_ElementScaler you'll find a new version of QET_ElementScaler in which the handling of line-width and line-style for SVG-output is re-worked.

Here you see an example in the picture (top: SVG, bottom: Element-Editor) and in Element- and SVG-file.
Additionally your example with the re-worked styles is also attached.

I guess I found a quite usable solution...

Please test the new version with your "favorite" elements!
Thanks in advance! 

Best regards
  plc-user

588

(96 replies, posted in Scripts)

Hello Erik,

Thanks for Testing, Erik!  nomicons/smile
The line you are talking about is a dashed polyline and the "missing" part you mention is just a gap in this line.
If you open the SVG-file with a text-editor and change the stroke-dasharray="10,5" to perhaps "7,3" you'll find other parts of the same polyline "missing".

Maybe we need different dash-to-gap-ratio for different line-widths?  nomicons/ermm
Any suggestions?

I'm sure there's much more fine-tuning to be done...

589

(7 replies, posted in Elements)

I still can't see what exactly goes wrong!

The DXF-to-Element-converter has nothing to do with the Python terminal plug-in or the TerminalBlock-Generator. These are different applications.

If you have an element-file from DXF-converter that you can edit with QET-Element-Editor, the converter works!

The qet_tb_generator is not necessary to use when converting a dxf to elmt.

Please use the forum-search to find hints on where to download the DXF-converter and how to use it.
Maybe you'll find out that this would be the better place to ask about importing dxf to elmt:
https://qelectrotech.org/forum/viewforum.php?id=12

claudioro_roberto wrote:

Good afternoon,

I'm using version 0.9 of QElectroTech ...

Please create a new topic in the suitable forum-area for a new topic!

And do not post the same question in more than one sub-forum.

Hello brutaldeth,

if I understand you correctly, you are looking for a battery charge monitor.

Here is the QElectroTech forum, which is all about drawing electrical schematics...

Best regards
  plc-user

592

(7 replies, posted in Elements)

Hello claudioro_roberto,

"does not work" or "I can't" is not meaningful enough for us to provide any assistance!

Please be more specific with your question.
And:
Questions and answers regarding QET belong in this forum.
Otherwise other users will not be able to benefit from the discussion!

Best regards
  plc-user

593

(96 replies, posted in Scripts)

Hello Erik,

Thanks for your hints, but I already use the principle of how it should work with the line ends for the terminals.

If you look at the screenshot, you might realise why I'm still hesitating to implement anything: I want it to look at least similar to QET!

The lines in the image all have the same X values for start and end. The actual lines as you see them have different lengths depending on which line-ending is chosen.

Of course, I could also make the lines in the SVG the same length and place the ends over them. But then you can see the line shining through at ends without filling! In the screenshot you see a yellow rectangle behind the lines.

The complexity doesn't get any less if we think of four possible line widths, for which the "real" line length must then of course be adapted to the line width, the line-endings and the values for length...

594

(96 replies, posted in Scripts)

Salut Laurent!

I'll keep my fingers crossed and wish you all the best!
Health is one of our most valuable goods!

In the meantime I'll try to find out some more things, to implement Line-Markers, etc...

Best regards
  plc-user

595

(96 replies, posted in Scripts)

Hello everybody!

I decided to cancel the project "QET_Element2SVG"!  nomicons/sad

Instead I added SVG-Output-Support to QET_ElementScaler! nomicons/smile

In this context the order of commandline-parameters for QET_ElementScaler had to be adjusted!
So please:
Read the Readme and the scripts and batches provided on the github-page:
https://github.com/plc-user/QET_ElementScaler

In the Release-Section there are binaries for Debian GNU Linux (unstable), ReactOS (32bit) and Win10 (64bit) available, but you should be able to compile the sources on other platforms.

The software is re-written in great parts and may contain errors!

So:
Test the software and report errors, inconsistencies, or simply praise! nomicons/angel

Best regards
  plc-user

596

(96 replies, posted in Scripts)

Hallo Achim,

Danke für Deine Erklärung!

Da ich hier kein QT für die Grafik-Konvertierung verwende, am Element nicht verändern möchte und sowieso nur die Element-Datei habe, belasse ich meine Bemühungen mit der horizontalen Ausrichtung von dynamischem Text erstmal so wie sie nun sind, ohne besondere Ausrichtung! Die Positionen passen für mein Auge.

Gruß
  plc-user


via Online-Translator:

Hello Achim,

Thanks for your explanation!

Since I don't use QT for graphics-conversion here, don't want to change the element and only have the element file anyway, I'll leave my efforts with the horizontal alignment of dynamic text as they are for now, without special alignment! The positions suit my eye.

Greetings
  plc-user

597

(96 replies, posted in Scripts)

Hello everyone!

For open or closed polygon / polyline I found a solution!

Let's get back to "dynamic_text": Can someone please confirm or explain this:

I have created a test element with three "dynamic_text" and set the horizontal alignment to left, centre or right. I notice that the texts still remain in almost the same X position.

When I apply the attribute left, centre or right to SVG-text, exactly what I expect to happen happens: the reference point of the text is at the specified X position.

That is what I would expect in QET, too...

EDIT:
There is no change in Text-Positions, even when I change Vertical Alignment to Center or Bottom.

598

(96 replies, posted in Scripts)

Salut Joshua,

I prefer to use plain C++ without special libs that may not be available on other systems, so also here: No QT or so.
It seems that I'm on a good way even with rotated texts!  nomicons/smile

EDIT:
It seems that the standard-value is true for closed in polygons?

Changed that in my code, because the SVGs looked kind of strange and I could not find any ELMT with "closed=true" in Collection!

Attached you find some screenshots to compare SVG.(top or left) and ELMT (right or bottom)

599

(96 replies, posted in Scripts)

Salut Joshua!

Thank you for your hints, links and explanations!

I love the sentence: "For historical reasons..."  nomicons/cwy
It always explains, why there are so many ugly workarounds.

But be sure: Most of the software I wrote in the past would NOT look the same if I wrote it now again! nomicons/wink

In the moment I think I could make a great step ahead, if I knew how to calculate the bottom-left-corner of the dynamic_text in it's boundingRect.
As you can see in the attached elmt-file I put a dynamic_text at Position x=0, y=5. The boundingRect is positioned exactly there (blue rect). But the text is placed in another position the green rect.

Maybe I find an explanation in QT-documentation from the link how to calculate the "missing values". I have to read.
After that it should be possible to move and rotate the text in SVG to the right position using trigonometry... nomicons/cheerful

Of course you can re-use my code for QET in further versions: That's why we support OpenSourceSoftware!
For now the sources are in a state I would like not to publish. I'll do it later on my GitHub-Account ... promised!

Best regards
  plc-user

This is a well known question!

When you have the Information about the internal file-formats of those commercial software, it should be possible to design a converter.
But:
The companies do not publish these internals.
And:
You need to find someone to write that converter in his spare time, if you can't do it yourself!