블로그 이미지
진연
3차원 CAD프로그램인 UGS에서 지원하는 API를 이용하여 프로그램하는 방법등을 소개하는 블로그입니다. 혹시 연락이 필요하신분은 youni7311@hanmail.net로 메일 보내주세요..

calendar

1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
2008. 8. 8. 16:29 코드자료
  1. 아래 코드와 같이 코딩하고 저장한다.
  2. NX에서 Intere Styler를 실행하고, ID가 CC_UDF인 버튼을 하나 생성하고, dfa파일과 동일한 이름으로 저장한다.
  3. KF툴바 -> Application에서 실행한다.
#! NX/KF 4.0

DefClass: 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:);
};

posted by 진연
prev 1 2 3 4 5 6 7 ··· 23 next