return_block_pal - return list of name of scicos blocks presents in a cosf file
tt = return_block_pal(name,libn,dbl)
- name : path+name of the palette file
- libn : string. library identificator
- dbl : integer. set 1 to remove double file name
- tt : vector of strings. list of blocks
//return_block_pal
//Entrée name : chemin+nom de la palette
// ex : name=MODNUM+'/macros/scicos_blocks/Tools.cosf'
// nlib : un identifiant de libraire (ex 'mod_num')
//sortie tt : La liste des blocks
function tt=return_block_pal(name,libn,dbl)
if fileinfo(name)<>[] then
//load scicos library
load SCI/macros/scicos/lib
exec(name,-1)
tt=return_block_name(scs_m,libn,dbl)
else
printf("Unable to find cosf file");
end
endfunction
IRCOM Group
Alan Layec