151 lines
3.8 KiB
C
151 lines
3.8 KiB
C
// stdafx.h : include file for standard system include files,
|
|
|
|
#if !defined(AFX_STDAFX_H__0F6EAF2A_9BA3_11D2_8195_0000E82EB017__INCLUDED_)
|
|
#define AFX_STDAFX_H__0F6EAF2A_9BA3_11D2_8195_0000E82EB017__INCLUDED_
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
|
|
#pragma warning(disable: 4068)
|
|
#pragma warning(disable: 4786)
|
|
#pragma warning(disable : 4996)
|
|
|
|
|
|
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
|
|
|
#include <afxwin.h> // MFC core and standard components
|
|
#include <afxext.h> // MFC extensions
|
|
|
|
#ifndef _AFX_NO_OLE_SUPPORT
|
|
//#include <afxole.h> // MFC OLE classes
|
|
//#include <afxodlgs.h> // MFC OLE dialog classes
|
|
#include <afxdisp.h> // MFC OLE automation classes
|
|
#endif // _AFX_NO_OLE_SUPPORT
|
|
|
|
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
|
#include <afxcmn.h> // MFC support for Windows Common Controls
|
|
#endif // _AFX_NO_AFXCMN_SUPPORT
|
|
|
|
#include <afxtempl.h>
|
|
#include "math.h"
|
|
#include "class_conversion.h"
|
|
#include "pp3d.h"
|
|
|
|
#define TARCH_EXP
|
|
#define TARCH_IMPEXP __declspec( dllimport )
|
|
#define TUTIL_IMPEXP __declspec( dllimport )
|
|
#define AOLAPI __declspec( dllimport )
|
|
#define GEOAPI __declspec( dllimport )
|
|
|
|
#define PS_EXP __declspec( dllexport )
|
|
#define PS_IMPEXP __declspec( dllexport )
|
|
|
|
#define g_sDbPsConfig _T("TCH_DBPSCONFIG")
|
|
//#define g_sFittingLayer LAY_TWT_NODE //自动连接件图层
|
|
|
|
#define RECORD_CMD_TIME // 标记是否统计命令执行次数 cet 2012.8.9 add
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
// AutoCAD ARX Files
|
|
#include "dbapserv.h"
|
|
#include "migrtion.h"
|
|
#include "dbmain.h"
|
|
#include "dbents.h"
|
|
#include "aced.h"
|
|
#include "acgi.h"
|
|
#include "dbsymtb.h"
|
|
//#include "rcmgr.h"
|
|
#include "rxdefs.h"
|
|
#include "geassign.h"
|
|
#include "dbidmap.h"
|
|
#include "dbhatch.h"
|
|
#include "DbRegion.h"
|
|
#include "DbSol3d.h"
|
|
#include "rxmfcapi.h"
|
|
#include "rxregsvc.h"
|
|
#include "AcExtensionModule.h"
|
|
#include "dbobjptr.h"
|
|
|
|
|
|
// Tangent Object Library
|
|
#include "TMigration.h"
|
|
#include "tch_kernal.h"
|
|
#include "TchKernalGlobalFunc.h"
|
|
|
|
//#include "tch_kernal.h"
|
|
//#include "tch_utility.h"
|
|
|
|
//#include "xgcom.h"
|
|
//#include "general.h"
|
|
//#include "findfile.h"
|
|
//#include "dcstream.h"
|
|
//#include "arxtools.h"
|
|
//#include "xacgi.h"
|
|
//#include "DbObject.h"
|
|
//#include "symdef.h"
|
|
//#include "DbRect.h"
|
|
//#include "wstring.h"
|
|
|
|
#include "layerDefine.h"
|
|
#include "tgas.h"
|
|
#include "TDbfString.h"
|
|
|
|
|
|
//tch_pipewire
|
|
//#include "..\PipeTool.h"
|
|
|
|
#define TARCH_EXP
|
|
#define TARCH_IMPEXP __declspec( dllimport )
|
|
#define TUTIL_IMPEXP __declspec( dllimport ) //导入
|
|
#define GEOAPI __declspec( dllimport ) //导入
|
|
#define TELAPI __declspec( dllimport )
|
|
|
|
#ifndef NDEBUG
|
|
// 使得Debug版本,能够正确实现ASSERT和VERIFY(在没有_DEBUG宏的情况下)
|
|
#ifdef ASSERT
|
|
#undef ASSERT
|
|
#endif
|
|
#define ASSERT(n) assert(n)
|
|
|
|
#ifdef VERIFY
|
|
#undef VERIFY
|
|
#endif
|
|
#define VERIFY(n) assert(n)
|
|
#endif
|
|
|
|
#if ADS<16
|
|
#define _tstof(x) atof(x)
|
|
#endif
|
|
|
|
//#ifndef _UNICODE
|
|
//#define tstrnew strnew
|
|
//#endif
|
|
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
|
|
|
//add liaoy 170721
|
|
//大写BOOL在21平台实际以int读写,在20及其以下平台实际以bool读写,统一为以Adesk::Boolean读写
|
|
inline Acad::ErrorStatus FilerRead(AcDbDwgFiler *pFiler, BOOL& bResult)
|
|
{
|
|
Adesk::Boolean bResultT = Adesk::kFalse;
|
|
Acad::ErrorStatus es = pFiler->readBoolean(&bResultT);
|
|
bResult = bResultT;
|
|
return es;
|
|
}
|
|
inline Acad::ErrorStatus FilerWrite(AcDbDwgFiler *pFiler, const BOOL& bResult)
|
|
{
|
|
Adesk::Boolean bResultT = bResult == 0 ? Adesk::kFalse : Adesk::kTrue;
|
|
Acad::ErrorStatus es = pFiler->writeBoolean(bResultT);
|
|
return es;
|
|
}
|
|
//add end
|
|
// cet 2018.2.2 add 读取管道本身记录的外径值
|
|
double GetPipeOutDByDn(const AcDbObjectId &idPipe);
|
|
|
|
#endif // !defined(AFX_STDAFX_H__0F6EAF2A_9BA3_11D2_8195_0000E82EB017__INCLUDED_)
|