資源描述:
《基于proe的齒輪參數(shù)化設(shè)計(jì)》由會(huì)員上傳分享,免費(fèi)在線(xiàn)閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、基于Pro/E的齒輪參數(shù)化設(shè)計(jì)一、齒輪設(shè)計(jì)實(shí)現(xiàn)文件//chilunsheji.cpp:定義DLL的初始化例程。#includc,fstdafx.hM#include"chilunsheji.h"#include"LoadDlg.h"#include"ProMenu.h"includenProUtil.hH#includcnProMcnubar.hn#includebunctionsdeclarationintGearDesign1MenuActFn();staticuiCmdAccessStateAccessAvailab
2、le(uiCmdAccessMode);#ifdcfDEBUG#definenewDEBUGNEW#endifintGearDesign1();intGearDesign2();//CchilunshcjiAppBEGIN_MESSAGE_MAP(CchilunshejiApp,CWinApp)END_MESSAGE_MAP()//CchilunshejiApp構(gòu)造CchilunshcjiApp::CchilunshejiApp()//唯一的一個(gè)CchilunshejiApp對(duì)彖CchilunshejiApptheApp;//Cchilunsheji
3、App初始化///////////////FUNCTION:user_initialize()externUCMintuser_initialize(){ProErrorstatus;ProFileNameMsgFile;uiCmdCmdldPushButton_cmd_id;ProStringToWstring(MsgFilc,"Message1.txt");//設(shè)置菜單信息文件名//status=ProMcnubarMcnuAdd("GearDesign蔦"GearDesign",”Utilities",PRO_B_TRUE,MsgFile);P
4、roCmdActionAdd(HPushButtonActMXuiCmdCmdActFn)GearDesign1MenuActFn,uiCmdPrioDefault,AccessAvailable,PRO_B_TRUE,PRO_B_TRUE,&PushButton_cmd_id);ProMenubarmenuPushbuttonAdd(MGearDesignM/GearDesign1,7,GearDesign1"「GearDesign1”,NULL,PRO_B_TRUE,PushButton_cmd_id,MsgFilc);returnstatus;
5、ProMenubarmenuPushbuttonAdd(HGearDesign,7tGearDesign2M/,GearDesign2,7,GearDesign2”,NULL,PRO_B_TRUE,PushButton_cmd_id,MsgFilc);66returnstatus;}^^H^HfUNCTION:user_terminate()externnCnvoiduser_terminate(){AFX_MANAGE_STATE(AfxGetStaticModuleState());}BOOLCchilunshejiApp::InitInstan
6、ce(){CWinApp::Initlnstance();returnTRUE;}staticuiCmdAccessStateAccessAvailable(uiCmdAccessModeaccess_mode){return(ACCESS_AVAILABLE);}二、齒輪設(shè)計(jì)対話(huà)框?qū)崿F(xiàn)文件#include"stdafx.h"#inckidc"chilunsheji.h"#include"LoadDlg.h"includenLoadDlg2.hH#include"LoadDlg3.h"#includeHLoadDlg4.hH#includc7、olid.h>#includeincludenProUtil.hn#include#inckidc#includeIMPLEMENT_DYNAMIC(CLoadDlg,CDialog)CLoadDlg::CLoadDlg(CWnd*pParcnt/*=NULL*/):CDialog(CLoadDlg::IDD,pParent){}CLoadDlg::?CLoadDlg(){}voidCLoadDlg::DoDataExchange(CDataExc
8、hange*pDX){CDialog::DoDataExchange(pDX);}BEGIN_MESSAGE