Topic: sorting order terminals

the sorting order of the conducturs is not saved
after having filled all the fields hose and conductor I closed the application
when reopening the order is not the same anumore

also the hose and conductor are not on the correct line for some of the terminals

Always using the latest development version

Re: sorting order terminals

You need to order -> generate X1 terminal-block and Quit and close your QET project without saving!
Re launch your QET project and re open terminal block plugin. Order is saved.

"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 !

3 (edited by andi11 2024-07-26 16:40:02)

Re: sorting order terminals

is it possible that in the current 0.1 dev is an bug together with the plugin?
Sorting the terminals in the pugin works. After that I closed QET without saving. Importing shows the correct sorting of the terminals.
Reopening the plugin shows the "old" sorting.
Also when i understand the source correctly, it should be able to click on some columns, and the elements should be sorted

https://github.com/raulroda/qet_tb_gene … 5420ab5f8b
But nothing happens, when i click or doubleclick for example XREF

Re: sorting order terminals

eventuall it's a problem that my blocks are called for example X4:01u or X4:01o because it's an multi row terminal.

The dev version of the newer terminal block manager can do this mutli row setup, but it doesn't show the signal name

5 (edited by andi11 2024-07-28 10:35:14)

Re: sorting order terminals

i made a deeper dive into the source of the plugin

Within the plugin i switched positions with the down button.
Attached is example file and backup from the plugin created. Source is from here https://github.com/raulroda/qet_tb_generator-plugin

The upper part "update terminals" from the screenshot is generated within

    def update_terminals(self, data):
        """Changes the config of every terminal in the diagra. The changes made 
        in the plugin will be save in the 'elementInformation' of every
        terminal."""
        print('update terminals')
        for diagram in self.qet_project.findall('diagram'):  # all diagrams(pages)
            for element in diagram.iter('element'):  # all elements in diagram
                dt = [x for x in data if x['uuid'] == element.attrib['uuid']]
         

The lower part lists the tree withing "def save_tb(self, filename)"

It looks as if the properties of the terminals are switched (ground and standart) and not, like i hoped the positions within the plugin.

Post's attachments

Attachment icon ohne Namen.qet 26.2 kb, 62 downloads since 2024-07-28 

Attachment icon ohne Namen_108.qet 26.2 kb, 63 downloads since 2024-07-28 

Unbenannt.PNG, 57.28 kb, 675 x 814
Unbenannt.PNG 57.28 kb, 58 downloads since 2024-07-28 

Re: sorting order terminals

does this mean there is a need for a new version of the generator?

Always using the latest development version

Re: sorting order terminals

i think so. In my opinion there is an bug that doesn't store the sorting correctly in all cases.

Re: sorting order terminals

Any news regarding this issue?

Always using the latest development version

Re: sorting order terminals

Please open an issue here https://github.com/raulroda/qet_tb_generator-plugin

"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: sorting order terminals

Bonjour,

J'ai un projet qui fait planter le qet_tb_generator, la version standalone aussi. On voit le script de démarrage sous la fenêtre dos s'executer et le logiciel s’arrête. J'ai essayé d'utiliser la sauvegarde mais elle se comporte pareil. Idem pour des sauvegarde plus anciennes. Je ne sais donc pas quand le projet s'est mis dans cet état sachant que je n'avais pas utilisé le générateur de bornier jusque là. Le générateur de bornier est fonctionnel avec d'autre projets.  Avez vous une solution s'il vous plait? Manipulation ou procédure de récupération de purge sur le projet? (le clean n'a pas marché non plus).

Re: sorting order terminals

Bonjour Thomas,

ton projet contient des logos SVG dans les cartouches?
Si tu as un backup fonctionnel de ce projet, regardes si tu peux le partager ici.

"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: sorting order terminals

Non mon projet ne contient pas de logo SVG dans les cartouches. Il y a juste des image dans l’écran de titre . Je sais aussi qu'a un moment j'ai relié une borne "classique" avec une borne à une seule entrée et que j'ai effacé ça.

Comment envoyer un fichier ici?

Re: sorting order terminals

Édites ton ancien post, et tu devrais voir choisir un fichier et le joindre.

"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: sorting order terminals

Ça veut pas me le prendre, il est trop gros.

Re: sorting order terminals

thomas.martin198 wrote:

Ça veut pas me le prendre, il est trop gros.

Your Project-file is too big?
Use zip to compress and try again.

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – 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: sorting order terminals

ok c'est bon le problème est résolje . C'était des bornes non reliées qui posaient probleme (je constitue ue reserve). Je l'ai relié tout est bon maintenant. Merci.

Re: sorting order terminals

scorpio810 wrote:

Please open an issue here https://github.com/raulroda/qet_tb_generator-plugin


I made the issue on github
https://github.com/raulroda/qet_tb_gene … n/issues/5

until now no reaction
the solution is there only someone needs to implement it

or when to expect this functionality in QET itself?

Always using the latest development version

Re: sorting order terminals

andi11 wrote:

i made a deeper dive into the source of the plugin

Within the plugin i switched positions with the down button.
(...)
It looks as if the properties of the terminals are switched (ground and standart) and not, like i hoped the positions within the plugin.

LievenC wrote:

the solution is there only someone needs to implement it

The source code of qet_tb_generator has not been changed for four years. How high do you think the chances are that it is being worked on “today”?

The plugin is python code: Can't you perhaps get together with someone who "speaks" Python and see how the problem can be fixed, LievenC and andi11?
You seem to have already found the problematic part...

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – 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: sorting order terminals

how can I attach files? I think i fixed it. I also did some more minor improvements in the files.
So posting it fix for the "sorting order" bug is not 100% correct, because it includes more changes.

Re: sorting order terminals

andi11 wrote:

how can I attach files?

Click on button "Preview reply" then there is a button to search the attachment on your system.
Important: You have to click "Add file" to upload the attachment!

andi11 wrote:

I think i fixed it. I also did some more minor improvements in the files.
So posting it fix for the "sorting order" bug is not 100% correct, because it includes more changes.

I guess there are some users looking forward to it!

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – 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 !