Topic: elements autonumbering but alphabethically

Hi.

after a bit of struggle. Because I'm pretty new.
I'd like to apply alphabetically numbering to an element. Because its required for Belgian electrical schematicals. A.R.E.I.

https://qelectrotech.org/forum/misc.php?action=pun_attachment&item=2739&download=0&secure_str=6560f13
Not a screenshot from QET.

Is it possible.

I figured its in the automumbering.

https://qelectrotech.org/forum/misc.php?action=pun_attachment&item=2740&download=0&secure_str=6560f13

I cant find it in the Help or Youtube files.

Thanks in advance.
Greetings from Belgium

Post's attachments

2.png, 12.77 kb, 555 x 440
2.png 12.77 kb, 63 downloads since 2023-10-15 

A.png, 15.92 kb, 1171 x 411
A.png 15.92 kb, 66 downloads since 2023-10-15 

Re: elements autonumbering but alphabethically

Hi,
Alphabetically numbering isn't implemented yet.
If anyone wants to take care of it?

https://github.com/qelectrotech/qelectr … es/autoNum

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

Re: elements autonumbering but alphabethically

Thanks.
Unfortunitly I only have started learning python.
For now.
Using numbers... when I make a simple sequence and incrementing it by 1. And then I for some reason I delete an element. And place another element instead with the same autonumbering I get this... See screenshot.

The value itself is being changed.
Is that a bug or a feature? And could I make it hounor my formula?

Post's attachments

3.png, 28.01 kb, 1057 x 587
3.png 28.01 kb, 67 downloads since 2023-10-15 

Re: elements autonumbering but alphabethically

It's not a bug it's a feature nomicons/grin .
Seriously, the autonumbering don't take count of deleted element, and so by consequence the numbering stay at the same state and cause the gap you describe in your screenshot

Développeur QElectroTech

Re: elements autonumbering but alphabethically

Hi,

I'm also facing the same "problem." I very often find myself having to delete elements and then go to "configure" and manually adjust the element number back to its previous state...

I understand that it is useful in some way for the numbering to remain consistent, but in my opinion, it is more of a bug than a feature, unfortunately nomicons/sad . Since I have to go to "Configure" and then to the "Elements" tab every time...

It would be great to fix this problem somehow, perhaps by implementing it in a specific version.

I tried to do it myself, but I am struggling to understand the code and functionality...

Thank you very much

Re: elements autonumbering but alphabethically

Sorry, but I don't understand.

What I would like to do, and I think it's the easiest way to implement it, is when I delete an element, the autonumbering takes it into account, so if I delete element 05, and add another element it would still be 05 and not 06.

Could you please help me identify the lines of code that need to be modified?

Thank you very much!

Re: elements autonumbering but alphabethically

Hi,
maybe see https://github.com/qelectrotech/qelectr … mmands.cpp

Doxygen:
https://download.qelectrotech.org/qet/d … tonum.html

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