function ref=get_part_id(id)
    data=get(groot,"UserData");
    ref=-1;
    for idx=1:size(data.S,1)
        if data.S(idx,2)<=id && id < data.S(idx,3)
            ref=idx;
            break;
        end
    end
end