#! NX/KF 4.0
DefClass: lee_box (ug_base_part);
(integer) excel_port: ug_excel_open_file("test.xls",read);
(integer) worksheet_id: ug_excel_get_worksheet_index(excel_port:,"Sheet1");
(list) area_list_string: ug_excel_read_range(excel_port:,worksheet_id:,1,1,5,5);
(List) W_List:{5,10,15,20};
(List) H_List:{5,10,15,20};
(Number) L: makenumber(nth(7,area_list_string);
(Number) W: minlist(W_List;
(Number) H: minlist(H_List;
(Child) Box: {
Class, ug_block;
length, L:;
Width, W:;
Height, H:;
};
question:
1.搭配dlg 时,length的值出不来
2.option menu的width , heigth 虽能完全显示出5,10,15,20,但如何选都只有5有效;
因为我是用minlist,若用maxlist则只有20有效 |