1 (edited by Kellermorph Yesterday 21:37:31)

Topic: Verdrahtungsplan / wiring diagram

Ich habe ein Python-Skript geschrieben, welches aus der .qet Datei die Verbindung, den Anschluss und deren Eigenschaften extrahiert.
Dies funktioniert auch Seiten übergreifend.
Man muss hier nur darauf achten, dass die Verbindungen so gezogen sind, wie sie nachher im Schaltschrank angeschlossen werden.
Als Beispiel:
Man kommt von einem Querverweis. Dieser geht auf das erste Bauteil. Von dem ersten Bauteil geht man dann zum zweiten Bauteil. Vom zweiten Bauteil geht man dann zum dritten Bauteil und vom dritten Bauteil zum Querverweis zur nächsten Seite. Dies ist nötig, damit die Verbindungen in die .qet Datei richtig geschrieben werden.

Optional kann man aktivieren, dass man eine CSV als Debugausgabe sowie eine CSV bekommt, die angibt, welche Verbindungen rausgefiltert wurden, da diese als doppelt erkannt wurden.

Die ausgegebene Datei wird an dem Ort, an dem die QET Datei liegt gespeichert.

Sollte der Wunsch bestehen, diese Funktion direkt in QET zu implementieren, kann ich versuchen hieraus eine C++ Datei zu erstellen.

English:
I wrote a Python script that extracts the connection, port, and their properties from the .qet file.
This also works across pages.
You just have to make sure that the connections are drawn the way they will be connected in the control cabinet.
For example:
You come from a cross-reference. This goes to the first component. From the first component, you then go to the second component. From the second component, you then go to the third component and from the third component to the cross-reference to the next page. This is necessary so that the connections are written correctly in the .qet file.

Optionally, you can enable the option to receive a CSV as debug output and a CSV that specifies which connections have been filtered out because they were recognized as duplicates.

The output file is saved in the location where the QET file is located.

If you would like to implement this function directly in QET, I can try to create a C++ file from this.

Translated with DeepL.com (free version)

Post's attachments

Attachment icon Adern.py 34.35 kb, file has never been downloaded.