|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
请教大大
我在kf中,定义list 并与UIS中引用
但是在kf中如何输出选择的options呢
#! NX/KF 4.0
DefClass: New_Class_Name (ug_base_part);
(Number Modifiable [mm]) gba_d: makenumber(nth(row:,gba_d_list);
(Number Modifiable [mm]) gba_d1: MakeNumber( nth(row:,gba_d1_list );
(List Modifiable) gba_d1_list: ug_excel_read_range( gba_port:, gba_id:, 1, 2, 5, 2 );
(List Modifiable) gba_d_list: ug_excel_read_range( gba_port:, gba_id:, 1, 1, 5, 1 );
(Number Modifiable [mm]) gba_hd: MakeNumber( nth(row:,gba_hd_list );
(List Modifiable) gba_hd_list: ug_excel_read_range( gba_port:, gba_id:, 1, 3, 5, 3 );
(Number Modifiable [mm]) gba_hh: MakeNumber( nth(row:,gba_hh_list );
(List Modifiable) gba_hh_list: ug_excel_read_range( gba_port:, gba_id:, 1, 4, 5, 4 );
(Integer Modifiable) gba_id: ug_excel_get_worksheet_index( gba_port:, "gba" );
(Number Modifiable [mm]) gba_l: 34;
(Integer Modifiable) gba_port: ug_excel_open_file( "C:\usr\MY_DFA\gba.xls", Read );
(Number Modifiable) row: 8;
(List Modifiable) Type: {16,20,25,30,35};
(Child) gba_c1: {
Class, ug_cylinder;
Diameter, gba_d1:;
Height, gba_l:;
};
(Child) gba_c2: {
Class, ug_cylinder;
Diameter, gba_hd:;
Height, gba_hh:;
Target, {gba_c1:};
};
(Child) gba_c3: {
Class, ug_cylinder;
Diameter, gba_d:;
Height, gba_l:;
Operation, subtract;
Target, {gba_c2:};
};
type为 uis引用 而row:为我要输出的结果
当type=16时 row=6
...
我该怎样设呢???
请大大们帮帮忙 |
|