본문 바로가기
Creo/Creo 환경 설정

Mapkey 분석

by 아이디티 2020. 10. 3.

[File Open Mapkey]


// "fiop" 파일 Open을 위한 MapKey 명령

mapkey fiop ~ Command `ProCmdModelOpen` ;\

mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\

// "op_test2.prt" 파일 Open을 위한 파일 이름

mapkey(continued) ~ Select `file_open` `Ph_list.Filelist` 1 `op_test2.prt`;\

mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `PREVIEW_POPUP_TIMER` \

mapkey(continued) `file_open:Ph_list.Filelist:<NULL>`;\

mapkey(continued) ~ Command `ProFileSelPushOpen_Standard@context_dlg_open_cmd`;

 

이미지

 

* CREO 3.0 환경에서 개발, Creo 6.0에서 사용가능

 


[외부 형상 복사 CUT Map key (External Cut Out Feature)]

 

web-link는 외부 형상 복사 API는 제공 하지 않는다. Mapkey는 기능상 제약이 있다. 조립은 자동으로 Pause를 실행한다.
조립 기능이 Mapkey에 적용되지 않는다. 설계자가 수동으로 조립을 해야 한다. 

 

외부 형상 복사 CUT

 

Mapkey는 "CUT" 조립 명령을 완벽히 수행 하지 못한다.  단지 Open까지만 가능 하다.

외부 형상 복사 조립 화면

// "excu" 파일 Open을 위한 MapKey 명령   

mapkey excu ~ Command `ProCmdOduiDsfGenMerge` ;\

mapkey(continued) ~ Activate `main_dlg_cur` `maindashInst0.AddRemoveMaterial` 1;\

mapkey(continued) ~ Activate `main_dlg_cur` `maindashInst0.Open_ref_model`;\

mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\

// "op_test3.prt" 파일 Open을 위한 파일 이름

mapkey(continued) ~ Select `file_open` `Ph_list.Filelist` 1 `op_test3.prt`;\

mapkey(continued) ~ Command `ProFileSelPushOpen_Standard@context_dlg_open_cmd`;

// 미리보기 뷰 선택

mapkey(continued) ~ Activate `Odui_Dlg_01` `CompTabPreviewChkBtn` 1;

 


External Cut Out Feature 정보 

- 페턴의 리더이고, 프로그램에서 인식해야 참조 패턴명령 사용이 가능

External Cut Out Feature  External Cut Out Feature 매개변수