42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
#pragma once
|
|
|
|
class AecDbObjXDataMap;
|
|
|
|
#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
|
|
|
|
class DuctlineTools
|
|
{
|
|
public:
|
|
static LPCTSTR gLayer_Pipe_Dim;
|
|
static LPCTSTR gTextStyle_Pipe_Dim;
|
|
public:
|
|
|
|
static CString getCurrentPipeSysTblName();
|
|
static AcDbObjectId getLtByPipeSys(LPCTSTR sys, bool bCenter);
|
|
static int getColorByPipeSys(LPCTSTR sys, bool bCenter);
|
|
static double getLwByPipeSys(LPCTSTR sys, bool bCenter); // 管线内外线线宽
|
|
|
|
static AcDbObjectId getLyByPipeSys(LPCTSTR sys, bool bCenter, bool bUpdate = false); // 管线内外线图层
|
|
static AcDbObjectId getLyForPipe(LPCTSTR sys, bool bUpdate = false);
|
|
|
|
static bool getSqliteDB(LPCTSTR dbName, CUIISQLiteServer & db);
|
|
static AcDbObjectId AecInitLayerEx(LPCTSTR pszLayer,LPCTSTR pszSys,int nColorIndex,LPCTSTR pszLineType,AcDbDatabase* pDb,bool bUpdate = false);
|
|
|
|
// 设置图层系统
|
|
static bool setLayerSys(CUIISQLiteServer *pDb, CStringArray &ar);
|
|
// 获得系统
|
|
static bool getLayerSys(CUIISQLiteServer *pDb, CStringArray &ar);
|
|
};
|
|
|