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
You are not logged in. Please login or register.
QElectroTech → Posts by scorpio810
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
Yes you can, see
https://github.com/qelectrotech/qelectr … irror/wiki
git clone https://github.com/qelectrotech/qelectrotech-source-mirror.wiki.gitEdit: 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. ![]()
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
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. ![]()
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
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
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
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.
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?Hallo plc-user,
verstanden, ich dachte mir schon, dass das nicht ganz so einfach ist - Du hast aber erkannt, was ich gerne möchte
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.

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.
Hallo plc-user,
good job. ![]()
What program you use for that?
Hallo plc-user

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

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.
Bonjour,
Merci plc-user et scorpio810 pour votre aide !
scorpio810: Un petit dessin dans un code est plus pragmatique que 3 pages d'explications
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

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;
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.
Hallo plc-user,
for master and slave element see pictures and attached project.
Off course isn't easy to found.


Best regards,
Laurent
scorpio810: Un petit dessin dans un code est plus pragmatique que 3 pages d'explications 
Merci, mais j'ai été limité par la taille du document, en vert on pointe vers l’élément 2 la bobine en A1 qui n'apparait pas dans la capture d’écran.
Te reste à trouver comment avec le UUID element1, UUID element2 leurs labels avec Excel...Python, etc..
Ne pas oublier de partager ce que tu auras trouvés, cela devrait intéresser pas mal de monde ici. ![]()
Cordialement,
Laurent
QElectroTech → Posts by scorpio810
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.093 seconds (37% PHP - 63% DB) with 5 queries