199 lines
6.8 KiB
C
199 lines
6.8 KiB
C
// StdAfx.h : include file for standard system include files,
|
|
// or project specific include files that are used frequently,
|
|
// but are changed infrequently
|
|
|
|
#if !defined(AFX_STDAFX_H__55ABA73C_2429_4DCF_8FF9_7EC4AFE6B94D__INCLUDED_)
|
|
#define AFX_STDAFX_H__55ABA73C_2429_4DCF_8FF9_7EC4AFE6B94D__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#pragma warning(disable: 4068)
|
|
#pragma warning(disable: 4786)
|
|
#pragma warning(disable : 4996)
|
|
|
|
#define STRICT
|
|
#ifndef _WIN32_WINNT
|
|
#if ADS>17
|
|
#define _WIN32_WINNT 0x0600
|
|
#else
|
|
#define _WIN32_WINNT 0x0600
|
|
#endif
|
|
#endif
|
|
|
|
// 'DEBUG workaround' below prevents the MFC or ATL #include-s
|
|
// from pulling in "afx.h" that would force the debug CRT through
|
|
// #pragma-s.
|
|
#if defined(_DEBUG) && !defined(_FULLDEBUG_)
|
|
#define _DEBUG_WAS_DEFINED
|
|
#undef _DEBUG
|
|
#pragma message (" Compiling MFC header files in release mode.")
|
|
#endif
|
|
|
|
#include "Afxtempl.h"
|
|
#include <math.h>
|
|
#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 Automation classes
|
|
#endif // _AFX_NO_OLE_SUPPORT
|
|
|
|
#ifndef _AFX_NO_DB_SUPPORT
|
|
#include <afxdb.h> // MFC ODBC database classes
|
|
#endif // _AFX_NO_DB_SUPPORT
|
|
|
|
#ifndef _AFX_NO_DAO_SUPPORT
|
|
#include <afxdao.h> // MFC DAO database classes
|
|
#endif // _AFX_NO_DAO_SUPPORT
|
|
|
|
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
|
|
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
|
#include <afxcmn.h> // MFC support for Windows Common Controls
|
|
#endif // _AFX_NO_AFXCMN_SUPPORT
|
|
|
|
|
|
#define LAY_PREVIEW_THUNDER _T("LayPTThunder")
|
|
#define LAY_EL_TEXT _T("ThunderText")
|
|
#define LAY_EL_THUNDER _T("THUNDER")
|
|
#define LAY_EL_THUNDER_2D _T("THUNDER_2D")
|
|
#define LAY_EL_THUNDER_3D _T("THUNDER_3D")
|
|
#define LAY_EL_LIGHTNING_LINE _T("LIGHTNING_LINE")
|
|
#define LAY_EL_THUNDER_DIM _T("THUNDER_DIM")
|
|
#define TS_EL_LABEL _T("LABEL")
|
|
#define EL_TEXT _T("EL_TEXT")
|
|
|
|
#define LAY_LIGHTSHEET _T("LIGHTSHEET")
|
|
|
|
|
|
//textstyle
|
|
#define EL_DIM _T("EL_TSDIM")
|
|
#define G_CSDIMSTYLE _T("EL_TSDIM ")
|
|
|
|
// AutoCAD Object Library
|
|
#include "KTCad.h"
|
|
|
|
#ifdef AOL
|
|
#define GEOAPI __declspec(dllexport)
|
|
#else
|
|
#define GEOAPI __declspec(dllimport)
|
|
#endif
|
|
|
|
#include "AdsXRxInc.h"
|
|
|
|
#define ThunderContainer TContainerSingleton::GetInstance()
|
|
#define FoldManager CFoldPinRelation::Instance()
|
|
|
|
// 扩展数据名
|
|
#define TEL_THUNDER_BASEINFOR _T("EL_thunderBaseInforXData")
|
|
#define TEL_THUNDER_MULTIPROHT _T("EL_thunderMultiproht")
|
|
#define TEL_THUNDER_ID _T("EL_thunderIdXData")
|
|
#define TEL_THUNDER_LABLE _T("EL_ThunderLable")
|
|
#define TEL_THUNDER_PROHT _T("EL_ThunderProht")
|
|
#define TEL_SPLIT_CH _T("@")
|
|
#define TEL_GROUP_NO _T("EL_Group_No")
|
|
#define TEL_ORDER_NUMBER _T("EL_Order_Number")
|
|
#define TEL_CURRENT_PROHEIGHT _T("EL_Current_Proheight")
|
|
#define TEL_THUNDER_TYPE _T("Thunder_Type") //1为折线法,其他为滚球法
|
|
|
|
// key 滚球法
|
|
#define KEY_SINGLEPRO_COLOR _T("SinglePro_Color")
|
|
#define KEY_UNIONPRO_COLOR _T("UnionPro_Color")
|
|
#define KEY_HORPRO_RADIU _T("HorPro_Radiu")
|
|
#define KEY_SINGLEPRO_HEIGHT _T("SinglePro_Height")
|
|
#define KEY_FONTLABLE_HEIGHT _T("FontLable_Height")
|
|
#define KEY_SPACE_BETWEEN _T("Space_Between")
|
|
#define KEY_UNIONPRO_HEIGHT _T("UnionPro_Height")
|
|
#define KEY_HORPRO_RANGE _T("HorPro_Range")
|
|
#define KEY_FONTLABLE_COLOR _T("FontLable_Color")
|
|
|
|
#define KEY_THU_LAST_GROUPNO _T("Thu_Last_GroupNO")
|
|
#define KEY_GROUNDRADIUS _T("GroundRadius")
|
|
#define KEY_THUNDERPINHEIGHT _T("ThunderPinHeight")
|
|
#define KEY_THUNDERSCALE _T("ThunderScale")
|
|
#define KEY_TEXTHIGHT _T("TextHight")
|
|
#define KEY_LINETHINK _T("LineThink")
|
|
|
|
// 折线法 设置参数
|
|
#define KEY_FOLD_THUNDER_ID _T("Fold_Thunder_Id")
|
|
#define KEY_FOLD_LAST_GROUPNO _T("Fold_Last_GroupNO")
|
|
#define KEY_FOLD_GROUP_NO _T("Fold_Group_No")
|
|
#define KEY_FOLD_PRO_GROUP _T("Fold_Pro_Group")
|
|
#define KEY_FOLD_THUNDER_MULTIPROHT _T("Fold_MultiProHT")
|
|
#define KEY_FOLD_CURRENT_PROHEIGHT _T("Fold_Current_ProH")
|
|
#define KEY_FOLD_SINGLEPRO_COLOR _T("Fold_SinglePro_Color")
|
|
#define KEY_FOLD_UNIONPRO_COLOR _T("Fold_UnionPro_Color")
|
|
#define KEY_FOLD_HORPRO_RADIU _T("Fold_HorPro_Radiu")
|
|
#define KEY_FOLD_SINGLEPRO_HEIGHT _T("Fold_SinglePro_Height")
|
|
#define KEY_FOLD_FONTLABLE_HEIGHT _T("Fold_FontLable_Height")
|
|
#define KEY_FOLD_SPACE_BETWEEN _T("Fold_Space_Between")
|
|
#define KEY_FOLD_UNIONPRO_HEIGHT _T("Fold_UnionPro_Height")
|
|
#define KEY_FOLD_HORPRO_RANGE _T("Fold_HorPro_Range")
|
|
#define KEY_FOLD_FONTLABLE_COLOR _T("Fold_FontLable_Color")
|
|
|
|
#define KEY_FOLD_THU_LAST_GROUPNO _T("Fold_Thu_Last_GroupNO")
|
|
#define KEY_FOLD_GROUNDRADIUS _T("Fold_GroundRadius")
|
|
#define KEY_FOLD_THUNDERPINHEIGHT _T("Fold_ThunderPinHeight")
|
|
#define KEY_FOLD_THUNDERSCALE _T("Fold_ThunderScale")
|
|
#define KEY_FOLD_TEXTHIGHT _T("Fold_TextHight")
|
|
#define KEY_FOLD_LINETHINK _T("Fold_LineThink")
|
|
|
|
#define KEY_FOLD_HILL_HILLSIDE _T("Fold_Hill_Hillside") // 2012/3/21 for 支持山地坡地计算
|
|
|
|
// 避雷线
|
|
// 避雷线
|
|
#define KEY_LINE_GROUP_NO _T("Key_Line_Group_No")
|
|
#define KEY_LINE_PRO_RADIUS _T("Key_Line_Pro_Radius")
|
|
#define KEY_LINE_HEIGHT _T("Key_Line_Height")
|
|
#define KEY_THUNDERLINE_PH _T("Key_Thunderline_PH")
|
|
|
|
#include "TContainerSingleton.h"
|
|
#include "XFoldDef.h"
|
|
#include "FoldToolKit.h"
|
|
#include "FoldPinRelation.h"
|
|
// 注册表
|
|
#define TEL_OBJECTKEY _T("TelThunder")
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
extern const TCHAR * GetRegLocation();
|
|
extern double DocGetPScale();
|
|
extern void SetBlkAttrText(Entity entBlk, const TCHAR*szText, const TCHAR*szTag, double nHeight, BOOL bVisible, BOOL bDown);
|
|
extern AcDbObjectId InitBlock(const TCHAR *pszBlock, AcDbDatabase *pDb = NULL);
|
|
extern CString GetArxDir();
|
|
extern CString GetSysDir();
|
|
|
|
#ifndef _ttof
|
|
#define _ttof(pszVal) _tcstod((pszVal), NULL)
|
|
#endif
|
|
|
|
#ifdef _DEBUG_WAS_DEFINED
|
|
#define _DEBUG
|
|
#undef _DEBUG_WAS_DEFINED
|
|
#endif
|
|
|
|
extern HINSTANCE _hdllInstance ;
|
|
#include "rxdebug.h"
|
|
// RX Includes
|
|
#include "acdb.h" // acdb definitions
|
|
#include "rxregsvc.h" // ARX linker
|
|
#include "dbapserv.h" // Host application services
|
|
#include "aced.h" // aced stuff
|
|
#include "adslib.h" // RXADS definitions
|
|
#include "acdocman.h" // MDI document manager
|
|
#include "rxmfcapi.h" // ObjectARX MFC support
|
|
#include "AcExtensionModule.h" // Utility class for extension dlls
|
|
|
|
#ifdef _FULLDEBUG_
|
|
#pragma message ("Warning! You should better not run this application in a Standard AutoCAD release.")
|
|
#pragma message (" Due to the memory managment constraints.")
|
|
#endif
|
|
|
|
// Include this here to speed up the compile times
|
|
#include "stdarx.h"
|
|
|
|
#endif // !defined(AFX_STDAFX_H__55ABA73C_2429_4DCF_8FF9_7EC4AFE6B94D__INCLUDED)
|