1
function hilite_path(path,mess,with_intermediates)
2
//hilite a block included in a superblock hierarchy and displays a
3
//message. If required all the intermediate superblocs are displayed
4
//first entry of the path must be a bloc of currently opened diagram
5
if argn(2)<3 then with_intermediates=%f,end
6
if argn(2)<2 then mess=' ',end
8
mxwin=maxi(winsid()),opened_windows=[]
9
hilite_obj(scs_m.objs(path(1)))
11
if with_intermediates then
12
for k=2:size(path,'*')
13
scs_m=scs_m.objs(path(k)).model.rpar;
14
scs_show(scs_m,mxwin+k);opened_windows=[mxwin+k opened_windows]
15
hilite_obj(scs_m.objs(path(k)))
18
if size(path,'*')==1 then
19
hilite_obj(scs_m.objs(path))
21
for k=1:size(path,'*')-1;scs_m=scs_m.objs(path(k)).model.rpar;end
22
scs_show(scs_m,mxwin+1);opened_windows=[mxwin+1 opened_windows]
23
hilite_obj(scs_m.objs(path($)))
29
unhilite_obj(scs_m.objs(path(1)))