畢業設計(論文)基于proe環境下的工程圖增強功能開發_第1頁
畢業設計(論文)基于proe環境下的工程圖增強功能開發_第2頁
畢業設計(論文)基于proe環境下的工程圖增強功能開發_第3頁
畢業設計(論文)基于proe環境下的工程圖增強功能開發_第4頁
畢業設計(論文)基于proe環境下的工程圖增強功能開發_第5頁
已閱讀5頁,還剩53頁未讀 繼續免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、基于pro/e環境下的工程圖增強功能開發jingchu university of technology本科畢業設計(論文)設計(論文)題目基于pro/e環境下的工程圖增強功能開發 學 院 機械工程學院 專 業 機械設計制造及其自動化 年級班別 07機制三班 學 號 學生姓名 指導教師 2011年 5月23日目 錄1.摘要21.1摘要21.2 abstract32.設計說明42.1本課題的研究目的42.2本課題的研究要求42.3本課題的研究意義43.基于pro/e環境下的工程圖增強功能開發53.1開發環境53.1.1開發環境介紹53.1.2軟件配置53.1.3開發環境調試53.2功能開發143

2、.2.1功能分析143.2.2程序構架143.2.3程序開發163.2.4資源文件定義253.2.5國家標準配置303.2.6模板定義383.2.7程序注冊運行393.3程序兼容性優化403.3.1程序文件整理403.3.2兼容性優化414.總結435.參考文獻446.外文翻譯451.摘要1.1摘要產品的三維設計離不開cad/cam系統的支持,具有技術成熟、功能強大的pro/engineer參數化造型系統在設計和制造業中引起了人們的重視,并得到了日益廣泛的應用。pro/engineer作為通用的三維cad/cam系統在功能上基本能夠滿足產品三維設計的要求,但要高效地進行產品設計以滿足更高層次的

3、要求,必須借助于高級開發工具包pro/toolkit。pro/engineer是目前國際上最流行的“參數化,全相關”的三維設計軟件。全相關技術即產品的三維模型與二維圖形相互關聯、能高效率地生成二維投影視圖。因為在工程實踐中,二維工程圖是必不可少的,作為重要的技術文檔,工程圖具有一定的規范和標準,特別是工程信息的標注如各種標注符號、標題欄和明細表以及工程圖的打印等,這都需要按行業,企業和國家的標準統一做相應的二次開發定制工作。pro/engineer軟件具有廣而博的通用性,但它在具體的應用時不能直接處理特定的產品,再加上國外的設計觀念、標準和國內的差異,在使用該軟件進行具體產品的設計時會感到有些

4、地方不是特別方便。本課題二次開發的目的是為了減小pro/engineer系統上國外的設計觀念、標準和國內的差異對用戶應用時造成的影響和不必要的麻煩,對pro/engineer系統的二次開發的目的是對一些相關操作和參數進行國標化,更方便用戶的應用。關鍵詞:pro/engineer、pro/toolkit、工程圖、二次開發1.2 abstractthe three-dimensional design of product is inseparable from the cad/cam system's support. with the mature technology, powerf

5、ul pro/engineer parametric modeling system in the design and manufacturing , it has aroused attention, and has been increasingly widely used. as a general three-dimensional cad/cam system, pro/engineer basically meet the requirements of three-dimensional design .if we want to be more efficient to me

6、et the requirements of a higher level, we should resort to high-level development kit pro/toolkit.pro/engineer is the world's most popular "parameter, all related," three-dimensional design software. all related technology is a technology that make three-dimensional model and two-dimen

7、sional graphics interrelated. in engineering practice, the two-dimensional engineering drawings is essential. as an important technical documents, engineering drawings have certain norms and standards, especially a variety of engineering information marked symbols, the title bar and the schedule and

8、 project map printing. all of these standards need to be done by the secondary development of software.pro/engineer software has broad and general usage, but it can not directly address specific products. what is more, foreign design concepts, standards and national differ from us. so it would be in

9、convenient in the use of the software. the second development of this project aims to reduce the influence caused by foreign concepts, standards and internal differences of the pro/engineer. the purpose of the secondary development is to make the number of related operations and parameters internati

10、onal, more convenient for application.keywords: pro/engineer, pro/toolkit, drawings, secondary development2.設計說明2.1本課題的研究目的pro/engineer軟件具有廣而博的通用性,但它在具體的應用時不能直接處理特定的產品,再加上國外的設計觀念、標準和國內的差異,在使用該軟件進行具體產品的設計時會感到有些地方不是特別方便。本課題二次開發的目的是為了減小pro/engineer系統上國外的設計觀念、標準和國內的差異對用戶應用時造成的影響和不必要的麻煩,對pro/engineer系統的二

11、次開發的目的是對一些相關操作和參數進行國標化,更方便用戶的應用。2.2本課題的研究要求本設計課題為基于pro/engineer環境下的工程圖增強功能開發。為了高效地利用pro/engineer實現工程圖的完善及標注;同時也為了更加深入地了解pro/engineer系統的開發方法和步驟,為以后的設計開發工作打下一定的基礎。擬在學習了解pro/engineer二次開發的過程中完成以下功能的二次開發:1.自動生成同名工程圖文件;2.用菜單的方式選擇圖框及標題欄格式;3.按照國家標準樣式加載配置。2.3本課題的研究意義pro/engineer是目前國際上最流行的“參數化,全相關”的三維設計軟件。全相關

12、技術即產品的三維模型與二維圖形相互關聯、能高效率地生成二維投影視圖。因為在工程實踐中,二維工程圖是必不可少的,作為重要的技術文檔,工程圖具有一定的規范和標準,特別是工程信息的標注如各種標注符號、標題欄和明細表以及工程圖的打印等,這都需要按行業,企業和國家的標準統一做相應的二次開發定制工作。3. 基于pro/e環境下的工程圖增強功能開發3.1開發環境3.1.1開發環境介紹pro/toolkit是針對pro/engineer功能強大的二次開發工具。它封裝了許多針對pro/engineer底層資源調用的庫函數與頭文件,借助第三方編譯環境(c語言、vc+語言等)進行調試。使用pro/toolkit開發

13、應用程序包含三個基本步驟:編寫源文件(包括資源文件和程序源文件);生成可執行文件;可執行文件在pro/engineer中注冊并運行是pro/engineer軟件自帶的二次開發模塊,可以直接訪問proe軟件的最底層數據庫資源,這是進行pro二次開發最根本的方法,但要求開發人員具有相當c語言的編程能力;它是ptc公司為pro/engineer提供的用戶化工具箱(18以前的版本為pro/develop),該工具箱為用戶程序、軟件及第三方程序提供了與pro/engineer的無縫聯接。用戶程序和第三方程序是用c語言編寫的,pro/toolkit提供了大量的c語言的庫函數,能夠使外部應用程序安全有效地訪

14、問pro/engineer的數據庫和應用程序。通過c語言編程及應用程序與pro/engineer的無縫集成,用戶和第三方能夠在pro/engineer系統中增加所需的功能。3.1.2軟件配置1.操作系統:windows xp sp3 專業版2.程序開發軟件:pro/toolkit、microsoft visual studio 2008 企業版3.程序測試軟件:pro/engineer wildfire 4.0 m1704.程序兼容性優化軟件:microsoft visual basic 6.0 中文版3.1.3開發環境調試首先打開microsoft visual studio 2008(以下

15、簡稱vs2008)。依次選擇文件>新建>項目,系統彈出項目對話框(圖1)。選擇如圖所示的mfc dll 項目, 輸入項目名稱并設置項目路徑,點擊確定。在接下來的對話框中選擇“使用共享mfc dll 的規則dll”(默認的也是這個選項),點擊完成后,系統自動為我們搭建了一個dll的開發環境,現在,我們要在這個環境下配置toolkit 開發所需要的頭文件和庫文件路徑。圖1依次在菜單中選擇: 工具>選項,系統彈出選項對話框。在該對話中選擇“項目和解決方案”一欄中的“vc+目錄”選項,并參照圖2的方法設置頭文件路徑。圖2添加包含文件路徑如下:d:shejiproe4.0m170pro

16、toolkitincluded:shejiproe4.0m170protoolkitprotk_applsincludesd:shejiproe4.0m170prodevelopincludesd:shejiproe4.0m170prodevelopprotk_applsincludes仍舊在該對話框下,設置庫文件路徑,如圖3:圖3添加包含文件路徑如下:d:shejiproe4.0m170protoolkiti486_ntobjd:shejiproe4.0m170prodevelopi486_ntobj設置好頭文件和庫文件路徑后,就還差最后一步了,現在我們要來指定使用中的具體庫文件。點擊:項目

17、>屬性,系統彈出該項目的屬性對話框。按照圖4的方法設置工程的連接屬性。添加如下參數:附加依賴項:wsock32.lib mpr.lib psapi.lib protk_dllmd.lib忽略特定庫:msvcrtd.lib如上設置即完成了vs2008與pro/toolkit程序的連接,接下來編寫測試程序如下:程序源碼:/文件名:zhucaidan.cpp#include "windows.h"#include "proutil.h"圖4#include "promenu.h"#include "promessage.h&

18、quot;#include "promenubar.h"#include "prouidialog.h"#include "prouipushbutton.h"#include "protoolkit.h"#include "promenubar.h"#include "prouicheckbutton.h"#include "prouilist.h"#include "prouispinbox.h"#include "pro

19、uilabel.h"#include "prouiradiogroup.h"#include "proarray.h"#include "prouiinputpanel.h"#include "malloc.h"#include "stdlib.h"#include "pro2dentdef.h"#include "proelement.h"#include "profeatform.h"#include "prof

20、eattype.h"#include "prostdsection.h"#include "prowindows.h"#include "promodelitem.h"#include "prorevolve.h"#include "prosolid.h"#include "proelempath.h"#include "prodtmpln.h"/以上為程序編譯所用頭文件#define pro_use_var_args1void ok_actio

21、n(char*,char*,proappdata data);void fun01();static uicmdaccessstate accessdefault(uicmdaccessmode)return access_available;/以上為函數聲明/用戶入口函數:extern "c" int user_initialize()profilename msgfile;proerror status;/引用資源文件"dat01.dat":prostringtowstring(msgfile,"dat01.dat");uicmd

22、cmdid pushbuttonid01;/新建工具欄菜單:status=promenubarmenuadd("zhucaidan","imgs01","help",pro_b_false,msgfile);/在工具欄菜單上新建功能鍵:procmdactionadd("button01_act",(uicmdcmdactfn)fun01,uicmdpriodefault,accessdefault,pro_b_true,pro_b_true,&pushbuttonid01);promenubarmenupu

23、shbuttonadd("zhucaidan","button01","imgs02","imgs03",null,pro_b_true,pushbuttonid01,msgfile);procmdiconset(pushbuttonid01,"icon01.gif");return status;/用戶終止函數:extern "c" void user_terminate()/功能函數:void fun01()int dialog_status;/引用ui界面文件"

24、;res01.res":prouidialogcreate("res01","res01");prouidialogcloseactionset("res01",ok_action,null);prouipushbuttonactivateactionset("res01","button1",ok_action,null);prouidialogactivate("res01",&dialog_status);prouidialogdestroy(&quo

25、t;res01");void ok_action(char* dialog,char* componets,proappdata data) prouidialogexit("res01",1);/編譯以上源碼生成應用程序,重命名應用程序為:"dll01.dll"資源文件:/文件名:dat00.datname 主菜單exec_file d:kechengshejidll01.dlltext_dir d:kechengshejitextstartup dllfail_tol truedelay_start falseallow_stop fals

26、erevision 2010end/文件名:dat01.datimgs01畢業設計(&b)#imgs02關于我們(&m)#imgs03關于我們#ui界面文件:/文件名:res01.res(dialog res01 (components (label label1) (pushbutton button1) ) (resources (button1.label "確定")(button1.bitmap "cl_ok") (button1.attachright true) (button1.topoffset 5) (button1.b

27、ottomoffset 5) (button1.leftoffset 5) (button1.rightoffset 5) (label1.topoffset 5) (label1.bottomoffset 0) (label1.leftoffset 5) (label1.rightoffset 5) (label1.bitmap"pic01.gif") (.label "關于我們") (.dialogstyle 0) (.focus "button1") (.resizeable false) (.defaultbutton &qu

28、ot;button1") (.alwaysontop true) (.layout (grid (rows 1 1) (cols 1) label1 button1 ) ) )圖片資源:icon01.gif、pic01.gif設置以上文件路徑:d:kechengshejidll01.dlld:kechengshejitextchinese_cndat00.datd:kechengshejitextchinese_cndat01.datd:kechengshejitextchinese_cnresourceres01.resd:kechengshejitextchinese_cnres

29、ourceicon01.gifd:kechengshejitextchinese_cnresourcepic01.gif注冊并運行測試程序,運行pro/engineer,點擊:工具>輔助應用程序,注冊并運行資源文件dat00.dat;(如圖5)圖5啟動成功后工具欄新增菜單“畢業設計”和功能鍵“關于我們”,點擊:畢業設計>關于我們,效果如圖6所示。圖63.2功能開發3.2.1功能分析本設計課題為基于pro/engineer環境下的工程圖增強功能開發。為了高效地利用pro/engineer實現工程圖的完善及標注;同時也為了更加深入地了解pro/engineer系統的開發方法和步驟,為以

30、后的設計開發工作打下一定的基礎。擬在學習了解pro/engineer二次開發的過程中完成以下功能的二次開發:1.自動生成同名工程圖文件;對于已經存在的pro/engineer零件圖或組件圖,通過程序獲取它的文件名,并對生成的工程圖以獲取的文件名自動進行命名。自動生成零件圖或組件圖的三視圖(國家標準:主視圖,俯視圖,側視圖)。2.用菜單的方式選擇圖框及標題欄格式;pro/engineer系統默認繪圖環境下的圖框及格式均不符合國家標準要求,應按照相應的國家標準要求繪制圖框及標題欄模板,并在二次開發程序中加入選擇圖框的功能(圖幅:a0、a1、a2、a3、a4;圖框:橫向、縱向;是否帶裝訂邊等),程序

31、按照要求調用已有模板,自動生成工程圖的同時生成圖框,標題欄等。3.按照國家標準樣式加載配置;pro/engineer系統默認的配置都是以英制單位為標準,與國家標準不符,不適應國家標準環境下的應用。常規方式下修改pro/engineer配置參數僅在當次有效,下次使用時需要重復修改,工作量大而繁瑣,擬通過研究pro/engineer系統的工作原理達到將pro/engineer系統的默認環境更改為符合國家標準要求的配置。綜合以上功能分析,第1、2項功能通過pro/toolkit二次開發程序實現,第3項功能可通過重定義pro/engineer配置文件實現。3.2.2程序構架依據對程序所需完成的功能的分

32、析,結合pro/toolkit程序的工作流程,擬定此功能模塊的開發流程如下:1.pro/engineer系統開始運行是加載程序,在(3.1.3開發環境調試)程序加載的工具欄菜單上加載功能鍵;2.獲取當前工作環境,若為零件或組件工作環境則功能鍵處于激活狀態(功能鍵可用),否則功能鍵不激活;圖73.pro/engineer系統在零件或組件工作環境下,點擊功能鍵獲到當前環境下文件名并賦值給變量;4.彈出程序窗口,定義ui界面的參數和功能,將文件名變量賦值給窗口中文件名欄(可輸入更改);5.按照窗口中所列選項選擇圖幅、圖框、更改文件名等;6.點擊確定按鈕程序開始配置工作或點擊取消結束程序工作;7.獲取

33、pro/engineer工作進程中是否已存在當前工程圖,若存在則直接打開并激法工程圖;8.若pro/engineer工作進程中不存在當前工程圖則按照用戶的選擇調用相關的格式文件和圖幅模板,生成工程圖。9.激活工程圖,釋放程序內存,結束程序工作。綜合以上工作流程,繪制程序框圖如圖7所示。3.2.3程序開發1.pro/engineer系統開始運行是加載程序,在(3.1.3開發環境調試)程序加載的工具欄菜單上加載功能鍵。上文中用于開發環境調試的程序已使用promenubarmenuadd()函數在工具欄上加載菜單畢業設計,使用procmdactionadd()函數在畢業設計菜單下加載功能鍵關于我們。

34、在菜單畢業設計上使用procmdactionadd()函數加載新的功能鍵新建工程圖,使用promenubarmenupushbuttonadd()函數定義功能鍵的各項參數,使用procmdiconset()函數定義功能鍵的圖標,其實現方法為:profilename msgfile;proerror status;prostringtowstring(msgfile,"dat01.dat");uicmdcmdid pushbuttonid02;status=procmdactionadd("button02_act",(uicmdcmdactfn)fun0

35、2,uicmdpriodefault,accessdefault,pro_b_false,pro_b_true,&pushbuttonid02);promenubarmenupushbuttonadd("zhucaidan","button02","imgs04","imgs05",null,pro_b_false,pushbuttonid02,msgfile);procmdiconset(pushbuttonid02,"icon02.gif");說明:dat01.dat為資源文件,在下

36、文中將給出定義;icon02.gif圖標文件。fun02為點擊功能鍵后執行操作的函數,將在下文中定義。2.獲取當前工作環境,若為零件或組件工作環境則功能鍵處于激活狀態(功能鍵可用),否則功能鍵不激活。status=procmdactionadd("button02_act",(uicmdcmdactfn)fun02,uicmdpriodefault,accessdefault,pro_b_false,pro_b_true,&pushbuttonid02);上文語句中accessdefault為函數變量,作用是決定功能鍵是否激活(是否可用),函數返回值為:access

37、_available(功能鍵激活參數);access_unavailable(功能鍵不激活參數)。按照程序構架的要求,決定功能鍵是否激活的是pro/engineer系統的當前工作環境。當工作環境為零件(pro_mode_part)或組件(pro_mode_assembly)時功能鍵激活,否則不激活。使用promodecurrentget()函數獲取pro/engineer系統的當前工作環境,判斷并返回合適的返回值。對accessdefault函數的定義如下:uicmdaccessstate accessdefault(uicmdaccessmode)promode mode;proerror

38、status;status=promodecurrentget(&mode);if (mode=pro_mode_part|mode=pro_mode_assembly)return access_available;else return access_unavailable;3.pro/engineer系統在零件或組件工作環境下,點擊功能鍵獲到當前環境下文件名并賦值給變量。使用promdlcurrentget()函數獲得當前工作環境句柄,使用promdlnameget()函數獲取當前環境下的文件名,賦值給變量current_name,其實現語句為:proname current_n

39、ame;promdl mdlhandle;promdlcurrentget(&mdlhandle);promdlnameget(mdlhandle,current_name);使pro/engineer系統當前工作文件名賦值給變量current_name,供后續程序使用。4.彈出程序窗口,定義ui界面的參數和功能,將文件名變量賦值給窗口中文件名欄(可輸入更改)。此動作在點擊功能鍵后觸發,即為void fun02()函數,其返回值為空。上一流程中的語句應包含在void fun02()函數內。使用prouidialogcreate()函數調用pro/e標準ui界面文件res02.res;使

40、用prouipushbuttonactivateactionset()函數定義ui界面內各按鈕所執行的動作;使用prouidialogcloseactionset()函數定義取消按鈕;使用prouiinputpanelvalueset()函數對ui界面內文件名輸入欄賦值(初始值,可重新輸入更改);使用prouidialogactivate()函數顯示并激活ui界面;ui界面激活后使用prouidialogdestroy()函數清除內存中的對話框資源。對void fun02()函數的完整定義如下:void fun02()proname current_name;promdl mdlhandle;

41、int dialog_status;promdlcurrentget(&mdlhandle);promdlnameget(mdlhandle,current_name);prouidialogcreate("res02","res02");prouidialogcloseactionset("res02",cancel_action,null);prouipushbuttonactivateactionset("res02","ok",ok_action,null);prouipushb

42、uttonactivateactionset("res02","cancel",cancel_action,null);prouiinputpanelvalueset("res02","inputtext",current_name);prouidialogactivate("res02",&dialog_status);prouidialogdestroy("res02");說明:以上程序段調用了ui資源文件res02.res,此文件將在下文中定義;程序段中&quo

43、t;ok_action"、" cancel_action"分別為點擊確定、取消按鈕后執行的動作函數。5.按照窗口中所列選項選擇圖幅、圖框、更改文件名等。實現過程如下:/定義過程中所需變量:int w_id,p_count,a,b,i,j=0;promdl solid,*p_model_array;promdldata data01;promodel model;proname dwg_temp,name,names;wchar_t *name_temp;prodrawing drawing;prodwgcreateerrs errors;char strtmppr

44、o_path_size, *tf, *tk, name_stringpro_name_size, *tzmb;/獲取新建工程圖文件名:prouiinputpanelvalueget("res02","inputtext",&name_temp);/獲取圖幅參數:prouiradiogroupselectednamesget("res02","selecttype1",&a,&tf);/獲取圖框參數:prouiradiogroupselectednamesget("res02&quo

45、t;,"selecttype2",&b,&tk);/獲取工程圖模板:tzmb=strcat(*tf,*tk);/變量的賦值,變量類型轉換:prostringtowstring(dwg_temp,tzmb);prowstringtostring(name_string,name_temp);prostringtowstring(name,name_string);promdlcurrentget(&solid);promdldataget(solid,&data01);prowstringtostring(strtmp,)

46、;prostringtowstring(,strtmp);prowstringtostring(strtmp,data01.type);prostringtowstring(model.type,strtmp);6.點擊確定按鈕程序開始配置工作或點擊取消結束程序工作。確定按鈕對應的動作函數為:void ok_action(char* dialog,char* componets,proappdata data)上一流程中的各語句應包含在ok_action()函數中,并且下一流程也應包含其中。7.獲取pro/engineer工作進程中是否已存在當前工程圖,若存在則直接打開并激

47、活工程圖。使用prosessionmdllist()函數獲取pro/engineer系統工作進程列表,使用for語句遍歷進程列表,若存在當前文件名的工程圖則使用promdldisplay()函數顯示進程,并使用promdlwindowget()函數獲取進程id,最后使用prowindowactivate()函數激活窗口,使用prowindowrepaint()函數刷新界面。程序過程如下:prosessionmdllist(pro_mdl_drawing,&p_model_array,&p_count);for(i=0,j=0;i<p_count;i+)promdlname

48、get(p_model_arrayi,names);if(name=names)j+;promdldisplay(p_model_arrayi);promdlwindowget(p_model_arrayi,&w_id);prowindowactivate(w_id);prowindowrepaint(w_id);8.若pro/engineer工作進程中不存在當前工程圖則按照用戶的選擇調用相關的格式文件和圖幅模板,生成工程圖。生成工程圖的語句如下:proobjectwindowcreate(name,pro_drawing,&w_id);prodrawingfromtmpltc

49、reate(name,dwg_temp,&model,prodwgcreate_display_drawing,&drawing,&errors);9.激活工程圖,釋放程序內存,結束程序工作。此功能實現語句如下:/激活窗口:prowindowactivate(w_id);/刷新界面:prowindowrepaint(w_id);/結束程序:prouidialogexit("res02",1);10.整理以上功能代碼,編寫程序如下:/文件名:main.cpp#include "windows.h"#include "pro

50、util.h"#include "promenu.h"#include "promessage.h"#include "promenubar.h"#include "prouidialog.h"#include "prouipushbutton.h"#include "protoolkit.h"#include "promenubar.h"#include "prouicheckbutton.h"#include "

51、prouilist.h"#include "prouispinbox.h"#include "prouilabel.h"#include "prouiradiogroup.h"#include "proarray.h"#include "prouiinputpanel.h"#include "malloc.h"#include "stdlib.h"#include "pro2dentdef.h"#include "p

52、roelement.h"#include "profeatform.h"#include "profeattype.h"#include "prostdsection.h"#include "prowindows.h"#include "promodelitem.h"#include "prorevolve.h"#include "prosolid.h"#include "proelempath.h"#include &quo

53、t;prodtmpln.h"#include "prodrawing.h"#include "promdl.h"#define pro_use_var_args1void cancel_action(char* dialog,char* componets,proappdata data);void ok_action(char* dialog,char* componets,proappdata data);void fun02();uicmdaccessstate accessdefault(uicmdaccessmode);extern

54、"c" int user_initialize()profilename msgfile;proerror status;prostringtowstring(msgfile,"dat01.dat");uicmdcmdid pushbuttonid02;status=procmdactionadd("button02_act",(uicmdcmdactfn)fun02,uicmdpriodefault,accessdefault,pro_b_false,pro_b_true,&pushbuttonid02);promenuba

55、rmenupushbuttonadd("zhucaidan","button02","imgs04","imgs05",null,pro_b_false,pushbuttonid02,msgfile);procmdiconset(pushbuttonid02,"icon02.gif");return status;extern "c" void user_terminate()uicmdaccessstate accessdefault(uicmdaccessmode)pro

56、mode mode;proerror status;status=promodecurrentget(&mode);if (mode=pro_mode_part|mode=pro_mode_assembly)return access_available;else return access_unavailable;void fun02()proname current_name;promdl mdlhandle;int dialog_status;promdlcurrentget(&mdlhandle);promdlnameget(mdlhandle,current_name);prouidialogcreate("res02","res02");prouidialogcloseactionset("res02",cancel_action,null);prouipushbuttonactivateactionset("res02","ok",ok_acti

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論