Topic: Change in terminals of new elements and conductors xml format v0.9
Hi,
I have a script that number de conductors in my project using the color of the conductor and the order of the elements by folio, X-position and Y-position. I extract the group of conductors that are suppose to have the same number using the id of the terminals in the element.
But with the v0.9 I'm having a problem, some conductors don't have the terminal as is in the element but the UUID of the terminal as in the collection and the UUID of the element it belongs to:
<conductor horizontal-alignment="AlignBottom" displaytext="1" formula="" text_color="#000000" conductor_section="" num="_" cable="" tension_protocol="" bus="" numsize="7" y="0" horizrotatetext="0" type="multi" dash-size="2" color2="#000000" x="0" onetextperfolio="0" element2="{d9b0ea30-87a5-4a55-9fb8-56e6d9d03bab}" condsize="1" vertirotatetext="270" conductor_color="" freezeLabel="false" function="" bicolor="false" terminal1="0" terminal2="{05fdba7b-6122-47ce-9e68-fe7ebc9c3df3}" vertical-alignment="AlignRight">
This is happening with the elements I've done with version 0.9.
I'm trying to change my script, so it finds the id terminal using the element uuid and the terminal uuid in the condcutor. How do I do it? it seems that I might have to do it with the orientation of the terminal, cause there is no relation between the terminal in the element of the diagram and the terminal of the element in the collection:
In the diagram
<terminal x="0" number="_" id="48" name="_" y="-11" orientation="0" nameHidden="0"/>
<terminal x="0" number="_" id="49" name="_" y="11" orientation="2" nameHidden="0"/>
In the collection
<terminal x="0" name="" y="15" orientation="s" uuid="{05fdba7b-6122-47ce-9e68-fe7ebc9c3df3}"/>
<terminal x="0" name="" y="-15" orientation="n" uuid="{67931c05-57c6-40dd-8607-3e2bb47feaa8}"/>
Thanks