<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[QElectroTech — How do i set default prefix for an element I create?]]></title>
		<link>https://qelectrotech.org/forum/viewtopic.php?id=953</link>
		<atom:link href="https://qelectrotech.org/forum/extern.php?action=feed&amp;tid=953&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How do i set default prefix for an element I create?.]]></description>
		<lastBuildDate>Tue, 06 Jun 2023 19:23:18 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=18396#p18396</link>
			<description><![CDATA[<p> I &#039;m thinking your XML is wrong, see this example:<br /><a href="https://stackoverflow.com/questions/44435618/python-programatically-create-an-xml-file-which-lists-all-the-contents-of-a-dir">https://stackoverflow.com/questions/444 … s-of-a-dir</a><br />See picture of tree, and the XML output. </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Tue, 06 Jun 2023 19:23:18 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=18396#p18396</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=18394#p18394</link>
			<description><![CDATA[<p> </p><div class="quotebox"><blockquote><p><a href="https://youtu.be/mkfUvRd55iE">https://youtu.be/mkfUvRd55iE</a></p></blockquote></div><p> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Tue, 06 Jun 2023 13:06:24 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=18394#p18394</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=18393#p18393</link>
			<description><![CDATA[<p> Sorry, I&#039;m being stupid, not quite sure what you&#039;re getting at re typo for circuit breakers? I&#039;m just working with my own user collection. (qet_labels.xml in root of ..\Application Data\qet\elements as per code in my first post). The prefixes work ok (so long as not in the top level category), but I&#039;m wondering if possible to keep sequence numbering separate for each element type. </p>]]></description>
			<author><![CDATA[null@example.com (ocpseq)]]></author>
			<pubDate>Tue, 06 Jun 2023 12:22:56 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=18393#p18393</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=18390#p18390</link>
			<description><![CDATA[<p> Thanks for quick reply! However I think I&#039;m missing something, as I&#039;d found that file before, but this doesn&#039;t seem to keep track of different sequence numbers for different element types. Should it?</p><p>Just to make sure I&#039;m being clear, I was hoping to achieve the following:<br /></p><ul><li><p>Place 1st fuse - label F1</p></li><li><p>Place 2nd fuse - label F2</p></li><li><p>Place 1st breaker - label Q1</p></li><li><p>place 3rd fuse - label F3</p></li><li><p>place 2nd breaker - label Q2<br />etc.</p></li></ul><p>What actually happens is:<br /></p><ul><li><p>Place 1st fuse - label F1</p></li><li><p>Place 2nd fuse - label F2</p></li><li><p>Place 1st breaker - label Q3</p></li><li><p>place 3rd fuse - label F4</p></li><li><p>place 2nd breaker - label Q5<br />etc.</p></li></ul><p> </p>]]></description>
			<author><![CDATA[null@example.com (ocpseq)]]></author>
			<pubDate>Tue, 06 Jun 2023 12:00:54 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=18390#p18390</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=18389#p18389</link>
			<description><![CDATA[<p> Hi,</p><p>see example file here:<br /><a href="https://git.tuxfamily.org/qet/qet.git/tree/elements/10_electric/qet_labels.xml">https://git.tuxfamily.org/qet/qet.git/t … labels.xml</a></p><div class="codebox"><pre class="bash" style="font-family:monospace;">~ <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">tree</span> qet_git<span style="color: #000000; font-weight: bold;">/</span>elements<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span>_electric<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">11</span>_singlepole<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">200</span>_fuses_protective_gears<br />qet_git<span style="color: #000000; font-weight: bold;">/</span>elements<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span>_electric<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">11</span>_singlepole<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">200</span>_fuses_protective_gears<br />├── <span style="color: #000000;">10</span>_fuses<br />│   ├── fusible.elmt<br />│   ├── qet_directory<br />│   └── sec_fus1.elmt<br />├── <span style="color: #000000;">11</span>_circuit_breakers<br />│   ├── disjonct-m.elmt<br />│   ├── disjoncteur1.elmt<br />│   ├── jistic_1p.elmt<br />│   └── qet_directory<br />├── <span style="color: #000000;">12</span>_magneto_thermal_circuit_breakers<br />│   ├── disjoncteur_magneto-thermique_1.elmt<br />│   └── qet_directory<br />├── <span style="color: #000000;">20</span>_disconnecting_switches<br />│   ├── qet_directory<br />│   ├── sectionneur1-<span style="color: #000000;">2</span>.elmt<br />│   └── sectionneur1.elmt<br />├── <span style="color: #000000;">30</span>_thermal_relays<br />│   ├── qet_directory<br />│   └── relais_therm1.elmt<br />├── <span style="color: #000000;">50</span>_residual_current_circuit_breaker<br />│   ├── ddr1.elmt<br />│   ├── disjoncteur_differentiel_magnetothermique.elmt<br />│   ├── int_diff-1p.elmt<br />│   ├── int_diff1.elmt<br />│   ├── qet_directory<br />│   ├── rcbo.elmt<br />│   └── rccb.elmt<br />└── qet_directory<br />&nbsp;<br /><span style="color: #000000;">7</span> directories, <span style="color: #000000;">22</span> files</pre></div><div class="codebox"><pre class="html" style="font-family:monospace;"><span style="color: #009900;">&lt;category <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;200_fuses_protective_gears&quot;</span>&gt;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;category <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;10_fuses&quot;</span>&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;prefix&gt;</span>F<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>prefix&gt;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>category&gt;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;category <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;11_circuit_breakers&quot;</span>&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;prefix&gt;</span>F<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>prefix&gt;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>category&gt;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;category <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;12_magneto_thermal_circuit_breakers&quot;</span>&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;prefix&gt;</span>Q<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>prefix&gt;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>category&gt;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;category <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;20_disconnecting_switches&quot;</span>&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;prefix&gt;</span>Q<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>prefix&gt;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>category&gt;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;category <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;30_thermal_relays&quot;</span>&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;prefix&gt;</span>F<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>prefix&gt;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>category&gt;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;category <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;50_residual_current_circuit_breaker&quot;</span>&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;prefix&gt;</span>Q<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>prefix&gt;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>category&gt;</span></pre></div><p> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Tue, 06 Jun 2023 11:50:16 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=18389#p18389</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=18388#p18388</link>
			<description><![CDATA[<p> Hi there,<br />I am new to QET, and really liking it in comparison to other electrical drawing packages. However I am struggling a bit with the auto-numbering, and it took me a bit before I realised that it seems that the categories with prefixes have to be sub-categories. Ie you don&#039;t seem to be able to assign prefixes to top-level categories / folders. This seems strange, but easy enough to work around.</p><p>My example that didn&#039;t work (where &quot;circuit_breakers&quot; and &quot;fuses&quot; are folders at root level of elements folder):<br /></p><div class="codebox"><pre><code>&lt;labels&gt;
  &lt;category name=&quot;circuit_breakers&quot;&gt;
    &lt;prefix&gt;Q&lt;/prefix&gt;
  &lt;/category&gt;
  &lt;category name=&quot;fuses&quot;&gt;
    &lt;prefix&gt;F&lt;/prefix&gt;
  &lt;/category&gt;
  &lt;category name=&quot;miscellaneous&quot;&gt;&lt;/category&gt;
&lt;/labels&gt;</code></pre></div><p>and my example that did work (where &quot;circuit_breakers&quot; and &quot;fuses&quot; are sub-folders in a folder &quot;circuit_protection&quot;):</p><div class="codebox"><pre><code>&lt;labels&gt;
  &lt;category name=&quot;circuit_protection&quot;&gt;
      &lt;category name=&quot;circuit_breakers&quot;&gt;
        &lt;prefix&gt;Q&lt;/prefix&gt;
      &lt;/category&gt;
      &lt;category name=&quot;fuses&quot;&gt;
        &lt;prefix&gt;F&lt;/prefix&gt;
      &lt;/category&gt;
  &lt;/category&gt;
&lt;/labels&gt;</code></pre></div><p>What I am now struggling to understand is whether there is a way to keep the sequential numbering for different circuit element types separate (e.g. all fuses as F1, F2, F3, all breakers as Q1, Q2, Q3, rather than ending up with F1, Q2, F3, Q4 etc.). I realise you can create different numbering schemes for each type of circuit element, but this requires you to remember to change the numbering scheme each time you add an element to the folio - which I&#039;m not very good at!</p><p>Thanks for any suggestions. </p>]]></description>
			<author><![CDATA[null@example.com (ocpseq)]]></author>
			<pubDate>Tue, 06 Jun 2023 08:43:45 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=18388#p18388</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10598#p10598</link>
			<description><![CDATA[<p> Please try latest packages. </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Wed, 18 Sep 2019 07:47:11 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10598#p10598</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10594#p10594</link>
			<description><![CDATA[<p> Interesting, thanks for your feedback. </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Tue, 17 Sep 2019 15:52:37 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10594#p10594</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10593#p10593</link>
			<description><![CDATA[<p> I think I&#039;ve found the trick (bug?)</p><p>Scorpio, now, your example is working on my configuration - and my example also - BUT only if the user collection directory is on its default path.<br />If I try to change it to a custom location &quot;Settings &gt; Configure &gt; Collections &gt; User collection directory&quot; then the content of the collection is correctly loaded but the qet_labels.xml file seems to be simply ignored. </p>]]></description>
			<author><![CDATA[null@example.com (electrop)]]></author>
			<pubDate>Tue, 17 Sep 2019 15:41:57 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10593#p10593</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10581#p10581</link>
			<description><![CDATA[<p> Hello,</p><p>put qet_labels.xml in the root of your elements folder.<br /><span class="postimg"><img src="https://download.qelectrotech.org/qet/forum_img/qet_labels_windows.png" alt="https://download.qelectrotech.org/qet/forum_img/qet_labels_windows.png" /></span> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Mon, 16 Sep 2019 09:05:59 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10581#p10581</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10580#p10580</link>
			<description><![CDATA[<p> Hello,</p><p>Same result with your example : No prefix shown in QET.</p><p>Maybe qet_labels.xml should be placed elsewhere ?<br />I&#039;ve tried to put it sequentially in : <br /></p><ul><li><p>.\coils</p></li><li><p>.\coils_prefix_FX</p></li><li><p>.\coils_prefix_XYA</p></li></ul><p>With no change in behavior. </p>]]></description>
			<author><![CDATA[null@example.com (electrop)]]></author>
			<pubDate>Mon, 16 Sep 2019 08:48:58 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10580#p10580</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10579#p10579</link>
			<description><![CDATA[<p> Rename your file to qet_labels.xml and see this litle example.</p><p><span style="color: #000000">── </span><span style="color: #5454ff"><strong>coils</strong></span><br />│   ├── <span style="color: #5454ff"><strong>coils_prefix_FX</strong></span><br />│   │   ├── bobine3.elmt<br />│   │   └── qet_directory<br />│   ├── <span style="color: #5454ff"><strong>coils_prefix_XYA</strong></span><br />│   │   ├── qet_directory<br />│   │   └── relbistable.elmt<br />│   └── qet_directory</p><br /><br /><div class="codebox"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;labels<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br /><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;category</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;coils&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;category</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;coils_prefix_FX&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;prefix<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>FX<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/prefix<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/category<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />     <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;category</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;coils_prefix_XYA&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />     <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;prefix<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>YYA<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/prefix<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />     <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/category<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> <br /><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/category<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> <br /><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/labels<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div><p> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Sun, 15 Sep 2019 09:46:15 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10579#p10579</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10576#p10576</link>
			<description><![CDATA[<p>Greetings,</p><p>I&#039;m desperately trying to define custom prefix for my own elements library but I failed until now.<br />I think I&#039;ve understood - at least I hope to - what was explained in the previous posts and video.<br />I&#039;ve made a lost of tests before following back to a really simple example. But it still doesn&#039;t work</p><ul><li><p>I&#039;m using QElectroTech 0.7 on Windows</p></li><li><p>I&#039;ve kept the default path for my user library. It contains only one directory named &quot;connecteurs&quot;</p></li><li><p>Inside of this directory, I&#039;ve placed some .elmt files and a file named &quot;custom_labels.xml&quot; as follows :</p></li></ul><div class="codebox"><pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;labels&gt;
  &lt;category name=&quot;connecteurs&quot;&gt;
    &lt;prefix&gt;XYZ&lt;/prefix&gt;
  &lt;/category&gt;
&lt;/labels&gt;</code></pre></div><br /><p>But still, when starting QET and placing one of my custom elements on a new folio, when typing &quot;%prefix&quot; in the label formula, nothing is shown.<br />Am I still missing something ?</p>]]></description>
			<author><![CDATA[null@example.com (electrop)]]></author>
			<pubDate>Fri, 13 Sep 2019 15:46:20 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10576#p10576</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=7126#p7126</link>
			<description><![CDATA[<p> Greetings.<br />I would like to know what has been done in this direction? Now I&#039;m doing a great project, and it&#039;s very inconvenient to go through the entire library, to put at least a relay winding. It&#039;s easier to copy from the previous page, but then auto-numbering does not work. And of course it would be desirable that each element be tagged as it is set in IEC81346-1_Letters </p>]]></description>
			<author><![CDATA[null@example.com (Aleksandr)]]></author>
			<pubDate>Thu, 05 Oct 2017 05:39:59 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=7126#p7126</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do i set default prefix for an element I create?]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=6292#p6292</link>
			<description><![CDATA[<p> Thanks, will try later. Away for a week <img src="https://qelectrotech.org/forum/img/smilies/nomicons/smile.png" width="20" alt="nomicons/smile" /> </p>]]></description>
			<author><![CDATA[null@example.com (Morganol)]]></author>
			<pubDate>Wed, 15 Feb 2017 00:06:49 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=6292#p6292</guid>
		</item>
	</channel>
</rss>
