?? comm.h
字號:
#ifndef COMM
#define COMM
#include <rxregsvc.h>
#include <aced.h>
#include <adslib.h>
#include <rxobject.h>
#include <dbents.h>
#include <dbsymtb.h>
#include <geassign.h>
#include <adsdlg.h>
#include <adscodes.h>
#include <dbhatch.h>
#include <dbpl.h>
#define TRUE 1
#define PI 3.1415
#define FALSE 0
#define OK 1
#define ERROR 0
#define MAXLEN 255
#define HELP_CONTEXTS 0
#define SERVICE "ExhCAD_Service"
#define ExhCADHelpFile "exhcad.hlp"
#define TitleDclFile "title.dcl"
#define DeTableDclFile "detable.dcl"
#define BigFontFile "gbcbig.shx"
#define KeyWUDSL "W U D S L"
#define KeyPCWS "P C W S"
#define KeyPipe 'P'
#define KeyContainer 'C'
#define KeyWindPipe 'W'
#define KeyUContainer 'U'
#define KeyDContainer 'D'
#define KeySteel 'S'
#define KeyLinker 'L'
#define PromptDimensionType "\n請輸入標注選項:管子(P)/集箱(C)/風管(W)/鋼板(S)"
#define PromptPipeLen "\n請點擇標注管長:"
#define PromptPipeDiameter "\n請點擇標注管徑:"
#define PromptContainerLWH "\n請點擇標注集箱長、寬、高"
#define PromptWindPipeLWH "\n請點擇標注風管長、寬、高"
#define PromptDrawType "\n請輸入繪制選項:上集箱(U)/下集箱(D)/風管(W)/鋼板(S)/聯接件(L)"
#define PromptUCLW "\n請輸入主視圖上集箱長(mm)<1556.5>或左視圖上集箱寬(mm)<310>:"
#define PromptUCH "\n請輸入上集箱高(mm)<200>:"
#define PromptDCLW "\n請輸入主視圖下集箱長(mm)<3298>或左視圖下集箱寬(mm)<310>:"
#define PromptDCH "\n請輸入下集箱高(mm)<200>:"
#define PromptWLW "\n請輸入主視圖風管長(mm)<1420>或左視圖風管寬(mm)<173.5>:"
#define PromptWH "\n請輸入風管高(mm)<100>:"
#define PromptSL "\n請輸入鋼板長(mm)<3298>:"
#define PromptSW "\n請輸入鋼板寬(mm)<310>:"
#define PromptST "\n請輸入鋼板厚(mm)<20>:"
#define PromptDContainerBasePoint "\n請輸入下集箱的基點<端點>:"
#define PromptSteelLeftBasePoint "\n請輸入鋼板左側定位線的基點<交點>:"
#define PromptSteelHMBasePoint "\n請輸入鋼板水平中心線定位線的基點<圓心>:"
#define PromptSteelBasePoint "\n請輸入鋼板的基點<交點>:"
#define PromptUContainerBasePoint "\n請輸入上集箱的基點<中心點>:"
#define PromptWindPipeBasePoint "\n請輸入風管的基點<中心點>:"
#define PromptLinkerCenLBasePoint "\n請輸入聯接件的起始基點<交點>:"
#define PromptLinkerCenRBasePoint "\n請輸入聯接件的終了基點<交點>:"
#define IDS_ExhCAD_Load "\n\nExhCAD繪圖系統加載中...\n"
#define IDS_ExhCAD_Unload "\n\nExhCAD繪圖系統卸載中...\n"
#define IDS_ExhCAD_Object "\n\nExhCAD繪圖系統不能創建ExhCAD對象!\n"
#define IDS_ExhCAD_Init "\n\nExhCAD繪圖系統繪圖數據初始化...\n"
#define IDS_ExhCAD_About "\n\nExhCAD繪圖系統(版本:1.01a Final)\n版權: 安徽工業大學 首鋼技術研究院\n研發:endlessfree\n"
#define IDS_TITLE_School "安徽工業大學"
#define IDS_TITLE_Project "金屬空氣管狀換熱器"
#define IDS_TITLE_Author "無境"
#define IDS_TITLE_Teacher "熱能與動力工程系"
#define IDS_TITLE_Check "冶金與資源學院"
#define IDS_TITLE_Scale "1:10"
#define IDS_TITLE_Size "二號"
#define IDS_TITLE_Date "2001年06月25日"
#define IDS_DETABLE_Area "112.34"
#define IDS_DETABLE_Insert "/"
#define IDS_DETABLE_Fumeoutt "489"
#define IDS_DETABLE_Fumeint "750"
#define IDS_DETABLE_Fumeq "2546"
#define IDS_DETABLE_Airoutt "280"
#define IDS_DETABLE_Airint "20"
#define IDS_DETABLE_Airq "2514"
#define IDS_ExhCAD_WindPipe "\n編寫風管中...\n"
#define IDS_ExhCAD_UContainer "\n編寫上集箱中...\n"
#define IDS_ExhCAD_DContainer "\n編寫下集箱中...\n"
#define IDS_ExhCAD_Steel "\n編寫鋼板中...\n"
#define IDS_ExhCAD_Linker "\n編寫聯接件中...\n"
#define IDS_ExhCAD_Dimension "\n編寫尺寸標注中...\n"
#define IDS_ExhCAD_Title "\n編寫標題欄中...\n"
#define IDS_ExhCAD_DeTable "\n編寫明細表中...\n"
typedef struct{
char School[256],Project[256],
Author[256],Teacher[256],Check[256],
Scale[256],Size[256],Date[256];
}TITLE;
typedef struct {
char Area[256],Insert[256],
Fumeoutt[256],Fumeint[256],Fumeq[256],
Airoutt[256],Airint[256],Airq[256];
}DETABLE;
TITLE *Titles;
DETABLE *Detables;
typedef int Status;
AcGePoint3d basepoint(0,0,0);
void ExhCADAbout(void);
void ExhCADHelp(void);
void ExhCADDraw(void);
void ExhCADDimension(void);
void ExhCADTitle(void);
static void CALLB Title_accept(ads_callback_packet *cpkt);
static void CALLB Title_undo(ads_callback_packet *cpkt);
static void CALLB DeTable_accept(ads_callback_packet *cpkt);
static void CALLB DeTable_undo(ads_callback_packet *cpkt);
class ExhCAD: public AcRxObject{
private:
AcDbDatabase *pDb;
protected:
Status DrawWindPipe(void);
Status DrawUContainer(void);
Status DrawDContainer(void);
Status DrawSteel(void);
Status DrawLinker(void);
Status DimensionPipe(void);
Status DimensionContainer(void);
Status DimensionWindPipe(void);
Status DimensionSteel(void);
public:
ExhCAD(void){ Init(); }
~ExhCAD(void);
ACRX_DECLARE_MEMBERS(ExhCAD);
Status Init(void);
Status About(char *AppInformation);
Status Help(char *FileName,char *Topic,int Command);
char* GetExhCADFile(char *FileName);
Status Draw(void);
Status Dimension(void);
Status Title(char *FileTitle);
Status InitTitle(ads_hdlg htitledlg);
Status SetTitle(ads_hdlg htitledlg);
Status DeTable(char *FileDeTable);
Status InitDeTable(ads_hdlg hdetabledlg);
Status SetDeTable(ads_hdlg hdetabledlg);
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -