1 (edited by a.deoliveira 2023-05-03 13:47:19)

Topic: Sort by ID and not by POS

Hello everyone,

I wanted to sort my terminal block by ID and not by POS because i have many terminal block and its very long to sort them manually with arrows ...

Is that possible to do so ?

Thanks you !

Re: Sort by ID and not by POS

Hi,

please send your project, if you want?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Sort by ID and not by POS

Hello !

I cant send you my project, only pictures ...

On the screenshot, you can see that i name my terminal block like this : X3:XIO-XX.X

Why there are not sorted by ID ?

It generate it like that, i didn't make modification ...

Post's attachments

Attachment icon Capture d’écran 2023-05-04 135013.png 121.5 kb, 41 downloads since 2023-05-04 

Re: Sort by ID and not by POS

I assume that the sorting code stop at "XIO" and it didn't sort with "XX.X"

Re: Sort by ID and not by POS

https://qelectrotech.org/forum/viewtopi … 070#p17070

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Sort by ID and not by POS

On the screenshot, you can see that i name my terminal block like this : X3:XIO-XX.X

It 's bad!!
Your block is "XIO:X"  like : XIO:1 XIO:2 etc. And use un interger for ID not use decimal !!!
Also hacks python code qet_tb_generator for your functions you want to use.

Source here: https://github.com/raulroda/qet_tb_generator-plugin

https://github.com/raulroda/qet_tb_gene … gin/pull/3

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Sort by ID and not by POS

Je viens de m'apercevoir que vous palez Français ahah..

Merci pour les réponses !

J'étais persuadé qu'il fallait mettre un chiffre devant mon bornier pour qu'il soit reconnu comme un bornier mais en faite non ...
Donc c'est pour ça que j'avais utilisé la forme X03:XIO et non XIO: ...

Je comprends mieux pourquoi ça n'était pas trié dans l'ordre ...


Merci encore !

Re: Sort by ID and not by POS

Si j'ai pu t'aider, c'est tant mieux.

Cordialement,
Laurent

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Sort by ID and not by POS

Je viens de m'apercevoir que vous palez Français ahah..

oui, c'est un logiciel Français.. avec des contributeurs de tous les pays.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Sort by ID and not by POS

J'en apprends tous les jours, vive la France !

Merci encore pour les réponses !

Re: Sort by ID and not by POS

https://github.com/qelectrotech/qelectr … rce-mirror

Story
The QElectroTech project was founded in 2007 by two french students, Xavier and Benoit.
Xavier developed the base application itself and made all technical choices about the development.
The first version of QET (0.1) was released on 09.03.2008.
However, both Xavier and Benoit do not participate anymore in the project since 2013.

Following this period, new developers and contributors took over the project and kept it alive.
The development and the many translations are actively maintained.
New functionalities and evolutions are planned to make QET ever better.

Nowadays, QET is not only used by many individuals, teachers and students but also by professional electricians and companies all over the world.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."