马上注册,结交更多同行朋友,交流,分享,学习。
您需要 登录 才可以下载或查看,没有帐号?注册
x
我的思路是这样的,标签为"长方体"时,我输入相应的参数,让其生成长方体,当我选"圆柱体"时,我也输入相应的参数让其生成圆柱体,我的dfa文件应该怎么编写啊?
#! NX/KF 3.0
DefClass: feature_modl (ug_base_part);
(Number Modifiable Parameter) C_L: 1;
(Number Modifiable Parameter) Diam: 1;
(Number Modifiable Parameter) H: 1;
(Number Modifiable Parameter) L: 1;
#+(Name) PAGE_11: PAGE_11;
(Name) PAGE_2: PAGE_2;
#-
(Name) TAB_CTRL_BEG_0: T;
(Number Modifiable Parameter) W: 1;
(Child) feature: {
Class, if (TAB_CTRL_BEG_0:=PAGE_11) then ug_block
else ug_cylinder;
Length, L:;
Width, W:;
Height, if (TAB_CTRL_BEG_0:=PAGE_11) then H:
else C_L:;
Diameter,Diam:;
};
请问if语句应该怎么写啊?谢谢啊 |