22 lines
1.1 KiB
C++
22 lines
1.1 KiB
C++
#pragma once
|
|||
|
|
class utility
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
static int CompareString(const CString& strFirst, const CString& strSecond);
|
||
|
|
static CString GetInstallDir();
|
||
|
|
static CString GetCurFileName(AcDbDatabase *pData);
|
||
|
|
static void GetAccmColorByString(CString sColor, AcCmColor &color);
|
||
|
|
static AcDbObjectId GetIdByName(LPCTSTR name);
|
||
|
|
static bool ReadHatchMaterialConfigFile(const CString& strMaterialType, std::vector< std::pair<CString, CString> >& materialName);
|
||
|
|
static CString getConfigFilePath(const CString& fileName);
|
||
|
|
static AcDbObjectId LoadTArch20LineType(const TCHAR* szLineType);
|
||
|
|
static AcDbObjectId GetTArch20LinetypeIdFromString(const TCHAR* pStr);
|
||
|
|
static CString GetHatchMaterialConfigFilePath();
|
||
|
|
static BOOL LoadLineType(CString csName, CString csComment, int num, bool fit, double dLength, CString csContent);
|
||
|
|
static AcDbObjectId InitLineTypeTextStyle_Thunder();
|
||
|
|
static AcDbObjectId InitLineTypeTextStyle();
|
||
|
|
static void GetLineDashData(int i, CString csContent, double &dLen, CString &csText, CString &csStyle, double &dScale, double &dRotation, double &dX, double &dY);
|
||
|
|
static AcDbObjectId CreateShxStyle(CString csShxFile);
|
||
|
|
static int GetPScale();
|
||
|
|
};
|
||
|
|
|