Re: Discussion sur le générateur de borniers.

Terminal strip: save the layout (font, cell sizes...) in the project
The default terminal strip layout was rebuilt at every project load,
so the font size set in the layout editor was reset to 15 px.
Add TerminalStripLayoutPattern::toXml/fromXml and
TerminalStripLayoutsHandler::toXml/fromXml, write a
<terminal_strip_layout> element in QETProject::toXml() and read it
before the diagrams are loaded. Projects without it keep the defaults.
https://github.com/qelectrotech/qelectr … b245b7b84b

Terminal strip: add an anti-parallel diodes terminal type
Add ElementData::TTAntiParallelDiodes (xml value "antiparallel_diodes"),
selectable in the element editor, the terminal strip editor and the free
terminal editor, and drawn in the terminal strip plan as two diodes wired
in opposite directions between the top and the bottom of the terminal.
https://github.com/qelectrotech/qelectr … 81913583c7

Terminal strip: remove the circles at the end of connections and wires
Draw the top/bottom connections of the terminals and the wires under
the cable as plain lines, without the small circle at their end.
https://github.com/qelectrotech/qelectr … f32b318f05

Terminal strip: add resistor, varistor, test socket and reversed diode types
Add ElementData::TTResistor, TTVaristor, TTTestSocket and TTDiodeReversed
(xml values "resistor", "varistor", "test_socket", "diode_reversed"),
selectable in the element editor, the terminal strip editor and the free
terminal editor, and drawn in the terminal strip plan.
https://github.com/qelectrotech/qelectr … d2a4733058

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

Terminal strip: add a label filter to the free terminals table
https://github.com/qelectrotech/qelectr … 674e292068

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

https://private-user-images.githubusercontent.com/19955399/670401990-df5cca07-6a9a-471c-aaae-66148aa5eca4.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWI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FLNFpBJTJGMjAyNjEwMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMDExVDEyMTQ1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThmNTFhMjAxZDk5OTYzNDI1MTExMDMwMTdkYmUwMTllOTU4MTAzMzNhZDA4MWU5MTNkOGU5ZmFlYWFkMDM1NzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.kcW4Ne0ZKVE6DDlxaIKzQMOYYoXOmbYE7TuS_FRyFl4

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

scorpio810 wrote:

Salut oc67,

Merci pour ta proposition, mais je ne suis pas sûr d’avoir bien compris ton idée, et la fatigue n’aide pas ;o)

Si je résume : tu voudrais choisir, pour chaque type de borne, un élément de ta bibliothèque, et le générateur l’afficherait tel quel dans le plan de bornier, en s’occupant de tout le reste (connexions, repères, numérotation). C’est bien ça ?

Pour être sûr de bien comprendre, peux-tu donner un exemple concret ou un petit croquis de ce que tu voudrais obtenir ? Par exemple un type de borne que tu ne peux pas représenter aujourd’hui, et comment tu voudrais qu’il apparaisse dans le plan.

Merci pour ta contribution !


C'est exactement ça.
Pour les dimensions à toi de nous dire la plage mini/maxi (à cause de la conversion éléments ->bitmap) pour éviter que ça devienne moche.
Dans mon cas d'usage, c'est principalement des bornes couleurs pour coller à la réalité et la largeur suivant la section admissible qui diffère entre du 2,5mm2 et 25mm2.


Bon courage à toi.

Cordialement

Électricien

Re: Discussion sur le générateur de borniers.

Merci pour la précision. Si je comprends bien, ton besoin principal est la couleur de la borne et une largeur qui dépend de la section (1,5 mm² vs 25 mm²). Plutôt que d’afficher un élément quelconque, je pense plus simple d’ajouter à chaque borne une couleur et une largeur (ou une section) que le plan de bornier dessinerait directement : pas de conversion en bitmap, donc pas de limite de taille à craindre. Est-ce que ça couvrirait ton cas ?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

Si tu peux t'en charger, je suis complètement KO en ce moment.....

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

scorpio810 wrote:

Merci pour la précision. Si je comprends bien, ton besoin principal est la couleur de la borne et une largeur qui dépend de la section (1,5 mm² vs 25 mm²). Plutôt que d’afficher un élément quelconque, je pense plus simple d’ajouter à chaque borne une couleur et une largeur (ou une section) que le plan de bornier dessinerait directement : pas de conversion en bitmap, donc pas de limite de taille à craindre. Est-ce que ça couvrirait ton cas ?

Me concernant, ça me va.

Merci à vous.

Électricien

Re: Discussion sur le générateur de borniers.

Me concernant, ça me va.

Merci à vous.

J'attends ta PR.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

Dans l’éditeur d’élément

Une borne Phoenix 2,5 mm² est grise et fait toujours la même largeur. Cette propriété appartient au produit, donc à l’élément.
Elle est réutilisable : chaque instance posée dans un projet en hérite, sans ressaisie.
À terme, la largeur pourrait être le vrai pas du produit (5,2 mm, 6,2 mm, etc.), plus fidèle qu’un simple calcul à partir de la section.
Contrepartie : il faut étendre le format de l’élément (nouvelles informations), mettre à jour l’éditeur et ajouter des valeurs dans les éléments de la collection. Les éléments existants n’auront rien, donc il faut un comportement par défaut.

Depuis terminal_strip, à la génération

C’est rapide : pas de changement de format d’élément, ça marche tout de suite avec les éléments actuels.
Mais c’est de la saisie à refaire pour chaque borne, perdue si on remplace l’élément, et non réutilisable d’un projet à l’autre.

Ma suggestion est de combiner les deux. L’élément porte les valeurs par défaut (couleur, section ou largeur), et le bornier les lit. La surcharge au niveau du terminal_strip reste possible pour les cas particuliers, comme une borne de terre à forcer en vert/jaune ou un élément ancien sans valeur. Le dessin applique l’ordre de priorité : surcharge du bornier, puis valeur de l’élément, puis défaut actuel.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

https://download.qelectrotech.org/qet/forum_img_2/terminal_strip1.png
https://download.qelectrotech.org/qet/forum_img_2/terminal_strip2.png

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

https://download.qelectrotech.org/qet/forum_img_2/terminal_strip3.png
https://download.qelectrotech.org/qet/forum_img_2/terminal_strip4.png
https://download.qelectrotech.org/qet/forum_img_2/terminal_strip5.png

Post's attachments

Attachment icon bornier-couleur-section.patch 33.83 kb, 20 downloads since 2026-10-15 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

https://download.qelectrotech.org/qet/forum_img_2/terminal_strip6.png
https://download.qelectrotech.org/qet/forum_img_2/terminal_strip7.png
https://download.qelectrotech.org/qet/forum_img_2/terminal_strip8.png
https://download.qelectrotech.org/qet/forum_img_2/terminal_strip9.png

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

https://download.qelectrotech.org/qet/forum_img_2/terminal_strip10.png
https://download.qelectrotech.org/qet/forum_img_2/terminal_strip11.png

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

Element editor: add section, width and color to terminal elements
Terminal block elements can now define, in the element properties
dialog (Terminal block element group):
- the section in mm2 (combo box with the usual sections, editable)
- the width / manufacturer reference (Weidmuller, Phoenix Contact,
  WAGO, ABB Entrelec), filtered by the selected section
- the color, using the palette of the terminal strip (editable,
  accepts a name, #rrggbb or #rrggbb/#rrggbb)

Values are stored in the element informations (terminal_section,
terminal_width, terminal_color) with the dot as decimal separator,
the keys already read by RealTerminal. An empty value removes the key.

The sections and the manufacturer widths move from
terminalstripmodel.cpp to the new header-only terminalcatalog.h,
shared by the terminal strip editor and the element editor.

Terminal sections: show the AWG equivalent in the section lists
The section combo boxes of the terminal strip editor and of the
element editor now show the nearest AWG / kcmil size next to the
section in mm2, for example "2.5 mm² (AWG 14)".

The correspondence is approximate (the two systems don't have the
same steps) and is stored in TerminalCatalog::awgForSection().
The stored value is unchanged (terminal_section, in mm2).

Terminal catalog: more manufacturer widths and manufacturer filter
Extend the terminal catalog (terminalcatalog.h) with the widths of
more terminal blocks, from the catalogs of Phoenix Contact (UT),
Weidmuller (WDU), WAGO (TOPJOB S 2002/2006), ABB Entrelec (M series)
and Legrand (Viking 3). For Legrand and ABB Entrelec the value is the
pitch given by the catalog.

Each entry now carries its manufacturer, and the element properties
dialog gets a "Manufacturer" combo box before the width one. The list
of widths is filtered by manufacturer and by the selected section; if
the manufacturer has nothing for that section, all its terminals are
listed. The combo box is created by the code, no change in the .ui.

Terminal strip drawer: show only the terminal number, fit texts to cells
- Draw only the terminal number (the part after the last ':') instead of
  the full label (e.g. "1" instead of "XAUZ1:1"); the terminal manager
  and tree still show the full label.
- Clip each text to the width of its terminal and shrink the font in
  narrow terminals so that texts no longer overlap their neighbours.
- Remove the wire entry mark in the lower part of the terminal body,
  which overlapped the cross reference text.

Terminal strip drawer: draw terminals like a real terminal block
- Draw only the terminal number (part after the last ':'), the strip
  name is already in the header; the manager and the tree still show
  the full label.
- Clip texts to the width of their terminal and shrink the font in
  narrow terminals so they no longer overlap.
- New housing: body with narrower wire entry caps and a slope between
  them, grey by default (terminals with a color or a ground type keep
  theirs); stripes are clipped to this shape.
- White marker tags behind the number and the cross reference, fitted
  to the text and its alignment; black ribbed tags for isolating
  (sectional) terminals.
- Clamping parts (screw in a window, castle tab, big center circle, tab,
  screw) drawn in the free zone between the two tags, whatever the
  layout; fewer parts if the zone is small.
- Remove the wire entry mark that overlapped the cross reference text.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

https://download.qelectrotech.org/qet/forum_img_2/terminal_strip12.png
https://download.qelectrotech.org/qet/forum_img_2/terminal_strip11.png
https://download.qelectrotech.org/qet/forum_img_2/terminal_strip14.png
https://download.qelectrotech.org/qet/forum_img_2/terminal_strip15.png

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

scorpio810 wrote:

https://download.qelectrotech.org/qet/forum_img_2/terminal_strip12.png
https://download.qelectrotech.org/qet/forum_img_2/terminal_strip11.png
https://download.qelectrotech.org/qet/forum_img_2/terminal_strip14.png
https://download.qelectrotech.org/qet/forum_img_2/terminal_strip15.png

Ha ouai. Vraiment beau.

J'attends impatiemment les vacances pour tester.

Merci

Électricien

Re: Discussion sur le générateur de borniers.

Ha ouai. Vraiment beau.

J'attends impatiemment les vacances pour tester.

Merci

Merci nomicons/wink

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

Terminal strip: xref as plain text, same size for every marker tag
- The xref is drawn as plain text, without marker tag.
- Every marker tag of the terminal numbers has the same length
  (two digits), the font is reduced when the number is longer.
- The body of every terminal reserves the zone of the longest xref
  of the strip, so all terminals of a strip are drawn the same way.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

Terminal strip: marker tags calibrated on the longest number of the strip
Every marker tag of a strip has the length of its longest terminal
number (at least two digits), so three-digit numbers are no longer
reduced. The font is still reduced if a number doesn't fit the text
zone of the layout.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Discussion sur le générateur de borniers.

https://qelectrotech.org/forum/viewtopi … 508#p23508
https://qelectrotech.org/forum/viewtopi … 516#p23516

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !