2008. 8. 8. 16:29
코드자료
- 아래 코드와 같이 코딩하고 저장한다.
- NX에서 Intere Styler를 실행하고, ID가 CC_UDF인 버튼을 하나 생성하고, dfa파일과 동일한 이름으로 저장한다.
- KF툴바 -> Application에서 실행한다.
#! NX/KF 4.0DefClass: ex_UDF1 (ug_base_part);
(instance parameter) CC_UDF: cc:;
# Note that the extension _UDF is required for the KF styler to process
# the pushbutton corresponding to this parameter(list parameter) CC_UDF_DATA: ;
# Once the KF Styler dialog is exited this list will be filled in from
# the user data captured in the standard UDF dialog
# The above list will contain Parameters as a first sublist and
# References as a second sublist(Child) cc: {
Class, ug_udfs;
Name, "Extrude";
Library, "/Home/UDF/";
Parameters, nth(1, CC_UDF_DATA:);
References, nth(2, CC_UDF_DATA:);
};