Topic: XML coding in elements

Bonsoir,
i have a question about some things i want to do with a symbol

1:
i wish to make elements with including a *.png

i want to do this to draw cabinets with a element with just a rectangle an inside this rectangle  a *.png of a circuit breaker front view or other views

you can find this png's in the software tools of different manufactures of circuit breakers (the have programs for calculating cabinets where you draw your schematics and as a result you have a list of components and a front view of your cabinet)

The only problem is that this is manufacture dependent, so i think i can do the same with Qelectrotech manufacturer independent

If i can put these .png into an element and then insert it for drawing of cabinet, the you can have very fast all the elements for making cabinets

2:
is there some ware a overview of the xml coding that can be used on this moment to create valid elements

I have taken a look to a project file where I put in some png’s and I then copied these into an element, and then insert this element into a drawing and get no displaying of the inserted png
3:
Another option I tried to make is an element that exist of more than one master object’s it is a symbol with 4 coils that I have to insert as one symbol, but I need 4 reference crosses
Is it possible to nest elements into another element? (with a text editor)
I now it are a lot of questions, but I try to find a solution to create schematics whiteout depending on manufactures software where you cannot easily use other manufactures products into it.
I find it a nice program with possibility’s to the future.
Best regaerds

Re: XML coding in elements

Also a examples of the element with the png and the 4 coils

<definition width="200" version="0.4" hotspot_x="85" hotspot_y="38" height="80" type="element" ic="true" orientation="dyyy" link_type="master">
    <names>
        <name lang="nl">Actor 4 contacten</name>
    </names>
    <informations>rdsivd</informations>
    <kindInformations>
        <kindInformation name="state" show="1">NO</kindInformation>
        <kindInformation name="number" show="1">1</kindInformation>
        <kindInformation name="type" show="1">simple</kindInformation>
        <kindInformation name="tempoType" show="0"></kindInformation>
    </kindInformations>
    <images>
     <image x="50" y="50" size=".5" rotation="0">iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAACKtJREFUeJztnd2PG1cZh58Ze+z12sumu9kmDWr3y961kIICEZHSFkH5FND/AHGDuIJLuOgFFYVeVCBukEKlSiBVarmgiKtWVYWoQELcFOWqiGzWm23SJKSrdK1u1h/rtWcOF/bszpxxPJOIZOccn0eyxjP26z0zv3nf93zNW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Kdv0erP9r0R46WjaTIvk3YU1YvjF0qUHLhJZwcBznvaWlxaLruqlfwsEQRQhBJpNhc/ODZrfbPQfcVj5EGw7RMkQbRqN8LdoQZAwXBB8nxnJB8HHHCKw5JgdrhcnBWmNy8BhiBNYck4O1IsFoktFXYYZoF61kRb9jUARfO1PJGiNMDtaKqHbGgzXHjAdrhJazKg1RElWyjNhqcTe9/BB9kJ2DC2kJIczcLAUIiht4LwDh/yM//9X0PK8oGxnSja+VZVl4ngfQRBLYA3rAxUaj8a1isYjnCePBiuDrZNsWzWYD4CJ9PT1fYBfYF0JcqNfrT2ez2alcrr+UweCOMKQYy7KwLItOp0O9Xt8VQlwA9gHXol/RygNTwCzwLPDCzMzMZLFYNB6sAEIIms0m9Xq9BbwAvAVsA7sW/cnvWaBAfwL8DFABfgR8AYguSmVIGw3gX8BvgRpQB+4Abd89bcChL3KJvjdPDfZzg8+NK6cPv/60D7SB3cGrMdg/WArdD9VZ+uG6MNjmB8d8TzekC7/10wM6g1d7sO0BoRW/fBEz9EV1BlsbI3Ba8QX2W0Hdwdb1Pxsmmi9mUFgjbnoJ9mN4gfcGg8FgMBgMBoPBYIjyP5kUc1RnNlZbAAAAAElFTkSuQmCC</image>
    </images>
    <description>
        <text x="-49" y="27" size="4" text="3"/>
        <text x="-59" y="27" size="4" text="2"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="29.887" x1="30" y2="20.1043" x2="30"/>
        <text x="71" y="13" size="5" text="D"/>
        <text x="-9" y="13" size="5" text="B"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="29.887" x1="70" y2="20.1043" x2="70"/>
        <text x="31" y="13" size="5" text="C"/>
        <text x="-29" y="27" size="4" text="4"/>
        <text x="61" y="27" size="4" text="11"/>
        <text x="51" y="27" size="4" text="10"/>
        <text x="-19" y="27" size="4" text="5"/>
        <text x="31" y="27" size="4" text="9"/>
        <text x="11" y="27" size="4" text="7"/>
        <text x="-9" y="27" size="4" text="6"/>
        <text x="21" y="27" size="4" text="8"/>
        <text x="71" y="27" size="4" text="12"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="29.887" x1="-10" y2="20.1043" x2="-10"/>
        <rect width="160" x="-80" y="-30" antialias="false" height="60" style="line-style:normal;line-weight:normal;filling:none;color:black"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-10" y2="-10" x2="-10"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="70" y2="-10" x2="70"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="30" y2="-10" x2="30"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="29.887" x1="-50" y2="20.1043" x2="-50"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="50.0558" y2="-10" x2="69.9395"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-50" y2="-10" x2="-50"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="-29.9442" y2="-10" x2="-10.0605"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="10.0558" y2="-10" x2="29.9395"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="-30" y2="29" x2="-30"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="-69.9442" y2="-10" x2="-50.0605"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="10" y2="29" x2="10"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="50" y2="29" x2="50"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="-70" y2="29" x2="-70"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="1" x1="-14" y2="20" x2="-10"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="1" x1="26" y2="20" x2="30"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="1" x1="66" y2="20" x2="70"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="1" x1="-54" y2="20" x2="-50"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="30" x1="20" y2="20" x2="20"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="30" x1="-20" y2="20" x2="-20"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="30" x1="60" y2="20" x2="60"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="19" x1="50" y2="19" x2="60"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="19" x1="-30" y2="19" x2="-20"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="30" x1="-60" y2="20" x2="-60"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="19" x1="10" y2="19" x2="20"/>
        <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="19" x1="-70" y2="19" x2="-60"/>
        <text x="-48" y="13" size="5" text="A"/>
        <rect width="70" x="-35" y="-30" antialias="false" height="10" style="line-style:normal;line-weight:normal;filling:none;color:black"/>
        <rect width="64" x="-32" y="-27" antialias="false" height="4" style="line-style:normal;line-weight:normal;filling:black;color:black"/>
        <input x="86" y="-17.5" size="9" rotate="true" text="K_"/>
        <text x="-69" y="27" size="4" text="1"/>
        <terminal x="-70" y="35" nameHidden="240" number="" name="" orientation="s"/>
        <terminal x="-60" y="35" nameHidden="1" number="" name="" orientation="s"/>
        <terminal x="-50" y="35" nameHidden="1" number="" name="" orientation="s"/>
        <terminal x="-30" y="35" nameHidden="1" number="" name="" orientation="s"/>
        <terminal x="-20" y="35" nameHidden="1" number="" name="" orientation="s"/>
        <terminal x="-10" y="35" nameHidden="1" number="" name="" orientation="s"/>
        <terminal x="10" y="35" nameHidden="1" number="" name="" orientation="s"/>
        <terminal x="20" y="35" nameHidden="1" number="" name="" orientation="s"/>
        <terminal x="30" y="35" nameHidden="1" number="" name="" orientation="s"/>
        <terminal x="50" y="35" nameHidden="1" number="" name="" orientation="s"/>
        <terminal x="60" y="35" nameHidden="1" number="" name="" orientation="s"/>
        <terminal x="70" y="35" nameHidden="1" number="" name="" orientation="s"/>
        <terminal x="-10" y="-32" nameHidden="160" number="" name="" orientation="n"/>
        <terminal x="10" y="-32" nameHidden="1" number="" name="" orientation="n"/>
    </description>
</definition>

Re: XML coding in elements

Hi,

In your example you added an image in base64 converted, but element editor does not in code read base64 at this time.

Btw, you can use convert_dxf_elmt.py
This script convert dxf files in elmt (version R13 only).

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

4 (edited by rdsivd 2014-03-29 11:12:48)

Re: XML coding in elements

Hi,
Very strange i first inserted the png into a drawing of a project (see "schermafdruk1.png")
and is embed into the project file

and then copy the xml code into a elmt file

i have make the png with gimp

i also see that when i use a titelblock with logo the png is not embed but linked

the cymbo itself is maked with the element editor

Post's attachments

schermafdruk1.png, 43.5 kb, 584 x 695
schermafdruk1.png 43.5 kb, 487 downloads since 2014-03-29 

5 (edited by rdsivd 2014-03-29 11:18:46)

Re: XML coding in elements

and the code of "schermafdruk1.png"

Post's attachments

schermafdruk2.png, 213.85 kb, 1201 x 490
schermafdruk2.png 213.85 kb, 563 downloads since 2014-03-29