Topic: uuid of terminals

Hello.

I wrote a small utility for myself to check if the terminals of certain elements are connected in a specific way.
From the version 0.9 I see that the uuid of the terminals are stored with the definition of the element and not with the instance of the element.
So now I am checking if the conductor has an element associated with the terminal and then I must find the embedded element abstract definition, but I can not find the connection between the terminals in the instance and the abstract definition.

For example I am using the element "terminal0.elmt".
The instance of the element has these terminals:

    <terminals>
        <terminal x="0" y="-6" orientation="0" id="28"/>
        <terminal x="0" y="6" orientation="2" id="29"/>
    </terminals>

and the abstract definition has these terminals:

    <terminal x="0" y="10" uuid="{51a62d3d-0e7d-4a4f-8592-1097c4443939}" type="Outer" orientation="s" name=""/>
    <terminal x="0" y="-10" uuid="{313b15c6-80c1-497b-887a-a113bd9ea46d}" type="Generic" orientation="n" name=""/>

How can I know which terminal is which?
(in this simple example maybe I can deduce which is which, but for more complex elements I don't know how is it possible)

I also thought that having an uuid for every instance of the terminals was a good idea. Can somebody explain to me why this new concept is better?

Thanks for any feedback.

Br, Greg

Re: uuid of terminals

Hello Greg,

https://qelectrotech.org/forum/viewtopi … 024#p13024
https://qelectrotech.org/forum/viewtopic.php?id=1743

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