<div dir="ltr">Thanks Clement.<div><br></div><div>Does this not work in linux? I tried it in Ubuntu 10.04 and 12.04, it didn't work in either. When I drag the svg, it doesn't get dropped in the diagram at all.<br><br>

<div class="gmail_quote">On Mon, Jun 11, 2012 at 6:23 PM, Clément DAVID <span dir="ltr"><<a href="mailto:clement.david@scilab-enterprises.com" target="_blank">clement.david@scilab-enterprises.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Step by step for a MY_BLOCK block:<br>
  * use inkscape to draw an icon<br>
  * save it to images/svg/MY_BLOCK.svg<br>
  * Drag an drop your block into a diagram<br>
  * check that your icon render well<br>
  * File->Export to png and save it to images/gif/MY_BLOCK.png<br>
<br>
That's all.<br>
<br>
Le 11/06/2012 13:45, Sumeet a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
You could have a look at the dspblock project that I'm working on here:<br>
<a href="http://forge.scilab.org/index.php/p/dspblock/source/tree/master/" target="_blank">http://forge.scilab.org/index.<u></u>php/p/dspblock/source/tree/<u></u>master/</a><br>
<br>
I create images in the images / svg folder using inkscape, and the<br>
following code in etc / dspblock.start somehow takes care of the rest. I<br>
haven't tried exploring how xcosPalAddBlock works.<br>
<br>
39<br></div>
<<a href="http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L39" target="_blank">http://forge.scilab.org/<u></u>index.php/p/dspblock/source/<u></u>tree/master/etc/dspblock.<u></u>start#L39</a>><div class="im">

<br>
h5Files = gsort(ls(root_tlbx + "/images/h5/*.sod"));<br>
40<br></div>
<<a href="http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L40" target="_blank">http://forge.scilab.org/<u></u>index.php/p/dspblock/source/<u></u>tree/master/etc/dspblock.<u></u>start#L40</a>><div class="im">

<br>
gifFiles = gsort(ls(root_tlbx + "/images/gif/*." + ["png" "jpg" "gif"]));␊<br>
41<br></div>
<<a href="http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L41" target="_blank">http://forge.scilab.org/<u></u>index.php/p/dspblock/source/<u></u>tree/master/etc/dspblock.<u></u>start#L41</a>><div class="im">

<br>
svgFiles = gsort(ls(root_tlbx + "/images/svg/*." + ["svg" "png" "jpg"<br>
"gif"]));<br>
42<br></div>
<<a href="http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L42" target="_blank">http://forge.scilab.org/<u></u>index.php/p/dspblock/source/<u></u>tree/master/etc/dspblock.<u></u>start#L42</a>><br>


<br>
43<br>
<<a href="http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L43" target="_blank">http://forge.scilab.org/<u></u>index.php/p/dspblock/source/<u></u>tree/master/etc/dspblock.<u></u>start#L43</a>><div class="im">

<br>
for i=1:size(h5Files, "*")<br>
44<br></div>
<<a href="http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L44" target="_blank">http://forge.scilab.org/<u></u>index.php/p/dspblock/source/<u></u>tree/master/etc/dspblock.<u></u>start#L44</a>><div class="im">

<br>
pal = xcosPalAddBlock(pal, h5Files(i), gifFiles(i), svgFiles(i));<br>
45<br></div>
<<a href="http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L45" target="_blank">http://forge.scilab.org/<u></u>index.php/p/dspblock/source/<u></u>tree/master/etc/dspblock.<u></u>start#L45</a>><div class="im">

<br>
end<br>
<br>
<br>
On Mon, Jun 11, 2012 at 7:24 AM, hehiha <<a href="mailto:dungnguyenbk@gmail.com" target="_blank">dungnguyenbk@gmail.com</a><br></div><div class="im">
<mailto:<a href="mailto:dungnguyenbk@gmail.com" target="_blank">dungnguyenbk@gmail.com</a><u></u>>> wrote:<br>
<br>
    I have problem same you.<br>
    Show I don't know what's tool to draw image same.<br>
     > [1]:<br>
     ><br>
    <a href="http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/blocks/CSCOPXY.svg" target="_blank">http://cgit.scilab.org/scilab/<u></u>plain/scilab/modules/xcos/<u></u>images/blocks/CSCOPXY.svg</a><br>
     > [2]:<br>
     ><br>
    <a href="http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/palettes/CSCOPXY.png" target="_blank">http://cgit.scilab.org/scilab/<u></u>plain/scilab/modules/xcos/<u></u>images/palettes/CSCOPXY.png</a><br>
<br>
    I try to draw by scilab. But it's difficult to drawn.<br>
    Could you tell me method to draw icon for block step by step?<br>
<br>
<br>
    --<br>
    View this message in context:<br>
    <a href="http://mailinglists.scilab.org/Issue-with-the-palette-in-an-Xcos-toolbox-based-on-the-Xcos-skeleton-example-tp3876681p4024331.html" target="_blank">http://mailinglists.scilab.<u></u>org/Issue-with-the-palette-in-<u></u>an-Xcos-toolbox-based-on-the-<u></u>Xcos-skeleton-example-<u></u>tp3876681p4024331.html</a><br>


    Sent from the Scilab developers - Mailing Lists Archives mailing<br>
    list archive at Nabble.com.<br>
<br>
    --<br>
    To unsubscribe from this mailing-list, please send an empty mail to<br>
    <a href="mailto:dev-unsubscribe@lists.scilab.org" target="_blank">dev-unsubscribe@lists.scilab.<u></u>org</a><br></div>
    <mailto:<a href="mailto:dev-unsubscribe@lists.scilab.org" target="_blank">dev-unsubscribe@lists.<u></u>scilab.org</a>><div class="im"><br>
    To check the archives of this mailing list, see<br>
    <a href="http://mailinglists.scilab.org/" target="_blank">http://mailinglists.scilab.<u></u>org/</a><br>
<br>
<br>
</div></blockquote>
<br><div class="im HOEnZb">
<br>
-- <br>
Clément DAVID<br>
Scilab Enterprises<br>
skype://clement_david_scilab<br>
<br></div><div class="HOEnZb"><div class="h5">
--<br>
To unsubscribe from this mailing-list, please send an empty mail to<br>
<a href="mailto:dev-unsubscribe@lists.scilab.org" target="_blank">dev-unsubscribe@lists.scilab.<u></u>org</a><br>
To check the archives of this mailing list, see<br>
<a href="http://mailinglists.scilab.org/" target="_blank">http://mailinglists.scilab.<u></u>org/</a><br>
<br>
</div></div></blockquote></div><br></div></div>