2 2026-05-09 22:58:37 (edited by achim 2026-05-09 23:00:59)
Re: cable management
Ich glaube ich muss die Euphorie hier mal ein wenig bremsen. Ich bin mir nicht sicher ob der
Code schon produktiv einsetzbar ist.
Die ursprüngliche Idee war eine Art Kabelassistenten zu haben, der einem das Beschriften und
das zeichnen von Kabeln erleichtert. Und so ist die Funktion auch geschrieben: Die Leiter werden
markiert, die Kabeldaten im Dialog ergänzt und letztendlich die Symbole für jeden Leiter einzeln
gezeichnet. Nachteil ist eindeutig das jeder Leiter ein eigenes Symbol bekommt und nicht ein Symbol
für das ganze Kabel.
Es fehlt alles was zu einem Kabelmanagement gehört.
- Kabel bearbeiten
- erstellen von Kabellisten
- verwalten von Kabeln
Ich habe mal den Code in mein Repo
https://github.com/ChuckNr11/qelectrotech-source-mirror branch cable_assist
hochgeladen. Vielleicht könnt ihr mal testen und mitteilen was ihr davon haltet
with translator
I think I need to temper the enthusiasm here a little bit. I'm not sure if this code is ready for
production use yet.
The original idea was to create a sort of "cable assistant" to simplify the labeling and drafting of cables.
And that is exactly how the function is implemented: the individual conductors are selected,
the cable data is entered via a dialog, and finally, symbols are drawn for each conductor individually.
The clear downside is that each conductor receives its own separate symbol, rather than a single symbol representing the entire cable.
It completely lacks all the features typically associated with cable management:
- Editing cables
- Generating cable lists
- Managing cables
I have uploaded the code to my repository here:
https://github.com/ChuckNr11/qelectrotech-source-mirror branch cable_assist
Perhaps you could give it a test run and let me know what you think.
Re: cable management
Wird durch den Code denn bereits die Kabelvariable in dem XML-Code angepasst oder ist es nur optisch?
Re: cable management
---FR---
Bonjour Achim,
j'ai vue la vidéo c'est super. Je comprend tout à fait l'aspect (et c'est très bien de le mentionner) qu'il s'agit "juste" d'un assistant de dessin et qu'il n'y à pas vraiment de notion de câble derrière. J'y ai déjà longuement réfléchie de comment faire les gérer les cable de manière sérieuse dans QElectroTech, si vous voulez aller plus loin sur ce sujet, je peut vous exposer mes réflexion et en parler ensemble. C'est un très gros sujet, mais qui peut être coupé un petit morceau qui eux même pourront être utiliser ailleurs dans Qet.
--------EN--------
---Translated---
Hi Achim,
I watched the video—it's great. I completely understand the point (and it's great that you mentioned it) that this is “just” a drawing assistant and that there isn't really a concept of wiring behind it. I’ve already thought long and hard about how to handle cables properly in QElectroTech. If you’d like to explore this topic further, I can share my thoughts with you and we can discuss it together. It’s a very broad topic, but it can be broken down into smaller pieces that could be used elsewhere in Qet.
Re: cable management
@ Kellermorph
Wenn Du meinst ob das Kabelsymbol in der .qet Projektdatei enthalten ist, ja, ist es.
Aber halt nicht als ein komplettes Symbol sondern, wie im Video dargestellt, sind es 4 Symbole
und eine Linie.
with translator
If you are asking whether the cable symbol is included in the .qet project file—yes, it is.
However, it is not included as a single complete symbol; instead—as shown in the video—it consists of four symbols and a line.
6 Yesterday 22:58:52 (edited by achim Yesterday 22:59:56)
Re: cable management
Für die, die mal testen wollen, habe ich mal das Symbol angehängt.
Da man noch nichts einstellen kann, muss das Symbol in die Benutzersammlung in einen
Ordner 'symbole' mit Unterordner 'w' gepackt werden.
Oder in der diagrameventaddcable.cpp in Zeile 422 den Pfad anpassen.
Den Code habe ich inzwischen etwas aufgeräumt und teilweise auch die Kommentare
ins englische übersetzt.
For those who would like to test it out, I have attached the symbol.
Since no settings can be configured yet, the symbol must be placed in the user collection—specifically in a
folder named 'symbole' with a 'w' subfolder.
Alternatively, you can adjust the path in `diagrameventaddcable.cpp` on line 422.
I have since tidied up the code a bit and, in some places, translated the comments
into English.
Re: cable management
Sorry, keine Datei, man hält mich für einen Bot.
Ich versuche es morgen noch einmal
Re: cable management
Ne ich meine den Eintrag in die XML. dort gibt es ja unter Leitereigenschaften schon das Feld für Kabel.
Das mit dem Bot habe ich auch. Ist irgendein Bug. Wenn du im nachhinein dein Beitrag bearbeitest, kannst du Dateien hochladen.
9 Today 23:02:25 (edited by achim Today 23:02:44)
Re: cable management
@ Kellermorph
Nein, das Feld habe ich nicht benutzt.
Im Anhang noch nochmal das Kabelsymbol.
