Bonjour et bienvenu Maxime,

voir:

Potentiel électrique et générateur de borniers
https://qelectrotech.org/forum/viewtopi … 182#p18182
cable numbers
https://qelectrotech.org/forum/viewtopic.php?id=2343
qet_tb_generator Version 1.3.1
https://qelectrotech.org/forum/viewtopi … 048#p17048
Nomenclature filerie
https://qelectrotech.org/forum/viewtopic.php?id=2764

Cordialement,
Laurent

En principe sous une Debian like il suffit de cloner le git

git clone --recursive https://github.com/qelectrotech/qelectrotech-source-mirror.git

D'installer ces dépendances:

               libqt5svg5-dev,
               qt5-qmake,
               qtbase5-dev,
               libkf5widgetsaddons-dev,
               libkf5coreaddons-dev, 
               libsqlite3-dev,
               pkgconf

Ensuite dans Qt creator ouvrir projet, puis rechercher et sélectionner le fichier qelectrotech.pro dans le dossier récupéré lors du git clone.

Si l'on veut juste compiler la dernière version dans un terminal sans passer par Qt creator:

git clone --recursive https://github.com/qelectrotech/qelectrotech-source-mirror.git
cd qelectrotech-source-mirror.git
mkdir build && cd build
qmake  ../qelectrotech.pro
make -j$(nproc)

https://qelectrotech.org/forum/viewtopi … 702#p19702
https://qelectrotech.org/forum/viewtopic.php?id=2313

Pour l'emplacement des collections, on peux maintenant choisir leurs emplacements à la volée dans le menu configurer QElectroTech depuis le logiciel, ce qui évite de rajouter les arguments de l’exécutable dans Qt creator.

Cordialement,
Laurent

403

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

Bonjour Robert,

1) on ne peut convertir un DXF que en tant que symbole, donc ce n'est pas très pratique de convertir un schéma.
2) ne connaissant pas Elec view et le format des projets enregistrés avec, je dirai que non.

Cordialement,
Laurent

404

(1 replies, posted in EN : Help, suggestions, discussions, ...)

https://qelectrotech.org/forum/viewtopi … 166#p18166

Yes you can, see
https://github.com/qelectrotech/qelectr … irror/wiki

git clone https://github.com/qelectrotech/qelectrotech-source-mirror.wiki.git

Edit: If you're interested, I can give you writing rights to the dokuwiki, if you want?

I think this readme can help you.
1) Yes.
https://github.com/qelectrotech/qelectr … IBUTING.md

Hello Karl,

you are welcome, we are very happy to saw you are a big open-source supporters and you using QElectroTech, thanks. nomicons/wink
I didn't know about your project and I love the idea.

Best regards,
Laurent

How we can help you?

Hello,
Old documentation for Qt creator
https://qelectrotech.org/wiki_new/doc/qt_creator

My old note for debian packaging: https://qelectrotech.org/wiki_new/doc/packaging_debian

https://github.com/qelectrotech/qelectr … ppImage.sh
https://github.com/qelectrotech/qelectr … Windows.sh
https://github.com/qelectrotech/qelectr … Flatpak.sh

https://github.com/qelectrotech/qelectr … y_arm64.sh

I've just remembered, while looking for something else on the forum, that this list of yarns was of interest to a lot of people. nomicons/wink

https://qelectrotech.org/forum/viewtopic.php?id=1743
https://qelectrotech.org/forum/viewtopic.php?id=2517

The list of wires is easily exploitable with Xmlstarlet, but for those who want a more specialized tool, like informations of the comments and location of master elements, etc..  connected to wires in the list, that will require a lot of code to work, like plc-user 's  C++ work.

Btw, I'm tried some projects modified with lastest version and I can't saw any crash with older QET version like 0.9, only these news informations added to XML can't be readed and not rewrited in olders versions.

Basically, old code from older versions of QET won't look for these new instructions added recently to the project XML, so if you save with an older version these instructions won't be rewritten.

Edit : with only Xmlstarlet you can extract more informations:
https://stackoverflow.com/questions/697 … th-subnode

xmlstarlet sel -T -t -m /project/diagram/conductors/conductor -s A:N:- "@num" -v "concat(@num,';',@conductor_color,';',@function,';',@tension_protocol,';',@conductor_section,';',@element1_label,';',@terminalname1,';',@element1_name,';',@element1_linked,';',@element2_label,';',@element2_name,';',@element2_linked,';',@terminalname2,';')" -n  sansnom2.qet  > test_liste3.csv

https://download.qelectrotech.org/qet/forum_img_2/1_schema.png

A little example for the Wire  number :10 connected on slave KA1 contact terminal name:13 to terminal name:14 off slave contact of KA2

scorpio810 wrote:

Hallo plc-user




Edit merged

xmlstarlet sel -T -t -m /project/diagram/conductors/conductor -s A:N:- "@num" -v "concat(@num,';',@conductor_color,';',@function,';',@tension_protocol,';',@conductor_section,';',@element1_label,';',@terminalname1,';',@element1_name,';',@element1_linked,';',@element2_label,';',@element2_name,';',@element2_linked,';',@terminalname2,';')" -n  test_terminal_name3.qet > test_liste3.csv

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

Re Edit:
J'ai du désactiver les informations "element1_linked" et "element2_linked" dans le code, un de mes projets plantait au chargement.. ainsi que le projet "Verweise.qet " de plc-user.. Ce qui est dommage car à la place de l'UUID on avait le label du contact esclave.


StephanS wrote:

Hello Laurent,

excuse me, here in English in case my descriptions were not so clear.
What I want to do is very simple:
Every element has a number of terminals that are connected with another element's terminals via conductors.
What I need to make is a human-readable list of these connections in that shape that later anybody can take this list and see
things like "Start: K1 (Terminal 3), End: XMAIN (Terminal 5), Color: Green, Diameter: 1mm²".
Therefore I want to find an elegant solution to set the terminal names without creating a new part each time that name is different.
Can you get my meaning? nomicons/smile

Hallo plc-user,

verstanden, ich dachte mir schon, dass das nicht ganz so einfach ist - Du hast aber erkannt, was ich gerne möchte nomicons/smile
Das mit den Verbindungen wäre weniger ein Problem, weil es bei uns alle gewohnt sind, Spleiße zu verwenden, um die Leiter zu verbinden.
Ich bin zwar auch in Qt "drin", bin aber letztens an irgendwelchen Abhängigkeiten gescheitert, sonst hätte ich mal schnell versucht, mich in das Projekt einzuarbeiten und ggf. einen kleinen "Hack" einzubauen. Probiere ich mal bei Gelegenheit nochmal aus...


Have a great weekend,
Stephan



Fixed on last commit.
With slave elements, you can find the master's label as well as its UUID.
It's just a workaround for now, waitting more news about plc-user 's advanced C++ /Qt works.

https://download.qelectrotech.org/qet/forum_img_2/relais_anexpng11.png
https://download.qelectrotech.org/qet/forum_img_2/relais_anexpng12.png

Bonjour et merci,


https://qelectrotech.org/forum/viewtopic.php?id=2724

Only drag and drop to the tiitlblock in the diagram..

Bonjour,

l'avantage des textes dynamiques c'est surtout le fait qu'on peux les modifier sans passer par l'éditeur d'élément, directement on the fly dans l'éditeur de schéma!

1 -> https://qelectrotech.org/forum/viewtopi … 256#p16256
2-> you have insert %prefix in the rule for formula and if show contactor or relays add letter "K"
5 ->https://qelectrotech.org/forum/viewtopic.php?pid=18748#p18748
6 -> No, but you can copy these off other project.

Maybe an example with Leiterbeschriftungen exportieren
https://github.com/qelectrotech/qelectr … export.cpp

https://github.com/qelectrotech/qelectr … r.cpp#L458
https://github.com/qelectrotech/qelectr … r.cpp#L835
https://github.com/qelectrotech/qelectr … .cpp#L1559

Tip:

            //We must define if the connected terminal is a folio report, if it is the case
            //we don't add the num to the hash because the terminal doesn't represent a real terminal.
            if(!(c->terminal1->parentElement()->linkType() & Element::AllReport))
            {
                int value = m_hash.value(num, 0);
                ++value;
                m_hash.insert(num, value);
            }
            if(!(c->terminal2->parentElement()->linkType() & Element::AllReport))
            {
                int value = m_hash.value(num, 0);
                ++value;
                m_hash.insert(num, value);
            }

Great. nomicons/wink

Hallo plc-user,

good job. nomicons/wink

What program you use for that?

Hallo plc-user

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

In principle I agree with you, all this information shouldn't be added in the QET file, it's just a little hack on my part for the qmcc request to quickly found and export export to csv file with xmlstarlet wires list.
An experienced electrician doesn't need this list to wire the cabinet and knows how to read an electrical diagram.

Maybe I'll think about removing on my commits.

Hallo plc-user




Edit merged

xmlstarlet sel -T -t -m /project/diagram/conductors/conductor -s A:N:- "@num" -v "concat(@num,';',@conductor_color,';',@function,';',@tension_protocol,';',@conductor_section,';',@element1_label,';',@terminalname1,';',@element1_name,';',@element1_linked,';',@element2_label,';',@element2_name,';',@element2_linked,';',@terminalname2,';')" -n  test_terminal_name3.qet > test_liste3.csv

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

Re Edit:
J'ai du désactiver les informations "element1_linked" et "element2_linked" dans le code, un de mes projets plantait au chargement.. ainsi que le projet "Verweise.qet " de plc-user.. Ce qui est dommage car à la place de l'UUID on avait le label du contact esclave.

qmcc wrote:

Bonjour,

Merci plc-user et scorpio810 pour votre aide !

scorpio810: Un petit dessin dans un code est plus pragmatique que 3 pages d'explications nomicons/smile

J'ai importé mon fichier .qet dans Excel en passant par l'Editeur Power Query pour "parser" le texte xml,
puis je récupère dans Excel les informations qui m’intéresse sur les conducteurs.

Encore un peu de mise en forme dans Excel et ça devrait etre bon.

https://xmlstar.sourceforge.net/doc/xmlstarlet.pdf

J'obtient il me semble le même résultat que toi avec une seule ligne de commande sur ma Debian avec xmlstarlet.


xmlstarlet sel -T -t -m /project/diagram/conductors/conductor -s A:N:- "@num" -v "concat(@num,';',@conductor_color,';',@function,';',@tension_protocol,';',@conductor_section,';',@element1,';',@terminalname1,';',@element2,';',@terminalname2,';')" -n  test_terminal_name3.qet

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


Result:

10;black;start;;0.5mn2;{0a20780e-16b6-4198-b487-a0a22c37b1a0};A1;{f253c71e-38a7-4155-8ab4-a844ced1a227};14;
10;blue;speed;;0.5mn2;{ab3f9e64-382d-4f46-b777-7e64df3c842e};A1;{c31acffc-355c-4720-b8c9-f898854c4f96};14;
13;grey;break;;1.5mn2;{f0307d85-136f-44c8-9845-21138432b71e};A1;{ab572a73-ab0c-4a10-bfc2-7b6d643a02d3};14;
42;green;;;1.5mn2;{f253c71e-38a7-4155-8ab4-a844ced1a227};13;{485965c2-5b29-4837-9d80-39f7771b066d};1;
42;green;;;1.5mn2;{9e50f760-832d-4d89-997b-c069d3768c11};1;{c31acffc-355c-4720-b8c9-f898854c4f96};13;
42;green;;;1.5mn2;{9e50f760-832d-4d89-997b-c069d3768c11};1;{ab572a73-ab0c-4a10-bfc2-7b6d643a02d3};13;

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

Inputs and outputs tables are only used for cables, at least here in France, because here each wire end is numbered with the same label on both sides and on the other wires that have the same equipotentiality.

report folio L1 with 2 report folio and connected to terminal 13 of slave NO contact of KA1 coil.
https://download.qelectrotech.org/qet/forum_img_2/relais_anexpng4.png