<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>Yes, i tried to upgrade the tkscale.sci and tkscaleblk.sci files but if i upgrade them then older files which were made with previous TKSCALE doesn't simulate and we need to draw the complete diagram again using upgraded TKSCALE block. Hence I added the NEW TKSCALE block, so that even older files can be run and newer one's can use the NEW TKSCALE.<br><br></div>Also, thanks for pointing out to clean the Scilab's user directory, it works fine after cleaning once the user directory.<br></div>I would be happy to provide a patch and would do so along with documentation on the same.<br><br></div>Thanks for helping...!!<br><br></div>Regards,<br></div>Pulkit Mittal<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 9, 2016 at 12:19 AM, 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">Hi Mittal,<br>
<br>
Great news ! Indeed some blocks need improvement and the graphical ones are indeed the more complex<br>
to manage.<br>
<br>
To simply upgrade the TKSCALE block, you should just redefine the TKSCALE.sci file<br>
and tkscaleblk.sci at first. Did you just try to improve them without adding a new block ?<br>
<br>
The xcosPalAddBlock() call is not needed, for internal usage we use the palette.xml file and a local<br>
copy on the user directory. Did you cleanup your Scilab' user directory (eg. SCIHOME) ?<br>
<br>
If you think that your implementation should be included in scilab, feel free to provide a patch. I<br>
will happily upgrade the current implementation.<br>
<br>
Thanks for your work,<br>
<br>
PS: do not hesitate to push something to the codereview and add myself as a reviewer.<br>
<br>
--<br>
Clément<br>
<br>
Le mardi 07 juin 2016 à 04:45 -0700, mittal_pulkit a écrit :<br>
> Hi<br>
><br>
> I have implemented a new TKSCALE block with newer functionalities and is<br>
> superior to the older TKSCALE block. So, I wanted this block to be<br>
> *preloaded* in Palette window as other blocks in palette browser. For the<br>
> same purpose, I added the interfacing,computational function files and other<br>
> image files as present for the original TKSCALE block.<br>
> Following are the files which contains content for TKSCALE  block and I<br>
> changed/replicated them:<br>
><br>
> modules/scicos/palettes/Sources.cosf<br>
> modules/scicos_blocks/macros/Sources/TKSCALE.sci<br>
> modules/scicos/blocks/macros/Sources/tkscaleblk.sci<br>
> modules/scicos_blocks/macros/Sources/names<br>
> modules/xcos/help/fr_FR/palettes/Sources_pal/AA_Sources_pal.xml<br>
> modules/xcos/help/en_US/palettes/Sources_pal/AA_Sources_pal.xml<br>
> modules/xcos/help/en_US/palettes/Sources_pal/TKSCALE.xml<br>
> modules/xcos/tests/unit_tests/blocks_link.tst<br>
> modules/xcos/tests/unit_tests/blocks_link.dia.ref<br>
> modules/xcos/Makefile.am<br>
> modules/xcos/etc/palettes.xml<br>
> modules/xcos/etc/Xcos-style.xml<br>
> modules/xcos/Makefile<br>
> modules/xcos/Makefile.in<br>
> scicos_blocks/locales/scicos_blocks.pot<br>
> modules/xcos/images/palettes<br>
><br>
><br>
> Now when I rebuild the package, all newly added/changed files get build but<br>
> new tkscale block is not appearing on the palette window. I have already<br>
> used  xcosPalAddBlock etc functions but in them when I exit Scilab and open<br>
> it again the new tkscale block disappears.<br>
><br>
> *So, please let me know how the block can be made to be pre-loaded in the<br>
> browser as other blocks. *<br>
> Hope that community is strong enough to atleast reply to my post.<br>
><br>
> Thanks<br>
> Pulkit Mittal<br>
>  <br>
><br>
><br>
><br>
> --<br>
> View this message in context: <a href="http://mailinglists.scilab.org/New-block-in-scilab-is-not-being-prel" rel="noreferrer" target="_blank">http://mailinglists.scilab.org/New-block-in-scilab-is-not-being-prel</a><br>
> oaded-as-other-blocks-tp4034152.html<br>
> Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> dev mailing list<br>
> <a href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a><br>
> <a href="http://lists.scilab.org/mailman/listinfo/dev" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/dev</a><br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/dev" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/dev</a><br>
</blockquote></div><br></div>