Files
envi-code/SourceCode/Code2026/tg_shs/shs_public/SaveSettingDlg.cpp
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

3046 lines
138 KiB
C++

// SaveSettingDlg.cpp : implementation file
//
#include "stdafx.h"
#include "tapi.h"
#include "twtdef.h"
#include "teldef.h"
#include "SaveSettingDlg.h"
//#include <dict.h>
#include "BrowseForFolder2.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern TARCH_IMPEXP BOOL g_bEnableSelectPreview;
extern TARCH_IMPEXP BOOL g_bAutoLTScale; //是否自动设置线型比例
/////////////////////////////////////////////////////////////////////////////
// 导入设置
/////////////////////////////////////////////////////////////////////////////
void ReadSettingCmd()
{
CAcModuleResourceOverride vTemp;
CSaveSettingDlg dlg;
CString csTempPath, csSettingFile, csTgPath;
TCHAR dwgPrefix[256];
TCHAR szTmp[256];
ads_getstring(0, _T("\n选择导入设置文件的位置[读取默认位置(1)/到指定目录读取(2)]:<1>"), szTmp);
if(_tcsicmp(szTmp, _T("2")) == 0){
CBrowseForFolder2::BrowseForFolder2(acedGetAcadFrame()->m_hWnd, csTgPath,_T("指定导入目录"),0);
CString csRight = csTgPath.Right(1);
if(csRight != _T("\\"))
csTgPath += _T("\\");
}
else
{
GetTempPath(255, dwgPrefix);
if(dwgPrefix[_tcslen(dwgPrefix)-1]!=_T('\\'))
_tcscat(dwgPrefix, _T("\\"));
csTempPath = dwgPrefix;
if(g_nProductId == 14)
csTgPath = _T("TwtSetting\\"); //给排水
else if(g_nProductId == 16)
csTgPath = _T("TelecSetting\\"); //电气
else if(g_nProductId == 15)
csTgPath = _T("ThvacSetting\\"); //暖通
else
return;
}
csTempPath += csTgPath;
if (!dlg.IsDirExist(csTempPath)) {
adsout << _T("没有找到导出的文件,请确认首先进行导出设置。\n");
return;
}
csSettingFile = csTempPath + _T("setting.ini");
if(g_nProductId == 14)
dlg.ReadTwtSetting(csSettingFile);
else if(g_nProductId == 16)
{
//axc add 2015-04-22 增加电气导出设置
// struct resbuf rbUr;
// rbUr.restype = RTSTR;
// rbUr.resval.rstring = csSettingFile.GetBuffer();
// rbUr.rbnext = NULL;
// acedSetVar(_T("USERS3"), &rbUr);
// PostCommand(_T("TGREADTELSET\n"));
dlg.ReadTelSetting(csSettingFile);
}
CString csNewFile;
csNewFile = csTempPath + _T("acad.pgp");
XString fullFile;
BOOL bPgp = FALSE;
if(FindFile(_T("acad.pgp"), fullFile))
{
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
bPgp = TRUE;
}
csNewFile = csTempPath + _T("tchdata.dbf");
if(FindFile(_T("tchdata.dbf"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("LAYERDEF.DAT");
if(FindFile(_T("LAYERDEF.DAT"), fullFile))
{
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
InitLayers(TRUE);
}
csNewFile = csTempPath + _T("linetype.dbf");
if(FindFile(_T("linetype.dbf"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
if(g_nProductId == 16)
{
csNewFile = csTempPath + _T("equipdefine.dbf");
if(FindFile(_T("equipdefine.dbf"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("customblklib.dbf");
if(FindFile(_T("customblklib.dbf"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("Equip_U.TK");
if(FindFile(_T("Equip_U.TK"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("Equip_U.SLB");
if(FindFile(_T("Equip_U.SLB"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("Equip_U.DWB");
if(FindFile(_T("Equip_U.DWB"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
}
if(g_nProductId == 14)
{
csNewFile = csTempPath + _T("pipe.dbf");
if(FindFile(_T("pipe.dbf"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("VALVE_U.TK");
if(FindFile(_T("VALVE_U.TK"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("VALVE_U.SLB");
if(FindFile(_T("VALVE_U.SLB"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("VALVE_U.DWB");
if(FindFile(_T("VALVE_U.DWB"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
}
else if(g_nProductId == 15)
{
csNewFile = csTempPath + _T("pipe.dbf");
if(FindFile(_T("pipe.dbf"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("VALVE_U.TK");
if(FindFile(_T("VALVE_U.TK"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("VALVE_U.SLB");
if(FindFile(_T("VALVE_U.SLB"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("VALVE_U.DWB");
if(FindFile(_T("VALVE_U.DWB"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("自定义设备.DWB");
if(FindFile(_T("自定义设备.DWB"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("自定义设备.TK");
if(FindFile(_T("自定义设备.TK"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
csNewFile = csTempPath + _T("自定义设备.SLB");
if(FindFile(_T("自定义设备.SLB"), fullFile))
CopyFile( (const TCHAR*)csNewFile, (const TCHAR*)fullFile, FALSE);
}
adsout << _T("已经完成导入设置。\n");
if(bPgp)
adsout << _T("您更新了acad.pgp文件。需要重新启动ACAD才能生效。\n");
}
/////////////////////////////////////////////////////////////////////////////
// 导出设置
/////////////////////////////////////////////////////////////////////////////
//删除该目录下所有文件
BOOL PreRemoveDirectory(CString DirName)
{
//成功:返回TRUE;否则,返回FALSE
TCHAR lpBuffer[256];
UINT uSize;
//HANDLE hHeap;
BOOL result;
HANDLE hFindFile;
WIN32_FIND_DATA FindFileData;
uSize=(GetCurrentDirectory(0,NULL))*sizeof(TCHAR);
//hHeap=GetProcessHeap();
//lpBuffer=(LPSTR)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,uSize);
GetCurrentDirectory(uSize,lpBuffer);
if (lpBuffer!=DirName) {//调整当前目录
SetCurrentDirectory(DirName);
}
hFindFile=FindFirstFile(_T("*.*"),&FindFileData);
CString tFile;
if (hFindFile!=INVALID_HANDLE_VALUE) {
do {
tFile=FindFileData.cFileName;
if ((tFile==".")||(tFile=="..")) continue;
if (FindFileData.dwFileAttributes==FILE_ATTRIBUTE_DIRECTORY){
if (DirName[DirName.GetLength()-1]!='\\')
PreRemoveDirectory(DirName+'\\'+tFile);
else
PreRemoveDirectory(DirName+tFile);
if (!RemoveDirectory(tFile))
result=FALSE;
else
result=TRUE;
}
else{
SetFileAttributes(tFile,FILE_ATTRIBUTE_NORMAL);
if (!DeleteFile(tFile)) result=FALSE;
else result=TRUE;
}
}
while (FindNextFile(hFindFile,&FindFileData));
FindClose(hFindFile);
}
else {
SetCurrentDirectory(lpBuffer);
return FALSE;
}
SetCurrentDirectory(lpBuffer);
//回复到原来的目录下
return result;
}
void SaveSettingCmd()
{
CAcModuleResourceOverride vTemp;
CSaveSettingDlg dlg;
if(dlg.DoModal() != IDOK)
return;
CString csTempPath, csSettingFile, csTgPath;
if(dlg.m_bFolder)
{
BOOL bSuccess = CBrowseForFolder2::BrowseForFolder2(acedGetAcadFrame()->m_hWnd, csTgPath,_T("指定保存目录"),0);
CString csRight = csTgPath.Right(1);
if(csRight != _T("\\"))
csTgPath += _T("\\");
csTempPath += csTgPath;
}
else
{
TCHAR dwgPrefix[256];
GetTempPath(255, dwgPrefix);
if(dwgPrefix[_tcslen(dwgPrefix)-1]!=_T('\\'))
_tcscat(dwgPrefix, _T("\\"));
csTempPath = dwgPrefix;
if(g_nProductId == 14)
csTgPath = _T("TwtSetting\\"); //给排水
else if(g_nProductId == 16)
csTgPath = _T("TelecSetting\\"); //电气
else if(g_nProductId == 15)
csTgPath = _T("ThvacSetting\\"); //暖通
else
return;
csTempPath += csTgPath;
if (dlg.IsDirExist(csTempPath)) //如果发现有旧的设置目录,先删除目录下所有文件
PreRemoveDirectory(csTempPath);
else
CreateDirectory(csTempPath, NULL);
}
if(dlg.m_bSetting)
{
csSettingFile = csTempPath + _T("setting.ini");
if(g_nProductId == 14)
dlg.SaveTwtSetting(csSettingFile);
else if(g_nProductId == 16)
{
//axc add 2015-04-22 增加电气导出设置
// struct resbuf rbUr;
// rbUr.restype = RTSTR;
// rbUr.resval.rstring = csSettingFile.GetBuffer();
// rbUr.rbnext = NULL;
// acedSetVar(_T("USERS3"), &rbUr);
// PostCommand(_T("TGSAVETELSET\n"));
dlg.SaveTelSetting(csSettingFile);
}
}
if(dlg.m_bPgp)
{
CString csNewFile;
csNewFile = csTempPath + _T("acad.pgp");
XString fullFile;
if(FindFile(_T("acad.pgp"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
}
if(dlg.m_bToolbar)
{
CString csNewFile;
csNewFile = csTempPath + _T("tchdata.dbf");
XString fullFile;
if(FindFile(_T("tchdata.dbf"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
}
if(dlg.m_bLayer)
{
CString csNewFile;
csNewFile = csTempPath + _T("LAYERDEF.DAT");
XString fullFile;
if(FindFile(_T("LAYERDEF.DAT"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
}
if(dlg.m_bLineTypeLib)
{
CString csNewFile;
csNewFile = csTempPath + _T("linetype.dbf");
XString fullFile;
if(FindFile(_T("linetype.dbf"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
}
if(dlg.m_bEqDefind && g_nProductId == 16)
{
CString csNewFile;
csNewFile = csTempPath + _T("equipdefine.dbf");
XString fullFile;
if(FindFile(_T("equipdefine.dbf"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
}
if(dlg.m_bUserEq && g_nProductId == 16)
{
CString csNewFile;
csNewFile = csTempPath + _T("customblklib.dbf");
XString fullFile;
if(FindFile(_T("customblklib.dbf"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
}
if(dlg.m_bPipeMat && (g_nProductId == 14 || g_nProductId == 15))
{
CString csNewFile;
csNewFile = csTempPath + _T("pipe.dbf");
XString fullFile;
if(FindFile(_T("pipe.dbf"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
}
if(dlg.m_bBlklib)
{
if(g_nProductId == 16)
{
CString csNewFile;
csNewFile = csTempPath + _T("Equip_U.TK");
XString fullFile;
if(FindFile(_T("Equip_U.TK"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
csNewFile = csTempPath + _T("Equip_U.SLB");
if(FindFile(_T("Equip_U.SLB"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
csNewFile = csTempPath + _T("Equip_U.DWB");
if(FindFile(_T("Equip_U.DWB"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
}
if(g_nProductId == 14)
{
CString csNewFile;
csNewFile = csTempPath + _T("VALVE_U.TK");
XString fullFile;
if(FindFile(_T("VALVE_U.TK"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
csNewFile = csTempPath + _T("VALVE_U.SLB");
if(FindFile(_T("VALVE_U.SLB"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
csNewFile = csTempPath + _T("VALVE_U.DWB");
if(FindFile(_T("VALVE_U.DWB"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
}
if(g_nProductId == 15)
{
CString csNewFile;
csNewFile = csTempPath + _T("VALVE_U.TK");
XString fullFile;
if(FindFile(_T("VALVE_U.TK"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
csNewFile = csTempPath + _T("VALVE_U.SLB");
if(FindFile(_T("VALVE_U.SLB"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
csNewFile = csTempPath + _T("VALVE_U.DWB");
if(FindFile(_T("VALVE_U.DWB"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
csNewFile = csTempPath + _T("自定义设备.TK");
if(FindFile(_T("自定义设备.TK"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
csNewFile = csTempPath + _T("自定义设备.SLB");
if(FindFile(_T("自定义设备.SLB"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
csNewFile = csTempPath + _T("自定义设备.DWB");
if(FindFile(_T("自定义设备.DWB"), fullFile))
CopyFile( (const TCHAR*)fullFile, (const TCHAR*)csNewFile, FALSE );
}
}
adsout << _T("已经完成导出设置!安装新版后可以运行【导入设置】\n");
return;
}
/////////////////////////////////////////////////////////////////////////////
// CSaveSettingDlg dialog
CSaveSettingDlg::CSaveSettingDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSaveSettingDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSaveSettingDlg)
m_bEqDefind = FALSE;
m_bUserEq = FALSE;
m_bLineTypeLib = FALSE;
m_bPgp = FALSE;
m_bSetting = TRUE;
m_bToolbar = FALSE;
m_bLayer = FALSE;
m_bFolder = FALSE;
m_bPipeMat = FALSE;
m_bBlklib = FALSE;
//}}AFX_DATA_INIT
}
void CSaveSettingDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSaveSettingDlg)
DDX_Check(pDX, IDC_CHECK_EQ_DEFINE, m_bEqDefind);
DDX_Check(pDX, IDC_CHECK_EQ_USER, m_bUserEq);
DDX_Check(pDX, IDC_CHECK_LINETYPE, m_bLineTypeLib);
DDX_Check(pDX, IDC_CHECK_PGP, m_bPgp);
DDX_Check(pDX, IDC_CHECK_SETTING, m_bSetting);
DDX_Check(pDX, IDC_CHECK_TOOLBAR, m_bToolbar);
DDX_Check(pDX, IDC_CHECK_LAYER, m_bLayer);
DDX_Check(pDX, IDC_CHECK_FOLDER, m_bFolder);
DDX_Check(pDX, IDC_CHECK_PIPE_MAT, m_bPipeMat);
DDX_Check(pDX, IDC_CHECK_BLKLIB, m_bBlklib);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSaveSettingDlg, CDialog)
//{{AFX_MSG_MAP(CSaveSettingDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSaveSettingDlg message handlers
BOOL CSaveSettingDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CWnd *pWnd1 = GetDlgItem(IDC_CHECK_EQ_DEFINE);
CWnd *pWnd2 = GetDlgItem(IDC_CHECK_EQ_USER);
CWnd *pWnd3 = GetDlgItem(IDC_CHECK_PIPE_MAT);
CWnd *pWnd4 = GetDlgItem(IDC_CHECK_SETTING);
if(g_nProductId == 14)
{
pWnd1->EnableWindow(FALSE);
pWnd2->EnableWindow(FALSE);
}
else if(g_nProductId ==16)
pWnd3->EnableWindow(FALSE);
else if(g_nProductId ==15)
{
pWnd1->EnableWindow(FALSE);
pWnd2->EnableWindow(FALSE);
pWnd4->EnableWindow(FALSE);
}
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
BOOL CSaveSettingDlg::IsDirExist(const CString& sDir)
{
LPTSTR sCurrentPath = _T("");
DWORD dSize = 0;
::GetCurrentDirectory(dSize,sCurrentPath);
if (!::SetCurrentDirectory(sDir))
return FALSE;
SetCurrentDirectory(sCurrentPath);
return TRUE;
}
void CSaveSettingDlg::ReadTwtSetting(CString csFileIni)
{
WDict dict;
if(!dict.ReadFile(csFileIni))
return;
OPEN_DICT(dict);
OPEN_SUB_DICT(_T("管线设置"));
// GET_VALUE(_T("立管离墙距离"), g_nStandPipe2Wall);
GET_VALUE(_T("管线默认管径"), g_iDefaultPipeDn);
GET_VALUE(_T("标注离管距离"), g_nDnDimDist2Pipe);
GET_VALUE(_T("管线打断间距"), g_nBreakPipeWidth);
GET_VALUE(_T("管线文字断距"), g_nPipeTextBreak);
GET_VALUE(_T("扣弯样式"), g_bStandPipeArc);
GET_VALUE(_T("弯头曲率"), g_nElbowRate);
// GET_VALUE(_T("立管标注设置"), g_bIsPipeDimCir);
SET_VALUE(_T("立管楼号标注设置"), g_iVPipeDimStyle);
GET_VALUE(_T("管线线型随层"), g_bLineTypeByLayer);
GET_VALUE(_T("立管标注样式"), g_bIsPipeDimCir);
GET_VALUE(_T("立管标注圆半径"), g_nDimCirDiam);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("设备设置"));
GET_VALUE(_T("喷头半径"), g_nSprinklerRadius);
GET_VALUE(_T("阀门比例"), g_nValveScale);
GET_VALUE(_T("排水圆半径"), g_nDrainPtRadius);
GET_VALUE(_T("设备支持3D"), g_bBlk3D);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("室外设置"));
GET_VALUE(_T("检查井直径"), g_nWellRadius);
GET_VALUE(_T("室外标注样式"), g_iDimPipeGradientType);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("其它设置"));
GET_VALUE(_T("工具条状态"), g_bToolbar);
GET_VALUE(_T("选择预览"), g_bEnableSelectPreview);
GET_VALUE(_T("自动线型比例"), g_bAutoLTScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("给水系统设置"));
GET_VALUE(_T("给水线宽"), g_nPipeWidth[0]);
GET_VALUE(_T("给水线形"), g_csTwtLineType[0]);
GET_VALUE(_T("给水标注"), g_csPipeDim[0]);
GET_VALUE(_T("给水管材"), g_iPipeMaterial[0]);
GET_VALUE(_T("给水立管半径"), g_nPipeRadius[0]);
GET_VALUE(_T("给水立管样式"), g_bPipeDouble[0]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("热给水系统设置"));
GET_VALUE(_T("热给水线宽"), g_nPipeWidth[1]);
GET_VALUE(_T("热给水线形"), g_csTwtLineType[1]);
GET_VALUE(_T("热给水标注"), g_csPipeDim[1]);
GET_VALUE(_T("热给水管材"), g_iPipeMaterial[1]);
GET_VALUE(_T("热给水立管半径"),g_nPipeRadius[1]);
GET_VALUE(_T("热给水立管样式"),g_bPipeDouble[1]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("热回水系统设置"));
GET_VALUE(_T("热回水线宽"), g_nPipeWidth[2]);
GET_VALUE(_T("热回水线形"), g_csTwtLineType[2]);
GET_VALUE(_T("热回水标注"), g_csPipeDim[2]);
GET_VALUE(_T("热回水管材"), g_iPipeMaterial[2]);
GET_VALUE(_T("热回水立管半径"),g_nPipeRadius[2]);
GET_VALUE(_T("热回水立管样式"),g_bPipeDouble[2]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("污水系统设置"));
GET_VALUE(_T("污水线宽"), g_nPipeWidth[3]);
GET_VALUE(_T("污水线形"), g_csTwtLineType[3]);
GET_VALUE(_T("污水标注"), g_csPipeDim[3]);
GET_VALUE(_T("污水管材"), g_iPipeMaterial[3]);
GET_VALUE(_T("污水立管半径"), g_nPipeRadius[3]);
GET_VALUE(_T("污水立管样式"), g_bPipeDouble[3]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("废水系统设置"));
GET_VALUE(_T("废水线宽"), g_nPipeWidth[4]);
GET_VALUE(_T("废水线形"), g_csTwtLineType[4]);
GET_VALUE(_T("废水标注"), g_csPipeDim[4]);
GET_VALUE(_T("废水管材"), g_iPipeMaterial[4]);
GET_VALUE(_T("废水立管半径"), g_nPipeRadius[4]);
GET_VALUE(_T("废水立管样式"), g_bPipeDouble[4]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("雨水系统设置"));
GET_VALUE(_T("雨水线宽"), g_nPipeWidth[5]);
GET_VALUE(_T("雨水线形"), g_csTwtLineType[5]);
GET_VALUE(_T("雨水标注"), g_csPipeDim[5]);
GET_VALUE(_T("雨水管材"), g_iPipeMaterial[5]);
GET_VALUE(_T("雨水立管半径"), g_nPipeRadius[5]);
GET_VALUE(_T("雨水立管样式"), g_bPipeDouble[5]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("中水系统设置"));
GET_VALUE(_T("中水线宽"), g_nPipeWidth[6]);
GET_VALUE(_T("中水线形"), g_csTwtLineType[6]);
GET_VALUE(_T("中水标注"), g_csPipeDim[6]);
GET_VALUE(_T("中水管材"), g_iPipeMaterial[6]);
GET_VALUE(_T("中水立管半径"), g_nPipeRadius[6]);
GET_VALUE(_T("中水立管样式"), g_bPipeDouble[6]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防系统设置"));
GET_VALUE(_T("消防线宽"), g_nPipeWidth[7]);
GET_VALUE(_T("消防线形"), g_csTwtLineType[7]);
GET_VALUE(_T("消防标注"), g_csPipeDim[7]);
GET_VALUE(_T("消防管材"), g_iPipeMaterial[7]);
GET_VALUE(_T("消防立管半径"), g_nPipeRadius[7]);
GET_VALUE(_T("消防立管样式"), g_bPipeDouble[7]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("喷淋系统设置"));
GET_VALUE(_T("喷淋线宽"), g_nPipeWidth[8]);
GET_VALUE(_T("喷淋线形"), g_csTwtLineType[8]);
GET_VALUE(_T("喷淋标注"), g_csPipeDim[8]);
GET_VALUE(_T("喷淋管材"), g_iPipeMaterial[8]);
GET_VALUE(_T("喷淋立管半径"), g_nPipeRadius[8]);
GET_VALUE(_T("喷淋立管样式"), g_bPipeDouble[8]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("凝结系统设置"));
GET_VALUE(_T("凝结线宽"), g_nPipeWidth[9]);
GET_VALUE(_T("凝结线形"), g_csTwtLineType[9]);
GET_VALUE(_T("凝结标注"), g_csPipeDim[9]);
GET_VALUE(_T("凝结管材"), g_iPipeMaterial[9]);
GET_VALUE(_T("凝结立管半径"), g_nPipeRadius[9]);
GET_VALUE(_T("凝结立管样式"), g_bPipeDouble[9]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("直饮系统设置"));
GET_VALUE(_T("直饮线宽"), g_nPipeWidth[10]);
GET_VALUE(_T("直饮线形"), g_csTwtLineType[10]);
GET_VALUE(_T("直饮标注"), g_csPipeDim[10]);
GET_VALUE(_T("直饮管材"), g_iPipeMaterial[10]);
GET_VALUE(_T("直饮立管半径"), g_nPipeRadius[10]);
GET_VALUE(_T("直饮立管样式"), g_bPipeDouble[10]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("压力污水系统设置"));
GET_VALUE(_T("压力污水线宽"), g_nPipeWidth[11]);
GET_VALUE(_T("压力污水线形"), g_csTwtLineType[11]);
GET_VALUE(_T("压力污水标注"), g_csPipeDim[11]);
GET_VALUE(_T("压力污水管材"), g_iPipeMaterial[11]);
GET_VALUE(_T("压力污水立管半径"), g_nPipeRadius[11]);
GET_VALUE(_T("压力污水立管样式"), g_bPipeDouble[11]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("压力废水系统设置"));
GET_VALUE(_T("压力废水线宽"), g_nPipeWidth[12]);
GET_VALUE(_T("压力废水线形"), g_csTwtLineType[12]);
GET_VALUE(_T("压力废水标注"), g_csPipeDim[12]);
GET_VALUE(_T("压力废水管材"), g_iPipeMaterial[12]);
GET_VALUE(_T("压力废水立管半径"), g_nPipeRadius[12]);
GET_VALUE(_T("压力废水立管样式"), g_bPipeDouble[12]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("压力雨水系统设置"));
GET_VALUE(_T("压力雨水线宽"), g_nPipeWidth[13]);
GET_VALUE(_T("压力雨水线形"), g_csTwtLineType[13]);
GET_VALUE(_T("压力雨水标注"), g_csPipeDim[13]);
GET_VALUE(_T("压力雨水管材"), g_iPipeMaterial[13]);
GET_VALUE(_T("压力雨水立管半径"), g_nPipeRadius[13]);
GET_VALUE(_T("压力雨水立管样式"), g_bPipeDouble[13]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("其它系统设置"));
GET_VALUE(_T("其它线宽"), g_nPipeWidth[14]);
GET_VALUE(_T("其它线形"), g_csTwtLineType[14]);
GET_VALUE(_T("其它标注"), g_csPipeDim[14]);
GET_VALUE(_T("其它管材"), g_iPipeMaterial[14]);
GET_VALUE(_T("其它立管半径"), g_nPipeRadius[14]);
GET_VALUE(_T("其它立管样式"), g_bPipeDouble[14]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("市政给水系统设置"));
GET_VALUE(_T("市政给水线宽"), g_nPipeWidth[15]);
GET_VALUE(_T("市政给水线形"), g_csTwtLineType[15]);
GET_VALUE(_T("市政给水标注"), g_csPipeDim[15]);
GET_VALUE(_T("市政给水管材"), g_iPipeMaterial[15]);
GET_VALUE(_T("市政给水立管半径"), g_nPipeRadius[15]);
GET_VALUE(_T("市政给水立管样式"), g_bPipeDouble[15]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("循环给水系统设置"));
GET_VALUE(_T("循环给水线宽"), g_nPipeWidth[16]);
GET_VALUE(_T("循环给水线形"), g_csTwtLineType[16]);
GET_VALUE(_T("循环给水标注"), g_csPipeDim[16]);
GET_VALUE(_T("循环给水管材"), g_iPipeMaterial[16]);
GET_VALUE(_T("循环给水立管半径"), g_nPipeRadius[16]);
GET_VALUE(_T("循环给水立管样式"), g_bPipeDouble[16]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("给水中区系统设置"));
GET_VALUE(_T("给水中区线宽"), g_nPipeWidth[17]);
GET_VALUE(_T("给水中区线形"), g_csTwtLineType[17]);
GET_VALUE(_T("给水中区标注"), g_csPipeDim[17]);
GET_VALUE(_T("给水中区管材"), g_iPipeMaterial[17]);
GET_VALUE(_T("给水中区立管半径"), g_nPipeRadius[17]);
GET_VALUE(_T("给水中区立管样式"), g_bPipeDouble[17]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("给水高区系统设置"));
GET_VALUE(_T("给水高区线宽"), g_nPipeWidth[18]);
GET_VALUE(_T("给水高区线形"), g_csTwtLineType[18]);
GET_VALUE(_T("给水高区标注"), g_csPipeDim[18]);
GET_VALUE(_T("给水高区管材"), g_iPipeMaterial[18]);
GET_VALUE(_T("给水高区立管半径"), g_nPipeRadius[18]);
GET_VALUE(_T("给水高区立管样式"), g_bPipeDouble[18]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("热给水中区系统设置"));
GET_VALUE(_T("热给水中区线宽"), g_nPipeWidth[19]);
GET_VALUE(_T("热给水中区线形"), g_csTwtLineType[19]);
GET_VALUE(_T("热给水中区标注"), g_csPipeDim[19]);
GET_VALUE(_T("热给水中区管材"), g_iPipeMaterial[19]);
GET_VALUE(_T("热给水中区立管半径"), g_nPipeRadius[19]);
GET_VALUE(_T("热给水中区立管样式"), g_bPipeDouble[19]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("热给水高区系统设置"));
GET_VALUE(_T("热给水高区线宽"), g_nPipeWidth[20]);
GET_VALUE(_T("热给水高区线形"), g_csTwtLineType[20]);
GET_VALUE(_T("热给水高区标注"), g_csPipeDim[20]);
GET_VALUE(_T("热给水高区管材"), g_iPipeMaterial[20]);
GET_VALUE(_T("热给水高区立管半径"), g_nPipeRadius[20]);
GET_VALUE(_T("热给水高区立管样式"), g_bPipeDouble[20]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("热回水中区系统设置"));
GET_VALUE(_T("热回水中区线宽"), g_nPipeWidth[21]);
GET_VALUE(_T("热回水中区线形"), g_csTwtLineType[21]);
GET_VALUE(_T("热回水中区标注"), g_csPipeDim[21]);
GET_VALUE(_T("热回水中区管材"), g_iPipeMaterial[21]);
GET_VALUE(_T("热回水中区立管半径"), g_nPipeRadius[21]);
GET_VALUE(_T("热回水中区立管样式"), g_bPipeDouble[21]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("热回水高区系统设置"));
GET_VALUE(_T("热回水高区线宽"), g_nPipeWidth[22]);
GET_VALUE(_T("热回水高区线形"), g_csTwtLineType[22]);
GET_VALUE(_T("热回水高区标注"), g_csPipeDim[22]);
GET_VALUE(_T("热回水高区管材"), g_iPipeMaterial[22]);
GET_VALUE(_T("热回水高区立管半径"), g_nPipeRadius[22]);
GET_VALUE(_T("热回水高区立管样式"), g_bPipeDouble[22]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防中区系统设置"));
GET_VALUE(_T("消防中区线宽"), g_nPipeWidth[23]);
GET_VALUE(_T("消防中区线形"), g_csTwtLineType[23]);
GET_VALUE(_T("消防中区标注"), g_csPipeDim[23]);
GET_VALUE(_T("消防中区管材"), g_iPipeMaterial[23]);
GET_VALUE(_T("消防中区立管半径"), g_nPipeRadius[23]);
GET_VALUE(_T("消防中区立管样式"), g_bPipeDouble[23]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防高区系统设置"));
GET_VALUE(_T("消防高区线宽"), g_nPipeWidth[24]);
GET_VALUE(_T("消防高区线形"), g_csTwtLineType[24]);
GET_VALUE(_T("消防高区标注"), g_csPipeDim[24]);
GET_VALUE(_T("消防高区管材"), g_iPipeMaterial[24]);
GET_VALUE(_T("消防高区立管半径"), g_nPipeRadius[24]);
GET_VALUE(_T("消防高区立管样式"), g_bPipeDouble[24]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("喷淋中区系统设置"));
GET_VALUE(_T("喷淋中区线宽"), g_nPipeWidth[25]);
GET_VALUE(_T("喷淋中区线形"), g_csTwtLineType[25]);
GET_VALUE(_T("喷淋中区标注"), g_csPipeDim[25]);
GET_VALUE(_T("喷淋中区管材"), g_iPipeMaterial[25]);
GET_VALUE(_T("喷淋中区立管半径"), g_nPipeRadius[25]);
GET_VALUE(_T("喷淋中区立管样式"), g_bPipeDouble[25]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("喷淋高区系统设置"));
GET_VALUE(_T("喷淋高区线宽"), g_nPipeWidth[26]);
GET_VALUE(_T("喷淋高区线形"), g_csTwtLineType[26]);
GET_VALUE(_T("喷淋高区标注"), g_csPipeDim[26]);
GET_VALUE(_T("喷淋高区管材"), g_iPipeMaterial[26]);
GET_VALUE(_T("喷淋高区立管半径"), g_nPipeRadius[26]);
GET_VALUE(_T("喷淋高区立管样式"), g_bPipeDouble[26]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("中水中区系统设置"));
GET_VALUE(_T("中水中区线宽"), g_nPipeWidth[27]);
GET_VALUE(_T("中水中区线形"), g_csTwtLineType[27]);
GET_VALUE(_T("中水中区标注"), g_csPipeDim[27]);
GET_VALUE(_T("中水中区管材"), g_iPipeMaterial[27]);
GET_VALUE(_T("中水中区立管半径"), g_nPipeRadius[27]);
GET_VALUE(_T("中水中区立管样式"), g_bPipeDouble[27]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("中水高区系统设置"));
GET_VALUE(_T("中水高区线宽"), g_nPipeWidth[28]);
GET_VALUE(_T("中水高区线形"), g_csTwtLineType[28]);
GET_VALUE(_T("中水高区标注"), g_csPipeDim[28]);
GET_VALUE(_T("中水高区管材"), g_iPipeMaterial[28]);
GET_VALUE(_T("中水高区立管半径"), g_nPipeRadius[28]);
GET_VALUE(_T("中水高区立管样式"), g_bPipeDouble[28]);
CLOSE_SUB_DICT();
// cet 2011.12.7 add
OPEN_SUB_DICT(_T("用户3设置"));
GET_VALUE(_T("用户3线宽"), g_nPipeWidth[29]);
GET_VALUE(_T("用户3线形"), g_csTwtLineType[29]);
GET_VALUE(_T("用户3标注"), g_csPipeDim[29]);
GET_VALUE(_T("用户3管材"), g_iPipeMaterial[29]);
GET_VALUE(_T("用户3立管半径"), g_nPipeRadius[29]);
GET_VALUE(_T("用户3立管样式"), g_bPipeDouble[29]);
CLOSE_SUB_DICT();
// cet 2011.12.7 add
OPEN_SUB_DICT(_T("用户4设置"));
GET_VALUE(_T("用户4线宽"), g_nPipeWidth[30]);
GET_VALUE(_T("用户4线形"), g_csTwtLineType[30]);
GET_VALUE(_T("用户4标注"), g_csPipeDim[30]);
GET_VALUE(_T("用户4管材"), g_iPipeMaterial[30]);
GET_VALUE(_T("用户4立管半径"), g_nPipeRadius[30]);
GET_VALUE(_T("用户4立管样式"), g_bPipeDouble[30]);
CLOSE_SUB_DICT();
// cet 2011.12.7 add
OPEN_SUB_DICT(_T("用户5设置"));
GET_VALUE(_T("用户5线宽"), g_nPipeWidth[31]);
GET_VALUE(_T("用户5线形"), g_csTwtLineType[31]);
GET_VALUE(_T("用户5标注"), g_csPipeDim[31]);
GET_VALUE(_T("用户5管材"), g_iPipeMaterial[31]);
GET_VALUE(_T("用户5立管半径"), g_nPipeRadius[31]);
GET_VALUE(_T("用户5立管样式"), g_bPipeDouble[31]);
CLOSE_SUB_DICT();
// cet 2011.12.7 add
OPEN_SUB_DICT(_T("用户6设置"));
GET_VALUE(_T("用户6线宽"), g_nPipeWidth[32]);
GET_VALUE(_T("用户6线形"), g_csTwtLineType[32]);
GET_VALUE(_T("用户6标注"), g_csPipeDim[32]);
GET_VALUE(_T("用户6管材"), g_iPipeMaterial[32]);
GET_VALUE(_T("用户6立管半径"), g_nPipeRadius[32]);
GET_VALUE(_T("用户6立管样式"), g_bPipeDouble[32]);
CLOSE_SUB_DICT();
// cet 2011.12.7 add
OPEN_SUB_DICT(_T("用户7设置"));
GET_VALUE(_T("用户7线宽"), g_nPipeWidth[33]);
GET_VALUE(_T("用户7线形"), g_csTwtLineType[33]);
GET_VALUE(_T("用户7标注"), g_csPipeDim[33]);
GET_VALUE(_T("用户7管材"), g_iPipeMaterial[33]);
GET_VALUE(_T("用户7立管半径"), g_nPipeRadius[33]);
GET_VALUE(_T("用户7立管样式"), g_bPipeDouble[33]);
CLOSE_SUB_DICT();
// cet 2011.12.7 add
OPEN_SUB_DICT(_T("用户8设置"));
GET_VALUE(_T("用户8线宽"), g_nPipeWidth[34]);
GET_VALUE(_T("用户8线形"), g_csTwtLineType[34]);
GET_VALUE(_T("用户8标注"), g_csPipeDim[34]);
GET_VALUE(_T("用户8管材"), g_iPipeMaterial[34]);
GET_VALUE(_T("用户8立管半径"), g_nPipeRadius[34]);
GET_VALUE(_T("用户8立管样式"), g_bPipeDouble[34]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("用户管线类型设置"));
GET_VALUE(_T("自定义管线1"), g_csPipeName[0]);
GET_VALUE(_T("自定义管线2"), g_csPipeName[1]);
GET_VALUE(_T("自定义管线3"), g_csPipeName[2]);
GET_VALUE(_T("自定义管线4"), g_csPipeName[3]);
GET_VALUE(_T("自定义管线5"), g_csPipeName[4]);
GET_VALUE(_T("自定义管线6"), g_csPipeName[5]);
GET_VALUE(_T("自定义管线7"), g_csPipeName[6]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("管径标注文字设置"));
GET_VALUE(_T("管径标注中文字体"), g_csPipeDnChn);
GET_VALUE(_T("管径标注西文字体"), g_csPipeDnEng);
GET_VALUE(_T("管径标注字高"), g_nPipeDnHeight);
GET_VALUE(_T("管径标注宽高比"), g_nPipeDnScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("立管标注文字设置"));
GET_VALUE(_T("立管标注中文字体"), g_csVPipeChn);
GET_VALUE(_T("立管标注西文字体"), g_csVPipeEng);
GET_VALUE(_T("立管标注字高"), g_nVPipeHeight);
GET_VALUE(_T("立管标注宽高比"), g_nVPipeScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("管线文字设置"));
GET_VALUE(_T("管线文字中文字体"), g_csPipeTextChn);
GET_VALUE(_T("管线文字西文字体"), g_csPipeTextEng);
GET_VALUE(_T("管线文字字高"), g_nPipeTextHeight);
GET_VALUE(_T("管线文字宽高比"), g_nPipeTextScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("圆中文字设置"));
GET_VALUE(_T("圆中文字中文字体"), g_csCircleTextChn);
GET_VALUE(_T("圆中文字西文字体"), g_csCircleTextEng);
GET_VALUE(_T("圆中文字字高"), g_nCircleTextHeight);
GET_VALUE(_T("圆中文字宽高比"), g_nCircleTextScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("井标注设置"));
GET_VALUE(_T("井标注中文字体"), g_csDimWellChn);
GET_VALUE(_T("井标注西文字体"), g_csDimWellEng);
GET_VALUE(_T("井标注字高"), g_nDimWellHeight);
GET_VALUE(_T("井标注宽高比"), g_nDimWellScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("表格文字设置"));
GET_VALUE(_T("表格中文字体"), g_csSheetChn);
GET_VALUE(_T("表格西文字体"), g_csSheetEng);
GET_VALUE(_T("表格字高"), g_nSheetHeight);
GET_VALUE(_T("表格宽高比"), g_nSheetScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("标注文字设置"));
GET_VALUE(_T("标注中文字体"), g_csDimChn);
GET_VALUE(_T("标注西文字体"), g_csDimEng);
GET_VALUE(_T("标注字高"), g_nTwtDimHeight);
GET_VALUE(_T("标注宽高比"), g_nDimScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("文字线性设置"));
GET_VALUE(_T("标注中文字体"), g_csLineTypeChnShx);
GET_VALUE(_T("标注西文字体"), g_csLineTypeEngShx);
GET_VALUE(_T("标注字高"), g_dLineTypeHeight);
GET_VALUE(_T("标注宽高比"), g_dLineTypeScale);
CLOSE_SUB_DICT();
CLOSE_DICT();
CRegProperty regProp(GetRegLocation(), _T("TWTConfig"));
regProp.SetTopRootKey(HKEY_CURRENT_USER);
// regProp.SetValue(_T("Dist2Wall"), g_nStandPipe2Wall);
regProp.SetValue(_T("ElbowRate"), g_nElbowRate);
regProp.SetValue(_T("DnDimDist2Pipe"), g_nDnDimDist2Pipe);
regProp.SetValue(_T("IsStandPipeArc"), g_bStandPipeArc);
regProp.SetValue(_T("WellRadius"), g_nWellRadius);
regProp.SetValue(_T("DimPipeGradientType"), g_iDimPipeGradientType);
regProp.SetValue(_T("SprinklerRadius"), g_nSprinklerRadius);
regProp.SetValue(_T("ValveScale"), g_nValveScale);
regProp.SetValue(_T("DrainPtRadius"), g_nDrainPtRadius);
regProp.SetValue(_T("Toolbar"), g_bToolbar);
regProp.SetValue(_T("IsLineTypeByLayer"), g_bLineTypeByLayer);
regProp.SetValue(_T("Blk3D"), g_bBlk3D);
regProp.SetValue(_T("IsPipeDimCir"), g_bIsPipeDimCir);
regProp.SetValue(_T("VPipeDimStyle"), g_iVPipeDimStyle);
regProp.SetValue(_T("DimCirDiam"), g_nDimCirDiam);
regProp.SetValue(_T("DefaultPipeDn"), g_iDefaultPipeDn);
regProp.SetValue(_T("PipeDnChn"), g_csPipeDnChn);
regProp.SetValue(_T("VPipeChn"), g_csVPipeChn);
regProp.SetValue(_T("PipeTextChn"), g_csPipeTextChn);
regProp.SetValue(_T("CircleTextChn"), g_csCircleTextChn);
regProp.SetValue(_T("DimWellChn"), g_csDimWellChn);
regProp.SetValue(_T("SheetChn"), g_csSheetChn);
regProp.SetValue(_T("DimChn"), g_csDimChn);
regProp.SetValue(_T("PipeTextEng"), g_csPipeTextEng);
regProp.SetValue(_T("CircleTextEng"), g_csCircleTextEng);
regProp.SetValue(_T("DimWellEng"), g_csDimWellEng);
regProp.SetValue(_T("SheetEng"), g_csSheetEng);
regProp.SetValue(_T("DimEng"), g_csDimEng);
regProp.SetValue(_T("PipeDnHeight"), g_nPipeDnHeight);
regProp.SetValue(_T("VPipeHeight"), g_nVPipeHeight);
regProp.SetValue(_T("PipeTextHeight"), g_nPipeTextHeight);
regProp.SetValue(_T("CircleTextHeight"), g_nCircleTextHeight);
regProp.SetValue(_T("DimWellHeight"), g_nDimWellHeight);
regProp.SetValue(_T("SheetHeight"), g_nSheetHeight);
regProp.SetValue(_T("DimHeight"), g_nTwtDimHeight);
regProp.SetValue(_T("PipeDnScale"), g_nPipeDnScale);
regProp.SetValue(_T("VPipeScale"), g_nVPipeScale);
regProp.SetValue(_T("PipeTextScale"), g_nPipeTextScale);
regProp.SetValue(_T("CircleTextScale"), g_nCircleTextScale);
regProp.SetValue(_T("DimWellScale"), g_nDimWellScale);
regProp.SetValue(_T("SheetScale"), g_nSheetScale);
regProp.SetValue(_T("DimScale"), g_nDimScale);
regProp.SetValue(_T("Pipe1Name"), g_csPipeName[0]);
regProp.SetValue(_T("Pipe2Name"), g_csPipeName[1]);
regProp.SetValue(_T("Pipe3Name"), g_csPipeName[2]);
regProp.SetValue(_T("Pipe4Name"), g_csPipeName[3]);
regProp.SetValue(_T("Pipe5Name"), g_csPipeName[4]);
regProp.SetValue(_T("Pipe6Name"), g_csPipeName[5]);
regProp.SetValue(_T("Pipe7Name"), g_csPipeName[6]);
regProp.SetValue(_T("PipeLineType1"), g_csTwtLineType[0]);
regProp.SetValue(_T("PipeLineType2"), g_csTwtLineType[1]);
regProp.SetValue(_T("PipeLineType3"), g_csTwtLineType[2]);
regProp.SetValue(_T("PipeLineType4"), g_csTwtLineType[3]);
regProp.SetValue(_T("PipeLineType5"), g_csTwtLineType[4]);
regProp.SetValue(_T("PipeLineType6"), g_csTwtLineType[5]);
regProp.SetValue(_T("PipeLineType7"), g_csTwtLineType[6]);
regProp.SetValue(_T("PipeLineType8"), g_csTwtLineType[7]);
regProp.SetValue(_T("PipeLineType9"), g_csTwtLineType[8]);
regProp.SetValue(_T("PipeLineType10"), g_csTwtLineType[9]);
regProp.SetValue(_T("PipeLineType11"), g_csTwtLineType[10]);
regProp.SetValue(_T("PipeLineType12"), g_csTwtLineType[11]);
regProp.SetValue(_T("PipeLineType13"), g_csTwtLineType[12]);
regProp.SetValue(_T("PipeLineType14"), g_csTwtLineType[13]);
regProp.SetValue(_T("PipeLineType15"), g_csTwtLineType[14]);
regProp.SetValue(_T("PipeLineType16"), g_csTwtLineType[15]);
regProp.SetValue(_T("PipeLineType17"), g_csTwtLineType[16]);
regProp.SetValue(_T("PipeLineType18"), g_csTwtLineType[17]);
regProp.SetValue(_T("PipeLineType19"), g_csTwtLineType[18]);
regProp.SetValue(_T("PipeLineType20"), g_csTwtLineType[19]);
regProp.SetValue(_T("PipeLineType21"), g_csTwtLineType[20]);
regProp.SetValue(_T("PipeLineType22"), g_csTwtLineType[21]);
regProp.SetValue(_T("PipeLineType23"), g_csTwtLineType[22]);
regProp.SetValue(_T("PipeLineType24"), g_csTwtLineType[23]);
regProp.SetValue(_T("PipeLineType25"), g_csTwtLineType[24]);
regProp.SetValue(_T("PipeLineType26"), g_csTwtLineType[25]);
regProp.SetValue(_T("PipeLineType27"), g_csTwtLineType[26]);
regProp.SetValue(_T("PipeLineType28"), g_csTwtLineType[27]);
regProp.SetValue(_T("PipeLineType29"), g_csTwtLineType[28]);
// cet 2011.12.7 add
regProp.SetValue(_T("PipeLineType30"), g_csTwtLineType[29]);
regProp.SetValue(_T("PipeLineType31"), g_csTwtLineType[30]);
regProp.SetValue(_T("PipeLineType32"), g_csTwtLineType[31]);
regProp.SetValue(_T("PipeLineType33"), g_csTwtLineType[32]);
regProp.SetValue(_T("PipeLineType34"), g_csTwtLineType[33]);
regProp.SetValue(_T("PipeLineType35"), g_csTwtLineType[34]);
regProp.SetValue(_T("Pipe1Material"), g_iPipeMaterial[0]);
regProp.SetValue(_T("Pipe2Material"), g_iPipeMaterial[1]);
regProp.SetValue(_T("Pipe3Material"), g_iPipeMaterial[2]);
regProp.SetValue(_T("Pipe4Material"), g_iPipeMaterial[3]);
regProp.SetValue(_T("Pipe5Material"), g_iPipeMaterial[4]);
regProp.SetValue(_T("Pipe6Material"), g_iPipeMaterial[5]);
regProp.SetValue(_T("Pipe7Material"), g_iPipeMaterial[6]);
regProp.SetValue(_T("Pipe8Material"), g_iPipeMaterial[7]);
regProp.SetValue(_T("Pipe9Material"), g_iPipeMaterial[8]);
regProp.SetValue(_T("Pipe10Material"), g_iPipeMaterial[9]);
regProp.SetValue(_T("Pipe11Material"), g_iPipeMaterial[10]);
regProp.SetValue(_T("Pipe12Material"), g_iPipeMaterial[11]);
regProp.SetValue(_T("Pipe13Material"), g_iPipeMaterial[12]);
regProp.SetValue(_T("Pipe14Material"), g_iPipeMaterial[13]);
regProp.SetValue(_T("Pipe15Material"), g_iPipeMaterial[14]);
regProp.SetValue(_T("Pipe16Material"), g_iPipeMaterial[15]);
regProp.SetValue(_T("Pipe17Material"), g_iPipeMaterial[16]);
regProp.SetValue(_T("Pipe18Material"), g_iPipeMaterial[17]);
regProp.SetValue(_T("Pipe19Material"), g_iPipeMaterial[18]);
regProp.SetValue(_T("Pipe20Material"), g_iPipeMaterial[19]);
regProp.SetValue(_T("Pipe21Material"), g_iPipeMaterial[20]);
regProp.SetValue(_T("Pipe22Material"), g_iPipeMaterial[21]);
regProp.SetValue(_T("Pipe23Material"), g_iPipeMaterial[22]);
regProp.SetValue(_T("Pipe24Material"), g_iPipeMaterial[23]);
regProp.SetValue(_T("Pipe25Material"), g_iPipeMaterial[24]);
regProp.SetValue(_T("Pipe26Material"), g_iPipeMaterial[25]);
regProp.SetValue(_T("Pipe27Material"), g_iPipeMaterial[26]);
regProp.SetValue(_T("Pipe28Material"), g_iPipeMaterial[27]);
regProp.SetValue(_T("Pipe29Material"), g_iPipeMaterial[28]);
// cet 2011.12.7 add
regProp.SetValue(_T("Pipe30Material"), g_iPipeMaterial[29]);
regProp.SetValue(_T("Pipe31Material"), g_iPipeMaterial[30]);
regProp.SetValue(_T("Pipe32Material"), g_iPipeMaterial[31]);
regProp.SetValue(_T("Pipe33Material"), g_iPipeMaterial[32]);
regProp.SetValue(_T("Pipe34Material"), g_iPipeMaterial[33]);
regProp.SetValue(_T("Pipe35Material"), g_iPipeMaterial[34]);
regProp.SetValue(_T("Pipe1Radius"), g_nPipeRadius[0]);
regProp.SetValue(_T("Pipe2Radius"), g_nPipeRadius[1]);
regProp.SetValue(_T("Pipe3Radius"), g_nPipeRadius[2]);
regProp.SetValue(_T("Pipe4Radius"), g_nPipeRadius[3]);
regProp.SetValue(_T("Pipe5Radius"), g_nPipeRadius[4]);
regProp.SetValue(_T("Pipe6Radius"), g_nPipeRadius[5]);
regProp.SetValue(_T("Pipe7Radius"), g_nPipeRadius[6]);
regProp.SetValue(_T("Pipe8Radius"), g_nPipeRadius[7]);
regProp.SetValue(_T("Pipe9Radius"), g_nPipeRadius[8]);
regProp.SetValue(_T("Pipe10Radius"), g_nPipeRadius[9]);
regProp.SetValue(_T("Pipe11Radius"), g_nPipeRadius[10]);
regProp.SetValue(_T("Pipe12Radius"), g_nPipeRadius[11]);
regProp.SetValue(_T("Pipe13Radius"), g_nPipeRadius[12]);
regProp.SetValue(_T("Pipe14Radius"), g_nPipeRadius[13]);
regProp.SetValue(_T("Pipe15Radius"), g_nPipeRadius[14]);
regProp.SetValue(_T("Pipe16Radius"), g_nPipeRadius[15]);
regProp.SetValue(_T("Pipe17Radius"), g_nPipeRadius[16]);
regProp.SetValue(_T("Pipe18Radius"), g_nPipeRadius[17]);
regProp.SetValue(_T("Pipe19Radius"), g_nPipeRadius[18]);
regProp.SetValue(_T("Pipe20Radius"), g_nPipeRadius[19]);
regProp.SetValue(_T("Pipe21Radius"), g_nPipeRadius[20]);
regProp.SetValue(_T("Pipe22Radius"), g_nPipeRadius[21]);
regProp.SetValue(_T("Pipe23Radius"), g_nPipeRadius[22]);
regProp.SetValue(_T("Pipe24Radius"), g_nPipeRadius[23]);
regProp.SetValue(_T("Pipe25Radius"), g_nPipeRadius[24]);
regProp.SetValue(_T("Pipe26Radius"), g_nPipeRadius[25]);
regProp.SetValue(_T("Pipe27Radius"), g_nPipeRadius[26]);
regProp.SetValue(_T("Pipe28Radius"), g_nPipeRadius[27]);
regProp.SetValue(_T("Pipe29Radius"), g_nPipeRadius[28]);
// cet 2011.12.7 add
regProp.SetValue(_T("Pipe30Radius"), g_nPipeRadius[29]);
regProp.SetValue(_T("Pipe31Radius"), g_nPipeRadius[30]);
regProp.SetValue(_T("Pipe32Radius"), g_nPipeRadius[31]);
regProp.SetValue(_T("Pipe33Radius"), g_nPipeRadius[32]);
regProp.SetValue(_T("Pipe34Radius"), g_nPipeRadius[33]);
regProp.SetValue(_T("Pipe35Radius"), g_nPipeRadius[34]);
regProp.SetValue(_T("Pipe1Width"), g_nPipeWidth[0]);
regProp.SetValue(_T("Pipe2Width"), g_nPipeWidth[1]);
regProp.SetValue(_T("Pipe3Width"), g_nPipeWidth[2]);
regProp.SetValue(_T("Pipe4Width"), g_nPipeWidth[3]);
regProp.SetValue(_T("Pipe5Width"), g_nPipeWidth[4]);
regProp.SetValue(_T("Pipe6Width"), g_nPipeWidth[5]);
regProp.SetValue(_T("Pipe7Width"), g_nPipeWidth[6]);
regProp.SetValue(_T("Pipe8Width"), g_nPipeWidth[7]);
regProp.SetValue(_T("Pipe9Width"), g_nPipeWidth[8]);
regProp.SetValue(_T("Pipe10Width"), g_nPipeWidth[9]);
regProp.SetValue(_T("Pipe11Width"), g_nPipeWidth[10]);
regProp.SetValue(_T("Pipe12Width"), g_nPipeWidth[11]);
regProp.SetValue(_T("Pipe13Width"), g_nPipeWidth[12]);
regProp.SetValue(_T("Pipe14Width"), g_nPipeWidth[13]);
regProp.SetValue(_T("Pipe15Width"), g_nPipeWidth[14]);
regProp.SetValue(_T("Pipe16Width"), g_nPipeWidth[15]);
regProp.SetValue(_T("Pipe17Width"), g_nPipeWidth[16]);
regProp.SetValue(_T("Pipe18Width"), g_nPipeWidth[17]);
regProp.SetValue(_T("Pipe19Width"), g_nPipeWidth[18]);
regProp.SetValue(_T("Pipe20Width"), g_nPipeWidth[19]);
regProp.SetValue(_T("Pipe21Width"), g_nPipeWidth[20]);
regProp.SetValue(_T("Pipe22Width"), g_nPipeWidth[21]);
regProp.SetValue(_T("Pipe23Width"), g_nPipeWidth[22]);
regProp.SetValue(_T("Pipe24Width"), g_nPipeWidth[23]);
regProp.SetValue(_T("Pipe25Width"), g_nPipeWidth[24]);
regProp.SetValue(_T("Pipe26Width"), g_nPipeWidth[25]);
regProp.SetValue(_T("Pipe27Width"), g_nPipeWidth[26]);
regProp.SetValue(_T("Pipe28Width"), g_nPipeWidth[27]);
regProp.SetValue(_T("Pipe29Width"), g_nPipeWidth[28]);
// cet 2011.12.7 add
regProp.SetValue(_T("Pipe30Width"), g_nPipeWidth[29]);
regProp.SetValue(_T("Pipe31Width"), g_nPipeWidth[30]);
regProp.SetValue(_T("Pipe32Width"), g_nPipeWidth[31]);
regProp.SetValue(_T("Pipe33Width"), g_nPipeWidth[32]);
regProp.SetValue(_T("Pipe34Width"), g_nPipeWidth[33]);
regProp.SetValue(_T("Pipe35Width"), g_nPipeWidth[34]);
regProp.SetValue(_T("Pipe1Dim"), g_csPipeDim[0]);
regProp.SetValue(_T("Pipe2Dim"), g_csPipeDim[1]);
regProp.SetValue(_T("Pipe3Dim"), g_csPipeDim[2]);
regProp.SetValue(_T("Pipe4Dim"), g_csPipeDim[3]);
regProp.SetValue(_T("Pipe5Dim"), g_csPipeDim[4]);
regProp.SetValue(_T("Pipe6Dim"), g_csPipeDim[5]);
regProp.SetValue(_T("Pipe7Dim"), g_csPipeDim[6]);
regProp.SetValue(_T("Pipe8Dim"), g_csPipeDim[7]);
regProp.SetValue(_T("Pipe9Dim"), g_csPipeDim[8]);
regProp.SetValue(_T("Pipe10Dim"), g_csPipeDim[9]);
regProp.SetValue(_T("Pipe11Dim"), g_csPipeDim[10]);
regProp.SetValue(_T("Pipe12Dim"), g_csPipeDim[11]);
regProp.SetValue(_T("Pipe13Dim"), g_csPipeDim[12]);
regProp.SetValue(_T("Pipe14Dim"), g_csPipeDim[13]);
regProp.SetValue(_T("Pipe15Dim"), g_csPipeDim[14]);
regProp.SetValue(_T("Pipe16Dim"), g_csPipeDim[15]);
regProp.SetValue(_T("Pipe17Dim"), g_csPipeDim[16]);
regProp.SetValue(_T("Pipe18Dim"), g_csPipeDim[17]);
regProp.SetValue(_T("Pipe19Dim"), g_csPipeDim[18]);
regProp.SetValue(_T("Pipe20Dim"), g_csPipeDim[19]);
regProp.SetValue(_T("Pipe21Dim"), g_csPipeDim[20]);
regProp.SetValue(_T("Pipe22Dim"), g_csPipeDim[21]);
regProp.SetValue(_T("Pipe23Dim"), g_csPipeDim[22]);
regProp.SetValue(_T("Pipe24Dim"), g_csPipeDim[23]);
regProp.SetValue(_T("Pipe25Dim"), g_csPipeDim[24]);
regProp.SetValue(_T("Pipe26Dim"), g_csPipeDim[25]);
regProp.SetValue(_T("Pipe27Dim"), g_csPipeDim[26]);
regProp.SetValue(_T("Pipe28Dim"), g_csPipeDim[27]);
regProp.SetValue(_T("Pipe29Dim"), g_csPipeDim[28]);
// cet 2011.12.7 add
regProp.SetValue(_T("Pipe30Dim"), g_csPipeDim[29]);
regProp.SetValue(_T("Pipe31Dim"), g_csPipeDim[30]);
regProp.SetValue(_T("Pipe32Dim"), g_csPipeDim[31]);
regProp.SetValue(_T("Pipe33Dim"), g_csPipeDim[32]);
regProp.SetValue(_T("Pipe34Dim"), g_csPipeDim[33]);
regProp.SetValue(_T("Pipe35Dim"), g_csPipeDim[34]);
regProp.SetValue(_T("IsDoublePipe1"), g_bPipeDouble[0]);
regProp.SetValue(_T("IsDoublePipe2"), g_bPipeDouble[1]);
regProp.SetValue(_T("IsDoublePipe3"), g_bPipeDouble[2]);
regProp.SetValue(_T("IsDoublePipe4"), g_bPipeDouble[3]);
regProp.SetValue(_T("IsDoublePipe5"), g_bPipeDouble[4]);
regProp.SetValue(_T("IsDoublePipe6"), g_bPipeDouble[5]);
regProp.SetValue(_T("IsDoublePipe7"), g_bPipeDouble[6]);
regProp.SetValue(_T("IsDoublePipe8"), g_bPipeDouble[7]);
// regProp.SetValue(_T("IsDoublePipe9"), g_bPipeDouble[8]);
// regProp.SetValue(_T("IsDoublePipe10"), g_bPipeDouble[9]);
// regProp.SetValue(_T("IsDoublePipe11"), g_bPipeDouble[10]);
// regProp.SetValue(_T("IsDoublePipe12"), g_bPipeDouble[11]);
// regProp.SetValue(_T("IsDoublePipe13"), g_bPipeDouble[12]);
// regProp.SetValue(_T("IsDoublePipe14"), g_bPipeDouble[13]);
// regProp.SetValue(_T("IsDoublePipe15"), g_bPipeDouble[14]);
// regProp.SetValue(_T("IsDoublePipe16"), g_bPipeDouble[15]);
// regProp.SetValue(_T("IsDoublePipe17"), g_bPipeDouble[16]);
}
void CSaveSettingDlg::SaveTwtSetting(CString csFileIni)
{
WDict dict;
dict.ReadFile(csFileIni);
OPEN_DICT(dict);
OPEN_SUB_DICT(_T("管线设置"));
// SET_VALUE(_T("立管离墙距离"), g_nStandPipe2Wall);
SET_VALUE(_T("管线默认管径"), g_iDefaultPipeDn);
SET_VALUE(_T("标注离管距离"), g_nDnDimDist2Pipe);
SET_VALUE(_T("管线打断间距"), g_nBreakPipeWidth);
SET_VALUE(_T("管线文字断距"), g_nPipeTextBreak);
SET_VALUE(_T("扣弯样式"), g_bStandPipeArc);
// SET_VALUE(_T("弯头样式"), g_iElbowType);
SET_VALUE(_T("弯头曲率"), g_nElbowRate);
// SET_VALUE(_T("立管标注设置"), g_bIsPipeDimCir);
SET_VALUE(_T("立管楼号标注设置"), g_iVPipeDimStyle);
SET_VALUE(_T("管线线型随层"), g_bLineTypeByLayer);
SET_VALUE(_T("立管标注样式"), g_bIsPipeDimCir);
SET_VALUE(_T("立管标注圆半径"), g_nDimCirDiam);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("设备设置"));
SET_VALUE(_T("喷头半径"), g_nSprinklerRadius);
SET_VALUE(_T("阀门比例"), g_nValveScale);
SET_VALUE(_T("排水圆半径"), g_nDrainPtRadius);
SET_VALUE(_T("设备支持3D"), g_bBlk3D);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("室外设置"));
SET_VALUE(_T("检查井直径"), g_nWellRadius);
SET_VALUE(_T("室外标注样式"), g_iDimPipeGradientType);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("其它设置"));
SET_VALUE(_T("工具条状态"), g_bToolbar);
SET_VALUE(_T("选择预览"), g_bEnableSelectPreview);
SET_VALUE(_T("自动线型比例"), g_bAutoLTScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("给水系统设置"));
SET_VALUE(_T("给水线宽"), g_nPipeWidth[0]);
SET_VALUE(_T("给水线形"), g_csTwtLineType[0]);
SET_VALUE(_T("给水标注"), g_csPipeDim[0]);
SET_VALUE(_T("给水管材"), g_iPipeMaterial[0]);
SET_VALUE(_T("给水立管半径"), g_nPipeRadius[0]);
SET_VALUE(_T("给水立管样式"), g_bPipeDouble[0]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("热给水系统设置"));
SET_VALUE(_T("热给水线宽"), g_nPipeWidth[1]);
SET_VALUE(_T("热给水线形"), g_csTwtLineType[1]);
SET_VALUE(_T("热给水标注"), g_csPipeDim[1]);
SET_VALUE(_T("热给水管材"), g_iPipeMaterial[1]);
SET_VALUE(_T("热给水立管半径"),g_nPipeRadius[1]);
SET_VALUE(_T("热给水立管样式"),g_bPipeDouble[1]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("热回水系统设置"));
SET_VALUE(_T("热回水线宽"), g_nPipeWidth[2]);
SET_VALUE(_T("热回水线形"), g_csTwtLineType[2]);
SET_VALUE(_T("热回水标注"), g_csPipeDim[2]);
SET_VALUE(_T("热回水管材"), g_iPipeMaterial[2]);
SET_VALUE(_T("热回水立管半径"),g_nPipeRadius[2]);
SET_VALUE(_T("热回水立管样式"),g_bPipeDouble[2]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("污水系统设置"));
SET_VALUE(_T("污水线宽"), g_nPipeWidth[3]);
SET_VALUE(_T("污水线形"), g_csTwtLineType[3]);
SET_VALUE(_T("污水标注"), g_csPipeDim[3]);
SET_VALUE(_T("污水管材"), g_iPipeMaterial[3]);
SET_VALUE(_T("污水立管半径"), g_nPipeRadius[3]);
SET_VALUE(_T("污水立管样式"), g_bPipeDouble[3]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("废水系统设置"));
SET_VALUE(_T("废水线宽"), g_nPipeWidth[4]);
SET_VALUE(_T("废水线形"), g_csTwtLineType[4]);
SET_VALUE(_T("废水标注"), g_csPipeDim[4]);
SET_VALUE(_T("废水管材"), g_iPipeMaterial[4]);
SET_VALUE(_T("废水立管半径"), g_nPipeRadius[4]);
SET_VALUE(_T("废水立管样式"), g_bPipeDouble[4]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("雨水系统设置"));
SET_VALUE(_T("雨水线宽"), g_nPipeWidth[5]);
SET_VALUE(_T("雨水线形"), g_csTwtLineType[5]);
SET_VALUE(_T("雨水标注"), g_csPipeDim[5]);
SET_VALUE(_T("雨水管材"), g_iPipeMaterial[5]);
SET_VALUE(_T("雨水立管半径"), g_nPipeRadius[5]);
SET_VALUE(_T("雨水立管样式"), g_bPipeDouble[5]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("中水系统设置"));
SET_VALUE(_T("中水线宽"), g_nPipeWidth[6]);
SET_VALUE(_T("中水线形"), g_csTwtLineType[6]);
SET_VALUE(_T("中水标注"), g_csPipeDim[6]);
SET_VALUE(_T("中水管材"), g_iPipeMaterial[6]);
SET_VALUE(_T("中水立管半径"), g_nPipeRadius[6]);
SET_VALUE(_T("中水立管样式"), g_bPipeDouble[6]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防系统设置"));
SET_VALUE(_T("消防线宽"), g_nPipeWidth[7]);
SET_VALUE(_T("消防线形"), g_csTwtLineType[7]);
SET_VALUE(_T("消防标注"), g_csPipeDim[7]);
SET_VALUE(_T("消防管材"), g_iPipeMaterial[7]);
SET_VALUE(_T("消防立管半径"), g_nPipeRadius[7]);
SET_VALUE(_T("消防立管样式"), g_bPipeDouble[7]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("喷淋系统设置"));
SET_VALUE(_T("喷淋线宽"), g_nPipeWidth[8]);
SET_VALUE(_T("喷淋线形"), g_csTwtLineType[8]);
SET_VALUE(_T("喷淋标注"), g_csPipeDim[8]);
SET_VALUE(_T("喷淋管材"), g_iPipeMaterial[8]);
SET_VALUE(_T("喷淋立管半径"), g_nPipeRadius[8]);
SET_VALUE(_T("喷淋立管样式"), g_bPipeDouble[8]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("凝结系统设置"));
SET_VALUE(_T("凝结线宽"), g_nPipeWidth[9]);
SET_VALUE(_T("凝结线形"), g_csTwtLineType[9]);
SET_VALUE(_T("凝结标注"), g_csPipeDim[9]);
SET_VALUE(_T("凝结管材"), g_iPipeMaterial[9]);
SET_VALUE(_T("凝结立管半径"), g_nPipeRadius[9]);
SET_VALUE(_T("凝结立管样式"), g_bPipeDouble[9]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("直饮系统设置"));
SET_VALUE(_T("直饮线宽"), g_nPipeWidth[10]);
SET_VALUE(_T("直饮线形"), g_csTwtLineType[10]);
SET_VALUE(_T("直饮标注"), g_csPipeDim[10]);
SET_VALUE(_T("直饮管材"), g_iPipeMaterial[10]);
SET_VALUE(_T("直饮立管半径"), g_nPipeRadius[10]);
SET_VALUE(_T("直饮立管样式"), g_bPipeDouble[10]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("压力污水系统设置"));
SET_VALUE(_T("压力污水线宽"), g_nPipeWidth[11]);
SET_VALUE(_T("压力污水线形"), g_csTwtLineType[11]);
SET_VALUE(_T("压力污水标注"), g_csPipeDim[11]);
SET_VALUE(_T("压力污水管材"), g_iPipeMaterial[11]);
SET_VALUE(_T("压力污水立管半径"), g_nPipeRadius[11]);
SET_VALUE(_T("压力污水立管样式"), g_bPipeDouble[11]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("压力废水系统设置"));
SET_VALUE(_T("压力废水线宽"), g_nPipeWidth[12]);
SET_VALUE(_T("压力废水线形"), g_csTwtLineType[12]);
SET_VALUE(_T("压力废水标注"), g_csPipeDim[12]);
SET_VALUE(_T("压力废水管材"), g_iPipeMaterial[12]);
SET_VALUE(_T("压力废水立管半径"), g_nPipeRadius[12]);
SET_VALUE(_T("压力废水立管样式"), g_bPipeDouble[12]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("压力雨水系统设置"));
SET_VALUE(_T("压力雨水线宽"), g_nPipeWidth[13]);
SET_VALUE(_T("压力雨水线形"), g_csTwtLineType[13]);
SET_VALUE(_T("压力雨水标注"), g_csPipeDim[13]);
SET_VALUE(_T("压力雨水管材"), g_iPipeMaterial[13]);
SET_VALUE(_T("压力雨水立管半径"), g_nPipeRadius[13]);
SET_VALUE(_T("压力雨水立管样式"), g_bPipeDouble[13]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("其它系统设置"));
SET_VALUE(_T("其它线宽"), g_nPipeWidth[14]);
SET_VALUE(_T("其它线形"), g_csTwtLineType[14]);
SET_VALUE(_T("其它标注"), g_csPipeDim[14]);
SET_VALUE(_T("其它管材"), g_iPipeMaterial[14]);
SET_VALUE(_T("其它立管半径"), g_nPipeRadius[14]);
SET_VALUE(_T("其它立管样式"), g_bPipeDouble[14]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("市政给水系统设置"));
SET_VALUE(_T("市政给水线宽"), g_nPipeWidth[15]);
SET_VALUE(_T("市政给水线形"), g_csTwtLineType[15]);
SET_VALUE(_T("市政给水标注"), g_csPipeDim[15]);
SET_VALUE(_T("市政给水管材"), g_iPipeMaterial[15]);
SET_VALUE(_T("市政给水立管半径"), g_nPipeRadius[15]);
SET_VALUE(_T("市政给水立管样式"), g_bPipeDouble[15]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("循环给水系统设置"));
SET_VALUE(_T("循环给水线宽"), g_nPipeWidth[16]);
SET_VALUE(_T("循环给水线形"), g_csTwtLineType[16]);
SET_VALUE(_T("循环给水标注"), g_csPipeDim[16]);
SET_VALUE(_T("循环给水管材"), g_iPipeMaterial[16]);
SET_VALUE(_T("循环给水立管半径"), g_nPipeRadius[16]);
SET_VALUE(_T("循环给水立管样式"), g_bPipeDouble[16]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("给水中区系统设置"));
SET_VALUE(_T("给水中区线宽"), g_nPipeWidth[17]);
SET_VALUE(_T("给水中区线形"), g_csTwtLineType[17]);
SET_VALUE(_T("给水中区标注"), g_csPipeDim[17]);
SET_VALUE(_T("给水中区管材"), g_iPipeMaterial[17]);
SET_VALUE(_T("给水中区立管半径"), g_nPipeRadius[17]);
SET_VALUE(_T("给水中区立管样式"), g_bPipeDouble[17]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("给水高区系统设置"));
SET_VALUE(_T("给水高区线宽"), g_nPipeWidth[18]);
SET_VALUE(_T("给水高区线形"), g_csTwtLineType[18]);
SET_VALUE(_T("给水高区标注"), g_csPipeDim[18]);
SET_VALUE(_T("给水高区管材"), g_iPipeMaterial[18]);
SET_VALUE(_T("给水高区立管半径"), g_nPipeRadius[18]);
SET_VALUE(_T("给水高区立管样式"), g_bPipeDouble[18]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("热给水中区系统设置"));
SET_VALUE(_T("热给水中区线宽"), g_nPipeWidth[19]);
SET_VALUE(_T("热给水中区线形"), g_csTwtLineType[19]);
SET_VALUE(_T("热给水中区标注"), g_csPipeDim[19]);
SET_VALUE(_T("热给水中区管材"), g_iPipeMaterial[19]);
SET_VALUE(_T("热给水中区立管半径"), g_nPipeRadius[19]);
SET_VALUE(_T("热给水中区立管样式"), g_bPipeDouble[19]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("热给水高区系统设置"));
SET_VALUE(_T("热给水高区线宽"), g_nPipeWidth[20]);
SET_VALUE(_T("热给水高区线形"), g_csTwtLineType[20]);
SET_VALUE(_T("热给水高区标注"), g_csPipeDim[20]);
SET_VALUE(_T("热给水高区管材"), g_iPipeMaterial[20]);
SET_VALUE(_T("热给水高区立管半径"), g_nPipeRadius[20]);
SET_VALUE(_T("热给水高区立管样式"), g_bPipeDouble[20]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("热回水中区系统设置"));
SET_VALUE(_T("热回水中区线宽"), g_nPipeWidth[21]);
SET_VALUE(_T("热回水中区线形"), g_csTwtLineType[21]);
SET_VALUE(_T("热回水中区标注"), g_csPipeDim[21]);
SET_VALUE(_T("热回水中区管材"), g_iPipeMaterial[21]);
SET_VALUE(_T("热回水中区立管半径"), g_nPipeRadius[21]);
SET_VALUE(_T("热回水中区立管样式"), g_bPipeDouble[21]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("热回水高区系统设置"));
SET_VALUE(_T("热回水高区线宽"), g_nPipeWidth[22]);
SET_VALUE(_T("热回水高区线形"), g_csTwtLineType[22]);
SET_VALUE(_T("热回水高区标注"), g_csPipeDim[22]);
SET_VALUE(_T("热回水高区管材"), g_iPipeMaterial[22]);
SET_VALUE(_T("热回水高区立管半径"), g_nPipeRadius[22]);
SET_VALUE(_T("热回水高区立管样式"), g_bPipeDouble[22]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防中区系统设置"));
SET_VALUE(_T("消防中区线宽"), g_nPipeWidth[23]);
SET_VALUE(_T("消防中区线形"), g_csTwtLineType[23]);
SET_VALUE(_T("消防中区标注"), g_csPipeDim[23]);
SET_VALUE(_T("消防中区管材"), g_iPipeMaterial[23]);
SET_VALUE(_T("消防中区立管半径"), g_nPipeRadius[23]);
SET_VALUE(_T("消防中区立管样式"), g_bPipeDouble[23]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防高区系统设置"));
SET_VALUE(_T("消防高区线宽"), g_nPipeWidth[24]);
SET_VALUE(_T("消防高区线形"), g_csTwtLineType[24]);
SET_VALUE(_T("消防高区标注"), g_csPipeDim[24]);
SET_VALUE(_T("消防高区管材"), g_iPipeMaterial[24]);
SET_VALUE(_T("消防高区立管半径"), g_nPipeRadius[24]);
SET_VALUE(_T("消防高区立管样式"), g_bPipeDouble[24]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("喷淋中区系统设置"));
SET_VALUE(_T("喷淋中区线宽"), g_nPipeWidth[25]);
SET_VALUE(_T("喷淋中区线形"), g_csTwtLineType[25]);
SET_VALUE(_T("喷淋中区标注"), g_csPipeDim[25]);
SET_VALUE(_T("喷淋中区管材"), g_iPipeMaterial[25]);
SET_VALUE(_T("喷淋中区立管半径"), g_nPipeRadius[25]);
SET_VALUE(_T("喷淋中区立管样式"), g_bPipeDouble[25]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("喷淋高区系统设置"));
SET_VALUE(_T("喷淋高区线宽"), g_nPipeWidth[26]);
SET_VALUE(_T("喷淋高区线形"), g_csTwtLineType[26]);
SET_VALUE(_T("喷淋高区标注"), g_csPipeDim[26]);
SET_VALUE(_T("喷淋高区管材"), g_iPipeMaterial[26]);
SET_VALUE(_T("喷淋高区立管半径"), g_nPipeRadius[26]);
SET_VALUE(_T("喷淋高区立管样式"), g_bPipeDouble[26]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("中水中区系统设置"));
SET_VALUE(_T("中水中区线宽"), g_nPipeWidth[27]);
SET_VALUE(_T("中水中区线形"), g_csTwtLineType[27]);
SET_VALUE(_T("中水中区标注"), g_csPipeDim[27]);
SET_VALUE(_T("中水中区管材"), g_iPipeMaterial[27]);
SET_VALUE(_T("中水中区立管半径"), g_nPipeRadius[27]);
SET_VALUE(_T("中水中区立管样式"), g_bPipeDouble[27]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("中水高区系统设置"));
SET_VALUE(_T("中水高区线宽"), g_nPipeWidth[28]);
SET_VALUE(_T("中水高区线形"), g_csTwtLineType[28]);
SET_VALUE(_T("中水高区标注"), g_csPipeDim[28]);
SET_VALUE(_T("中水高区管材"), g_iPipeMaterial[28]);
SET_VALUE(_T("中水高区立管半径"), g_nPipeRadius[28]);
SET_VALUE(_T("中水高区立管样式"), g_bPipeDouble[28]);
CLOSE_SUB_DICT();
// cet 2011.12.7 add
OPEN_SUB_DICT(_T("用户3设置"));
SET_VALUE(_T("用户3线宽"), g_nPipeWidth[29]);
SET_VALUE(_T("用户3线形"), g_csTwtLineType[29]);
SET_VALUE(_T("用户3标注"), g_csPipeDim[29]);
SET_VALUE(_T("用户3管材"), g_iPipeMaterial[29]);
SET_VALUE(_T("用户3立管半径"), g_nPipeRadius[29]);
SET_VALUE(_T("用户3立管样式"), g_bPipeDouble[29]);
CLOSE_SUB_DICT();
// cet 2011.12.7 add
OPEN_SUB_DICT(_T("用户4设置"));
SET_VALUE(_T("用户4线宽"), g_nPipeWidth[30]);
SET_VALUE(_T("用户4线形"), g_csTwtLineType[30]);
SET_VALUE(_T("用户4标注"), g_csPipeDim[30]);
SET_VALUE(_T("用户4管材"), g_iPipeMaterial[30]);
SET_VALUE(_T("用户4立管半径"), g_nPipeRadius[30]);
SET_VALUE(_T("用户4立管样式"), g_bPipeDouble[30]);
CLOSE_SUB_DICT();
// cet 2011.12.7 add
OPEN_SUB_DICT(_T("用户5设置"));
SET_VALUE(_T("用户5线宽"), g_nPipeWidth[31]);
SET_VALUE(_T("用户5线形"), g_csTwtLineType[31]);
SET_VALUE(_T("用户5标注"), g_csPipeDim[31]);
SET_VALUE(_T("用户5管材"), g_iPipeMaterial[31]);
SET_VALUE(_T("用户5立管半径"), g_nPipeRadius[31]);
SET_VALUE(_T("用户5立管样式"), g_bPipeDouble[31]);
CLOSE_SUB_DICT();
// cet 2011.12.7 add
OPEN_SUB_DICT(_T("用户6设置"));
SET_VALUE(_T("用户6线宽"), g_nPipeWidth[32]);
SET_VALUE(_T("用户6线形"), g_csTwtLineType[32]);
SET_VALUE(_T("用户6标注"), g_csPipeDim[32]);
SET_VALUE(_T("用户6管材"), g_iPipeMaterial[32]);
SET_VALUE(_T("用户6立管半径"), g_nPipeRadius[32]);
SET_VALUE(_T("用户6立管样式"), g_bPipeDouble[32]);
CLOSE_SUB_DICT();
// cet 2011.12.7 add
OPEN_SUB_DICT(_T("用户7设置"));
SET_VALUE(_T("用户7线宽"), g_nPipeWidth[33]);
SET_VALUE(_T("用户7线形"), g_csTwtLineType[33]);
SET_VALUE(_T("用户7标注"), g_csPipeDim[33]);
SET_VALUE(_T("用户7管材"), g_iPipeMaterial[33]);
SET_VALUE(_T("用户7立管半径"), g_nPipeRadius[33]);
SET_VALUE(_T("用户7立管样式"), g_bPipeDouble[33]);
CLOSE_SUB_DICT();
// cet 2011.12.7 add
OPEN_SUB_DICT(_T("用户8设置"));
SET_VALUE(_T("用户8线宽"), g_nPipeWidth[34]);
SET_VALUE(_T("用户8线形"), g_csTwtLineType[34]);
SET_VALUE(_T("用户8标注"), g_csPipeDim[34]);
SET_VALUE(_T("用户8管材"), g_iPipeMaterial[34]);
SET_VALUE(_T("用户8立管半径"), g_nPipeRadius[34]);
SET_VALUE(_T("用户8立管样式"), g_bPipeDouble[34]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("用户管线类型设置"));
SET_VALUE(_T("自定义管线1"), g_csPipeName[0]);
SET_VALUE(_T("自定义管线2"), g_csPipeName[1]);
SET_VALUE(_T("自定义管线3"), g_csPipeName[2]);
SET_VALUE(_T("自定义管线4"), g_csPipeName[3]);
SET_VALUE(_T("自定义管线5"), g_csPipeName[4]);
SET_VALUE(_T("自定义管线6"), g_csPipeName[5]);
SET_VALUE(_T("自定义管线7"), g_csPipeName[6]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("管径标注文字设置"));
SET_VALUE(_T("管径标注中文字体"), g_csPipeDnChn);
SET_VALUE(_T("管径标注西文字体"), g_csPipeDnEng);
SET_VALUE(_T("管径标注字高"), g_nPipeDnHeight);
SET_VALUE(_T("管径标注宽高比"), g_nPipeDnScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("立管标注文字设置"));
SET_VALUE(_T("立管标注中文字体"), g_csVPipeChn);
SET_VALUE(_T("立管标注西文字体"), g_csVPipeEng);
SET_VALUE(_T("立管标注字高"), g_nVPipeHeight);
SET_VALUE(_T("立管标注宽高比"), g_nVPipeScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("管线文字设置"));
SET_VALUE(_T("管线文字中文字体"), g_csPipeTextChn);
SET_VALUE(_T("管线文字西文字体"), g_csPipeTextEng);
SET_VALUE(_T("管线文字字高"), g_nPipeTextHeight);
SET_VALUE(_T("管线文字宽高比"), g_nPipeTextScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("圆中文字设置"));
SET_VALUE(_T("圆中文字中文字体"), g_csCircleTextChn);
SET_VALUE(_T("圆中文字西文字体"), g_csCircleTextEng);
SET_VALUE(_T("圆中文字字高"), g_nCircleTextHeight);
SET_VALUE(_T("圆中文字宽高比"), g_nCircleTextScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("井标注设置"));
SET_VALUE(_T("井标注中文字体"), g_csDimWellChn);
SET_VALUE(_T("井标注西文字体"), g_csDimWellEng);
SET_VALUE(_T("井标注字高"), g_nDimWellHeight);
SET_VALUE(_T("井标注宽高比"), g_nDimWellScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("表格文字设置"));
SET_VALUE(_T("表格中文字体"), g_csSheetChn);
SET_VALUE(_T("表格西文字体"), g_csSheetEng);
SET_VALUE(_T("表格字高"), g_nSheetHeight);
SET_VALUE(_T("表格宽高比"), g_nSheetScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("标注文字设置"));
SET_VALUE(_T("标注中文字体"), g_csDimChn);
SET_VALUE(_T("标注西文字体"), g_csDimEng);
SET_VALUE(_T("标注字高"), g_nTwtDimHeight);
SET_VALUE(_T("标注宽高比"), g_nDimScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("文字线性设置"));
SET_VALUE(_T("标注中文字体"), g_csLineTypeChnShx);
SET_VALUE(_T("标注西文字体"), g_csLineTypeEngShx);
SET_VALUE(_T("标注字高"), g_dLineTypeHeight);
SET_VALUE(_T("标注宽高比"), g_dLineTypeScale);
CLOSE_SUB_DICT();
CLOSE_DICT();
dict.WriteFile(csFileIni);
}
void CSaveSettingDlg::ReadTelSetting(CString csFileIni)
{
WDict dict;
if(!dict.ReadFile(csFileIni))
return;
OPEN_DICT(dict);
OPEN_SUB_DICT(_T("平面图设置"));
GET_VALUE(_T("设备块尺寸"), g_nEqBlkLength);
GET_VALUE(_T("设备至墙距离"), g_nEq2WallDist);
GET_VALUE(_T("管线打断间距"), g_iWireBreak);
GET_VALUE(_T("高频图块个数"), g_iLastBlkMaxNum);
GET_VALUE(_T("旋转属性字"), g_bRotateAttrib);
GET_VALUE(_T("沿线文字"), g_iWireTextType);
GET_VALUE(_T("插块前选择已有块"),g_bAskInsBlk);
GET_VALUE(_T("块属性文字"),g_csTextAttr);
GET_VALUE(_T("图块线宽"), g_dBlkThickWidth);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("系统图设置"));
GET_VALUE(_T("连接点直径"), g_nPointDia);
GET_VALUE(_T("端子直径"), g_nTerminalDia);
GET_VALUE(_T("系统导线带分割线"), g_bDrawWireDiv);
GET_VALUE(_T("关闭分割线层"), g_bCloseLnGrid);
GET_VALUE(_T("布置导线输入导线信息"),g_bWireAskInfo);
GET_VALUE(_T("相邻导线自动连接"),g_bJoin2Wire);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("标导线数设置"));
GET_VALUE(_T("标导线数样式"), g_iWireNumType);
GET_VALUE(_T("标导线数字高"), g_nWireNumHeight);
GET_VALUE(_T("标导线数宽高比"),g_nWireDimScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("其它设置"));
GET_VALUE(_T("工具条状态"), g_bToolbar);
GET_VALUE(_T("选择预览"), g_bEnableSelectPreview);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("电气标注文字设置"));
GET_VALUE(_T("电气标注中文字体"), g_csDimChnShx);
GET_VALUE(_T("电气标注西文字体"), g_csDimEngShx);
GET_VALUE(_T("电气标注字高"), g_nDimHeight);
GET_VALUE(_T("电气标注宽高比"), g_nScaleDim);
GET_VALUE(_T("电气文字属性中文字体"),g_csBlkAttrTypeChnShx);
GET_VALUE(_T("电气文字属性英文字体"),g_csBlkAttrTypeEngShx);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("线型文字设置"));
GET_VALUE(_T("线型文字中文字体"), g_csLineTypeChnShx);
GET_VALUE(_T("线型文字西文字体"), g_csLineTypeEngShx);
GET_VALUE(_T("线型文字字高"), g_dLineTypeHeight);
GET_VALUE(_T("线型文字宽高比"), g_dLineTypeScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("其他导线设置"));
GET_VALUE(_T("系统母线线宽"), g_dBusLineWidth);
GET_VALUE(_T("系统导线线宽"), g_dSysLineWidth);
GET_VALUE(_T("避雷导线线形"), g_iLightingWireLineType);
GET_VALUE(_T("接地导线线形"), g_iGourdWireLineType);
GET_VALUE(_T("导线线型随层"), g_bLineTypeByLayer);
GET_VALUE(_T("是否倒角"), g_bIsChamAngle);
GET_VALUE(_T("倒角半径"), g_dChamAngle);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("照明导线设置"));
GET_VALUE(_T("照明导线线宽"), g_nWireWidth[0]);
GET_VALUE(_T("照明导线线形"), g_csLineType[0]);
GET_VALUE(_T("照明导线回路"), g_csWireLoop[0]);
GET_VALUE(_T("照明导线DimType"), g_csWireDimType[0]);
GET_VALUE(_T("照明导线DimArea"), g_csWireDimArea[0]);
GET_VALUE(_T("照明导线DimMode"), g_csWireDimMode[0]);
GET_VALUE(_T("照明导线DimPlace"), g_csWireDimPlace[0]);
GET_VALUE(_T("照明导线DimRadius"),g_csWireDimRadius[0]);
GET_VALUE(_T("照明导线DimNorm"), g_iWireDimNorm[0]);
GET_VALUE(_T("照明导线LineNum"),g_csWireLineNum[0]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("动力导线设置"));
GET_VALUE(_T("动力导线线宽"), g_nWireWidth[1]);
GET_VALUE(_T("动力导线线形"), g_csLineType[1]);
GET_VALUE(_T("动力导线回路"), g_csWireLoop[1]);
GET_VALUE(_T("动力导线DimType"), g_csWireDimType[1]);
GET_VALUE(_T("动力导线DimArea"), g_csWireDimArea[1]);
GET_VALUE(_T("动力导线DimMode"), g_csWireDimMode[1]);
GET_VALUE(_T("动力导线DimPlace"), g_csWireDimPlace[1]);
GET_VALUE(_T("动力导线DimRadius"),g_csWireDimRadius[1]);
GET_VALUE(_T("动力导线DimNorm"), g_iWireDimNorm[1]);
GET_VALUE(_T("动力导线LineNum"),g_csWireLineNum[1]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防导线设置"));
GET_VALUE(_T("消防导线线宽"), g_nWireWidth[2]);
GET_VALUE(_T("消防导线线形"), g_csLineType[2]);
GET_VALUE(_T("消防导线回路"), g_csWireLoop[2]);
GET_VALUE(_T("消防导线DimType"), g_csWireDimType[2]);
GET_VALUE(_T("消防导线DimArea"), g_csWireDimArea[2]);
GET_VALUE(_T("消防导线DimMode"), g_csWireDimMode[2]);
GET_VALUE(_T("消防导线DimPlace"), g_csWireDimPlace[2]);
GET_VALUE(_T("消防导线DimRadius"),g_csWireDimRadius[2]);
GET_VALUE(_T("消防导线DimNorm"), g_iWireDimNorm[2]);
GET_VALUE(_T("消防导线LineNum"), g_csWireLineNum[2]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("通讯导线设置"));
GET_VALUE(_T("通讯导线线宽"), g_nWireWidth[3]);
GET_VALUE(_T("通讯导线线形"), g_csLineType[3]);
GET_VALUE(_T("通讯导线回路"), g_csWireLoop[3]);
GET_VALUE(_T("通讯导线DimType"), g_csWireDimType[3]);
GET_VALUE(_T("通讯导线DimArea"), g_csWireDimArea[3]);
GET_VALUE(_T("通讯导线DimMode"), g_csWireDimMode[3]);
GET_VALUE(_T("通讯导线DimPlace"), g_csWireDimPlace[3]);
GET_VALUE(_T("通讯导线DimRadius"),g_csWireDimRadius[3]);
GET_VALUE(_T("通讯导线DimNorm"), g_iWireDimNorm[3]);
GET_VALUE(_T("通讯导线LineNum"), g_csWireLineNum[3]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("应急导线设置"));
GET_VALUE(_T("应急导线线宽"), g_nWireWidth[4]);
GET_VALUE(_T("应急导线线形"), g_csLineType[4]);
GET_VALUE(_T("应急导线回路"), g_csWireLoop[4]);
GET_VALUE(_T("应急导线DimType"), g_csWireDimType[4]);
GET_VALUE(_T("应急导线DimArea"), g_csWireDimArea[4]);
GET_VALUE(_T("应急导线DimMode"), g_csWireDimMode[4]);
GET_VALUE(_T("应急导线DimPlace"), g_csWireDimPlace[4]);
GET_VALUE(_T("应急导线DimRadius"),g_csWireDimRadius[4]);
GET_VALUE(_T("应急导线DimNorm"), g_iWireDimNorm[4]);
GET_VALUE(_T("应急导线LineNum"), g_csWireLineNum[4]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("火警电话设置"));
GET_VALUE(_T("火警电话线宽"), g_nWireWidth[5]);
GET_VALUE(_T("火警电话线形"), g_csLineType[5]);
GET_VALUE(_T("火警电话回路"), g_csWireLoop[5]);
GET_VALUE(_T("火警电话DimType"), g_csWireDimType[5]);
GET_VALUE(_T("火警电话DimArea"), g_csWireDimArea[5]);
GET_VALUE(_T("火警电话DimMode"), g_csWireDimMode[5]);
GET_VALUE(_T("火警电话DimPlace"), g_csWireDimPlace[5]);
GET_VALUE(_T("火警电话DimRadius"),g_csWireDimRadius[5]);
GET_VALUE(_T("火警电话DimNorm"), g_iWireDimNorm[5]);
GET_VALUE(_T("火警电话LineNum"), g_csWireLineNum[5]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("火警广播设置"));
GET_VALUE(_T("火警广播线宽"), g_nWireWidth[6]);
GET_VALUE(_T("火警广播线形"), g_csLineType[6]);
GET_VALUE(_T("火警广播回路"), g_csWireLoop[6]);
GET_VALUE(_T("火警广播DimType"), g_csWireDimType[6]);
GET_VALUE(_T("火警广播DimArea"), g_csWireDimArea[6]);
GET_VALUE(_T("火警广播DimMode"), g_csWireDimMode[6]);
GET_VALUE(_T("火警广播DimPlace"), g_csWireDimPlace[6]);
GET_VALUE(_T("火警广播DimRadius"),g_csWireDimRadius[6]);
GET_VALUE(_T("火警广播DimNorm"), g_iWireDimNorm[6]);
GET_VALUE(_T("火警广播LineNum"), g_csWireLineNum[6]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("火警控制设置"));
GET_VALUE(_T("火警控制线宽"), g_nWireWidth[7]);
GET_VALUE(_T("火警控制线形"), g_csLineType[7]);
GET_VALUE(_T("火警控制回路"), g_csWireLoop[7]);
GET_VALUE(_T("火警控制DimType"), g_csWireDimType[7]);
GET_VALUE(_T("火警控制DimArea"), g_csWireDimArea[7]);
GET_VALUE(_T("火警控制DimMode"), g_csWireDimMode[7]);
GET_VALUE(_T("火警控制DimPlace"), g_csWireDimPlace[7]);
GET_VALUE(_T("火警控制DimRadius"),g_csWireDimRadius[7]);
GET_VALUE(_T("火警控制DimNorm"), g_iWireDimNorm[7]);
GET_VALUE(_T("火警控制LineNum"), g_csWireLineNum[7]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("火警电源设置"));
GET_VALUE(_T("火警电源线宽"), g_nWireWidth[8]);
GET_VALUE(_T("火警电源线形"), g_csLineType[8]);
GET_VALUE(_T("火警电源回路"), g_csWireLoop[8]);
GET_VALUE(_T("火警电源DimType"), g_csWireDimType[8]);
GET_VALUE(_T("火警电源DimArea"), g_csWireDimArea[8]);
GET_VALUE(_T("火警电源DimMode"), g_csWireDimMode[8]);
GET_VALUE(_T("火警电源DimPlace"), g_csWireDimPlace[8]);
GET_VALUE(_T("火警电源DimRadius"),g_csWireDimRadius[8]);
GET_VALUE(_T("火警电源DimNorm"), g_iWireDimNorm[8]);
GET_VALUE(_T("火警电源LineNum"), g_csWireLineNum[8]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("电视导线设置"));
GET_VALUE(_T("电视导线线宽"), g_nWireWidth[9]);
GET_VALUE(_T("电视导线线形"), g_csLineType[9]);
GET_VALUE(_T("电视导线回路"), g_csWireLoop[9]);
GET_VALUE(_T("电视导线DimType"), g_csWireDimType[9]);
GET_VALUE(_T("电视导线DimArea"), g_csWireDimArea[9]);
GET_VALUE(_T("电视导线DimMode"), g_csWireDimMode[9]);
GET_VALUE(_T("电视导线DimPlace"), g_csWireDimPlace[9]);
GET_VALUE(_T("电视导线DimRadius"),g_csWireDimRadius[9]);
GET_VALUE(_T("电视导线DimNorm"), g_iWireDimNorm[9]);
GET_VALUE(_T("电视导线LineNum"), g_csWireLineNum[9]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("网络导线设置"));
GET_VALUE(_T("网络导线线宽"), g_nWireWidth[10]);
GET_VALUE(_T("网络导线线形"), g_csLineType[10]);
GET_VALUE(_T("网络导线回路"), g_csWireLoop[10]);
GET_VALUE(_T("网络导线DimType"), g_csWireDimType[10]);
GET_VALUE(_T("网络导线DimArea"), g_csWireDimArea[10]);
GET_VALUE(_T("网络导线DimMode"), g_csWireDimMode[10]);
GET_VALUE(_T("网络导线DimPlace"), g_csWireDimPlace[10]);
GET_VALUE(_T("网络导线DimRadius"),g_csWireDimRadius[10]);
GET_VALUE(_T("网络导线DimNorm"), g_iWireDimNorm[10]);
GET_VALUE(_T("网络导线LineNum"), g_csWireLineNum[10]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("动力控制设置"));
GET_VALUE(_T("动力控制线宽"), g_nWireWidth[11]);
GET_VALUE(_T("动力控制线形"), g_csLineType[11]);
GET_VALUE(_T("动力控制回路"), g_csWireLoop[11]);
GET_VALUE(_T("动力控制DimType"), g_csWireDimType[11]);
GET_VALUE(_T("动力控制DimArea"), g_csWireDimArea[11]);
GET_VALUE(_T("动力控制DimMode"), g_csWireDimMode[11]);
GET_VALUE(_T("动力控制DimPlace"), g_csWireDimPlace[11]);
GET_VALUE(_T("动力控制DimRadius"),g_csWireDimRadius[11]);
GET_VALUE(_T("动力控制DimNorm"), g_iWireDimNorm[11]);
GET_VALUE(_T("动力控制LineNum"), g_csWireLineNum[11]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("动力母线设置"));
GET_VALUE(_T("动力母线线宽"), g_nWireWidth[12]);
GET_VALUE(_T("动力母线线形"), g_csLineType[12]);
GET_VALUE(_T("动力母线回路"), g_csWireLoop[12]);
GET_VALUE(_T("动力母线DimType"), g_csWireDimType[12]);
GET_VALUE(_T("动力母线DimArea"), g_csWireDimArea[12]);
GET_VALUE(_T("动力母线DimMode"), g_csWireDimMode[12]);
GET_VALUE(_T("动力母线DimPlace"), g_csWireDimPlace[12]);
GET_VALUE(_T("动力母线DimRadius"),g_csWireDimRadius[12]);
GET_VALUE(_T("动力母线DimNorm"), g_iWireDimNorm[12]);
GET_VALUE(_T("动力母线LineNum"), g_csWireLineNum[12]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电信号设置"));
GET_VALUE(_T("弱电信号线宽"), g_nWireWidth[13]);
GET_VALUE(_T("弱电信号线形"), g_csLineType[13]);
GET_VALUE(_T("弱电信号回路"), g_csWireLoop[13]);
GET_VALUE(_T("弱电信号DimType"), g_csWireDimType[13]);
GET_VALUE(_T("弱电信号DimArea"), g_csWireDimArea[13]);
GET_VALUE(_T("弱电信号DimMode"), g_csWireDimMode[13]);
GET_VALUE(_T("弱电信号DimPlace"), g_csWireDimPlace[13]);
GET_VALUE(_T("弱电信号DimRadius"),g_csWireDimRadius[13]);
GET_VALUE(_T("弱电信号DimNorm"), g_iWireDimNorm[13]);
GET_VALUE(_T("弱电信号LineNum"), g_csWireLineNum[13]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电安防设置"));
GET_VALUE(_T("弱电安防线宽"), g_nWireWidth[14]);
GET_VALUE(_T("弱电安防线形"), g_csLineType[14]);
GET_VALUE(_T("弱电安防回路"), g_csWireLoop[14]);
GET_VALUE(_T("弱电安防DimType"), g_csWireDimType[14]);
GET_VALUE(_T("弱电安防DimArea"), g_csWireDimArea[14]);
GET_VALUE(_T("弱电安防DimMode"), g_csWireDimMode[14]);
GET_VALUE(_T("弱电安防DimPlace"), g_csWireDimPlace[14]);
GET_VALUE(_T("弱电安防DimRadius"),g_csWireDimRadius[14]);
GET_VALUE(_T("弱电安防DimNorm"), g_iWireDimNorm[14]);
GET_VALUE(_T("弱电安防LineNum"), g_csWireLineNum[14]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电广播设置"));
GET_VALUE(_T("弱电广播线宽"), g_nWireWidth[15]);
GET_VALUE(_T("弱电广播线形"), g_csLineType[15]);
GET_VALUE(_T("弱电广播回路"), g_csWireLoop[15]);
GET_VALUE(_T("弱电广播DimType"), g_csWireDimType[15]);
GET_VALUE(_T("弱电广播DimArea"), g_csWireDimArea[15]);
GET_VALUE(_T("弱电广播DimMode"), g_csWireDimMode[15]);
GET_VALUE(_T("弱电广播DimPlace"), g_csWireDimPlace[15]);
GET_VALUE(_T("弱电广播DimRadius"),g_csWireDimRadius[15]);
GET_VALUE(_T("弱电广播DimNorm"), g_iWireDimNorm[15]);
GET_VALUE(_T("弱电广播LineNum"), g_csWireLineNum[15]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防信号设置"));
GET_VALUE(_T("消防信号线宽"), g_nWireWidth[16]);
GET_VALUE(_T("消防信号线形"), g_csLineType[16]);
GET_VALUE(_T("消防信号回路"), g_csWireLoop[16]);
GET_VALUE(_T("消防信号DimType"), g_csWireDimType[16]);
GET_VALUE(_T("消防信号DimArea"), g_csWireDimArea[16]);
GET_VALUE(_T("消防信号DimMode"), g_csWireDimMode[16]);
GET_VALUE(_T("消防信号DimPlace"), g_csWireDimPlace[16]);
GET_VALUE(_T("消防信号DimRadius"),g_csWireDimRadius[16]);
GET_VALUE(_T("消防信号DimNorm"), g_iWireDimNorm[16]);
GET_VALUE(_T("消防信号LineNum"), g_csWireLineNum[16]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("插座导线设置"));
GET_VALUE(_T("插座导线线宽"), g_nWireWidth[17]);
GET_VALUE(_T("插座导线线形"), g_csLineType[17]);
GET_VALUE(_T("插座导线回路"), g_csWireLoop[17]);
GET_VALUE(_T("插座导线DimType"), g_csWireDimType[17]);
GET_VALUE(_T("插座导线DimArea"), g_csWireDimArea[17]);
GET_VALUE(_T("插座导线DimMode"), g_csWireDimMode[17]);
GET_VALUE(_T("插座导线DimPlace"), g_csWireDimPlace[17]);
GET_VALUE(_T("插座导线DimRadius"),g_csWireDimRadius[17]);
GET_VALUE(_T("插座导线DimNorm"), g_iWireDimNorm[17]);
GET_VALUE(_T("插座导线LineNum"), g_csWireLineNum[17]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电控制设置"));
GET_VALUE(_T("弱电控制线宽"), g_nWireWidth[18]);
GET_VALUE(_T("弱电控制线形"), g_csLineType[18]);
GET_VALUE(_T("弱电控制回路"), g_csWireLoop[18]);
GET_VALUE(_T("弱电控制DimType"), g_csWireDimType[18]);
GET_VALUE(_T("弱电控制DimArea"), g_csWireDimArea[18]);
GET_VALUE(_T("弱电控制DimMode"), g_csWireDimMode[18]);
GET_VALUE(_T("弱电控制DimPlace"), g_csWireDimPlace[18]);
GET_VALUE(_T("弱电控制DimRadius"),g_csWireDimRadius[18]);
GET_VALUE(_T("弱电控制DimNorm"), g_iWireDimNorm[18]);
GET_VALUE(_T("弱电控制LineNum"), g_csWireLineNum[18]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电电话设置"));
GET_VALUE(_T("弱电电话线宽"), g_nWireWidth[19]);
GET_VALUE(_T("弱电电话线形"), g_csLineType[19]);
GET_VALUE(_T("弱电电话回路"), g_csWireLoop[19]);
GET_VALUE(_T("弱电电话DimType"), g_csWireDimType[19]);
GET_VALUE(_T("弱电电话DimArea"), g_csWireDimArea[19]);
GET_VALUE(_T("弱电电话DimMode"), g_csWireDimMode[19]);
GET_VALUE(_T("弱电电话DimPlace"), g_csWireDimPlace[19]);
GET_VALUE(_T("弱电电话DimRadius"),g_csWireDimRadius[19]);
GET_VALUE(_T("弱电电话DimNorm"), g_iWireDimNorm[19]);
GET_VALUE(_T("弱电电话LineNum"), g_csWireLineNum[19]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电综合布线设置"));
GET_VALUE(_T("弱电综合线宽"), g_nWireWidth[20]);
GET_VALUE(_T("弱电综合线形"), g_csLineType[20]);
GET_VALUE(_T("弱电综合回路"), g_csWireLoop[20]);
GET_VALUE(_T("弱电综合DimType"), g_csWireDimType[20]);
GET_VALUE(_T("弱电综合DimArea"), g_csWireDimArea[20]);
GET_VALUE(_T("弱电综合DimMode"), g_csWireDimMode[20]);
GET_VALUE(_T("弱电综合DimPlace"), g_csWireDimPlace[20]);
GET_VALUE(_T("弱电综合DimRadius"),g_csWireDimRadius[20]);
GET_VALUE(_T("弱电综合DimNorm"), g_iWireDimNorm[20]);
GET_VALUE(_T("弱电综合LineNum"), g_csWireLineNum[20]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("光缆设置"));
GET_VALUE(_T("光缆线宽"), g_nWireWidth[21]);
GET_VALUE(_T("光缆线形"), g_csLineType[21]);
GET_VALUE(_T("光缆回路"), g_csWireLoop[21]);
GET_VALUE(_T("光缆DimType"), g_csWireDimType[21]);
GET_VALUE(_T("光缆DimArea"), g_csWireDimArea[21]);
GET_VALUE(_T("光缆DimMode"), g_csWireDimMode[21]);
GET_VALUE(_T("光缆DimPlace"), g_csWireDimPlace[21]);
GET_VALUE(_T("光缆DimRadius"),g_csWireDimRadius[21]);
GET_VALUE(_T("光缆DimNorm"), g_iWireDimNorm[21]);
GET_VALUE(_T("光缆LineNum"), g_csWireLineNum[21]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("接闪线设置"));
GET_VALUE(_T("接闪线线宽"), g_nWireWidth[22]);
GET_VALUE(_T("接闪线线形"), g_csLineType[22]);
GET_VALUE(_T("接闪线回路"), g_csWireLoop[22]);
GET_VALUE(_T("接闪线DimType"), g_csWireDimType[22]);
GET_VALUE(_T("接闪线DimArea"), g_csWireDimArea[22]);
GET_VALUE(_T("接闪线DimMode"), g_csWireDimMode[22]);
GET_VALUE(_T("接闪线DimPlace"), g_csWireDimPlace[22]);
GET_VALUE(_T("接闪线DimRadius"),g_csWireDimRadius[22]);
GET_VALUE(_T("接闪线DimNorm"), g_iWireDimNorm[22]);
GET_VALUE(_T("接闪线LineNum"), g_csWireLineNum[22]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("接地线设置"));
GET_VALUE(_T("接地线线宽"), g_nWireWidth[23]);
GET_VALUE(_T("接地线线形"), g_csLineType[23]);
GET_VALUE(_T("接地线回路"), g_csWireLoop[23]);
GET_VALUE(_T("接地线DimType"), g_csWireDimType[23]);
GET_VALUE(_T("接地线DimArea"), g_csWireDimArea[23]);
GET_VALUE(_T("接地线DimMode"), g_csWireDimMode[23]);
GET_VALUE(_T("接地线DimPlace"), g_csWireDimPlace[23]);
GET_VALUE(_T("接地线DimRadius"),g_csWireDimRadius[23]);
GET_VALUE(_T("接地线DimNorm"), g_iWireDimNorm[23]);
GET_VALUE(_T("接地线LineNum"), g_csWireLineNum[23]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电其它设置"));
GET_VALUE(_T("弱电其它线宽"), g_nWireWidth[24]);
GET_VALUE(_T("弱电其它线形"), g_csLineType[24]);
GET_VALUE(_T("弱电其它回路"), g_csWireLoop[24]);
GET_VALUE(_T("弱电其它DimType"), g_csWireDimType[24]);
GET_VALUE(_T("弱电其它DimArea"), g_csWireDimArea[24]);
GET_VALUE(_T("弱电其它DimMode"), g_csWireDimMode[24]);
GET_VALUE(_T("弱电其它DimPlace"), g_csWireDimPlace[24]);
GET_VALUE(_T("弱电其它DimRadius"),g_csWireDimRadius[24]);
GET_VALUE(_T("弱电其它DimNorm"), g_iWireDimNorm[24]);
GET_VALUE(_T("弱电其它LineNum"), g_csWireLineNum[24]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电视频设置"));
GET_VALUE(_T("弱电视频线宽"), g_nWireWidth[25]);
GET_VALUE(_T("弱电视频线形"), g_csLineType[25]);
GET_VALUE(_T("弱电视频回路"), g_csWireLoop[25]);
GET_VALUE(_T("弱电视频DimType"), g_csWireDimType[25]);
GET_VALUE(_T("弱电视频DimArea"), g_csWireDimArea[25]);
GET_VALUE(_T("弱电视频DimMode"), g_csWireDimMode[25]);
GET_VALUE(_T("弱电视频DimPlace"), g_csWireDimPlace[25]);
GET_VALUE(_T("弱电视频DimRadius"),g_csWireDimRadius[25]);
GET_VALUE(_T("弱电视频DimNorm"), g_iWireDimNorm[25]);
GET_VALUE(_T("弱电视频LineNum"), g_csWireLineNum[25]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电会议设置"));
GET_VALUE(_T("弱电会议线宽"), g_nWireWidth[26]);
GET_VALUE(_T("弱电会议线形"), g_csLineType[26]);
GET_VALUE(_T("弱电会议回路"), g_csWireLoop[26]);
GET_VALUE(_T("弱电会议DimType"), g_csWireDimType[26]);
GET_VALUE(_T("弱电会议DimArea"), g_csWireDimArea[26]);
GET_VALUE(_T("弱电会议DimMode"), g_csWireDimMode[26]);
GET_VALUE(_T("弱电会议DimPlace"), g_csWireDimPlace[26]);
GET_VALUE(_T("弱电会议DimRadius"),g_csWireDimRadius[26]);
GET_VALUE(_T("弱电会议DimNorm"), g_iWireDimNorm[26]);
GET_VALUE(_T("弱电会议LineNum"), g_csWireLineNum[26]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电卫星电视设置"));
GET_VALUE(_T("弱电卫星电视线宽"), g_nWireWidth[27]);
GET_VALUE(_T("弱电卫星电视线形"), g_csLineType[27]);
GET_VALUE(_T("弱电卫星电视回路"), g_csWireLoop[27]);
GET_VALUE(_T("弱电卫星电视DimType"), g_csWireDimType[27]);
GET_VALUE(_T("弱电卫星电视DimArea"), g_csWireDimArea[27]);
GET_VALUE(_T("弱电卫星电视DimMode"), g_csWireDimMode[27]);
GET_VALUE(_T("弱电卫星电视DimPlace"), g_csWireDimPlace[27]);
GET_VALUE(_T("弱电卫星电视DimRadius"),g_csWireDimRadius[27]);
GET_VALUE(_T("弱电卫星电视DimNorm"), g_iWireDimNorm[27]);
GET_VALUE(_T("弱电卫星电视LineNum"), g_csWireLineNum[27]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防报警设置"));
GET_VALUE(_T("消防报警线宽"), g_nWireWidth[28]);
GET_VALUE(_T("消防报警线形"), g_csLineType[28]);
GET_VALUE(_T("消防报警回路"), g_csWireLoop[28]);
GET_VALUE(_T("消防报警DimType"), g_csWireDimType[28]);
GET_VALUE(_T("消防报警DimArea"), g_csWireDimArea[28]);
GET_VALUE(_T("消防报警DimMode"), g_csWireDimMode[28]);
GET_VALUE(_T("消防报警DimPlace"), g_csWireDimPlace[28]);
GET_VALUE(_T("综消防报警DimRadius"),g_csWireDimRadius[28]);
GET_VALUE(_T("消防报警DimNorm"), g_iWireDimNorm[28]);
GET_VALUE(_T("消防报警LineNum"), g_csWireLineNum[28]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防联动设置"));
GET_VALUE(_T("消防联动线宽"), g_nWireWidth[29]);
GET_VALUE(_T("消防联动线形"), g_csLineType[29]);
GET_VALUE(_T("消防联动回路"), g_csWireLoop[29]);
GET_VALUE(_T("消防联动DimType"), g_csWireDimType[29]);
GET_VALUE(_T("消防联动DimArea"), g_csWireDimArea[29]);
GET_VALUE(_T("消防联动DimMode"), g_csWireDimMode[29]);
GET_VALUE(_T("消防联动DimPlace"), g_csWireDimPlace[29]);
GET_VALUE(_T("消防联动DimRadius"),g_csWireDimRadius[29]);
GET_VALUE(_T("消防联动DimNorm"), g_iWireDimNorm[29]);
GET_VALUE(_T("消防联动LineNum"), g_csWireLineNum[29]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防信号3设置"));
GET_VALUE(_T("消防信号3线宽"), g_nWireWidth[30]);
GET_VALUE(_T("消防信号3线形"), g_csLineType[30]);
GET_VALUE(_T("消防信号3回路"), g_csWireLoop[30]);
GET_VALUE(_T("消防信号3DimType"), g_csWireDimType[30]);
GET_VALUE(_T("消防信号3DimArea"), g_csWireDimArea[30]);
GET_VALUE(_T("消防信号3DimMode"), g_csWireDimMode[30]);
GET_VALUE(_T("消防信号3DimPlace"), g_csWireDimPlace[30]);
GET_VALUE(_T("消防信号3DimRadius"),g_csWireDimRadius[30]);
GET_VALUE(_T("消防信号3DimNorm"), g_iWireDimNorm[30]);
GET_VALUE(_T("消防信号3LineNum"), g_csWireLineNum[30]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防信号4设置"));
GET_VALUE(_T("消防信号4线宽"), g_nWireWidth[31]);
GET_VALUE(_T("消防信号4线形"), g_csLineType[31]);
GET_VALUE(_T("消防信号4回路"), g_csWireLoop[31]);
GET_VALUE(_T("消防信号4DimType"), g_csWireDimType[31]);
GET_VALUE(_T("消防信号4DimArea"), g_csWireDimArea[31]);
GET_VALUE(_T("消防信号4DimMode"), g_csWireDimMode[31]);
GET_VALUE(_T("消防信号4DimPlace"), g_csWireDimPlace[31]);
GET_VALUE(_T("消防信号4DimRadius"),g_csWireDimRadius[31]);
GET_VALUE(_T("消防信号4DimNorm"), g_iWireDimNorm[31]);
GET_VALUE(_T("消防信号4LineNum"), g_csWireLineNum[31]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防信号5设置"));
GET_VALUE(_T("消防信号5线宽"), g_nWireWidth[32]);
GET_VALUE(_T("消防信号5线形"), g_csLineType[32]);
GET_VALUE(_T("消防信号5回路"), g_csWireLoop[32]);
GET_VALUE(_T("消防信号5DimType"), g_csWireDimType[32]);
GET_VALUE(_T("消防信号5DimArea"), g_csWireDimArea[32]);
GET_VALUE(_T("消防信号5DimMode"), g_csWireDimMode[32]);
GET_VALUE(_T("消防信号5DimPlace"), g_csWireDimPlace[32]);
GET_VALUE(_T("消防信号5DimRadius"),g_csWireDimRadius[32]);
GET_VALUE(_T("消防信号5DimNorm"), g_iWireDimNorm[32]);
GET_VALUE(_T("消防信号5LineNum"), g_csWireLineNum[32]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防手控设置"));
GET_VALUE(_T("消防手控线宽"), g_nWireWidth[33]);
GET_VALUE(_T("消防手控线形"), g_csLineType[33]);
GET_VALUE(_T("消防手控回路"), g_csWireLoop[33]);
GET_VALUE(_T("消防手控DimType"), g_csWireDimType[33]);
GET_VALUE(_T("消防手控DimArea"), g_csWireDimArea[33]);
GET_VALUE(_T("消防手控DimMode"), g_csWireDimMode[33]);
GET_VALUE(_T("消防手控DimPlace"), g_csWireDimPlace[33]);
GET_VALUE(_T("消防手控DimRadius"),g_csWireDimRadius[33]);
GET_VALUE(_T("消防手控DimNorm"), g_iWireDimNorm[33]);
GET_VALUE(_T("消防手控LineNum"), g_csWireLineNum[33]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防气体设置"));
GET_VALUE(_T("消防气体线宽"), g_nWireWidth[34]);
GET_VALUE(_T("消防气体线形"), g_csLineType[34]);
GET_VALUE(_T("消防气体回路"), g_csWireLoop[34]);
GET_VALUE(_T("消防气体DimType"), g_csWireDimType[34]);
GET_VALUE(_T("消防气体DimArea"), g_csWireDimArea[34]);
GET_VALUE(_T("消防气体DimMode"), g_csWireDimMode[34]);
GET_VALUE(_T("消防气体DimPlace"), g_csWireDimPlace[34]);
GET_VALUE(_T("消防气体DimRadius"),g_csWireDimRadius[34]);
GET_VALUE(_T("消防气体DimNorm"), g_iWireDimNorm[34]);
GET_VALUE(_T("消防气体LineNum"), g_csWireLineNum[34]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防火灾设置"));
GET_VALUE(_T("消防火灾线宽"), g_nWireWidth[35]);
GET_VALUE(_T("消防火灾线形"), g_csLineType[35]);
GET_VALUE(_T("消防火灾回路"), g_csWireLoop[35]);
GET_VALUE(_T("消防火灾DimType"), g_csWireDimType[35]);
GET_VALUE(_T("消防火灾DimArea"), g_csWireDimArea[35]);
GET_VALUE(_T("消防火灾DimMode"), g_csWireDimMode[35]);
GET_VALUE(_T("消防火灾DimPlace"), g_csWireDimPlace[35]);
GET_VALUE(_T("消防火灾DimRadius"),g_csWireDimRadius[35]);
GET_VALUE(_T("消防火灾DimNorm"), g_iWireDimNorm[35]);
GET_VALUE(_T("消防火灾LineNum"), g_csWireLineNum[35]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("自定义导线设置"));
GET_VALUE(_T("需要自定义导线1"), g_bNeedUser[0]);
GET_VALUE(_T("需要自定义导线2"), g_bNeedUser[1]);
GET_VALUE(_T("需要自定义导线3"), g_bNeedUser[2]);
GET_VALUE(_T("需要自定义导线4"), g_bNeedUser[3]);
GET_VALUE(_T("需要自定义导线5"), g_bNeedUser[4]);
GET_VALUE(_T("需要自定义导线6"), g_bNeedUser[5]);
GET_VALUE(_T("需要自定义导线7"), g_bNeedUser[6]);
GET_VALUE(_T("需要自定义导线8"), g_bNeedUser[7]);
GET_VALUE(_T("需要自定义导线9"), g_bNeedUser[8]);
GET_VALUE(_T("需要自定义导线10"), g_bNeedUser[9]);
GET_VALUE(_T("需要自定义导线11"), g_bNeedUser[10]);
GET_VALUE(_T("需要自定义导线12"), g_bNeedUser[11]);
GET_VALUE(_T("需要自定义导线13"), g_bNeedUser[12]);
GET_VALUE(_T("需要自定义导线14"), g_bNeedUser[13]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[14]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[15]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[16]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[17]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[18]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[19]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[20]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[21]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[22]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[23]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[24]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[25]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[26]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[27]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[28]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[29]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[30]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[31]);
GET_VALUE(_T("需要自定义导线15"), g_bNeedUser[32]);
GET_VALUE(_T("自定义导线1名"), g_csUserName[0]);
GET_VALUE(_T("自定义导线2名"), g_csUserName[1]);
GET_VALUE(_T("自定义导线3名"), g_csUserName[2]);
GET_VALUE(_T("自定义导线4名"), g_csUserName[3]);
GET_VALUE(_T("自定义导线5名"), g_csUserName[4]);
GET_VALUE(_T("自定义导线6名"), g_csUserName[5]);
GET_VALUE(_T("自定义导线7名"), g_csUserName[6]);
GET_VALUE(_T("自定义导线8名"), g_csUserName[7]);
GET_VALUE(_T("自定义导线9名"), g_csUserName[8]);
GET_VALUE(_T("自定义导线10名"), g_csUserName[9]);
GET_VALUE(_T("自定义导线11名"), g_csUserName[10]);
GET_VALUE(_T("自定义导线12名"), g_csUserName[11]);
GET_VALUE(_T("自定义导线13名"), g_csUserName[12]);
GET_VALUE(_T("自定义导线14名"), g_csUserName[13]);
GET_VALUE(_T("自定义导线15名"), g_csUserName[14]);
CLOSE_SUB_DICT();
CLOSE_DICT();
//将得到的值写入注册表 确保设置被成功导入
CRegProperty regProp(GetRegLocation(), _T("TElecConfig"));
regProp.SetTopRootKey(HKEY_CURRENT_USER);
regProp.SetValue(_T("IsDrawWireDiv"), g_bDrawWireDiv);
regProp.SetValue(_T("CloseLnGrid"), g_bCloseLnGrid);
regProp.SetValue(_T("WireNumType"), g_iWireNumType);
regProp.SetValue(_T("Toolbar"), g_bToolbar);
regProp.SetValue(_T("WireDimScale"), g_nWireDimScale);
regProp.SetValue(_T("TextAttrStyle"),g_csTextAttr);
regProp.SetValue(_T("IsNeedChamAngle"),g_bIsChamAngle);
regProp.SetValue(_T("ChamferAngle"),g_dChamAngle);
regProp.SetValue(_T("BlkLineWidth"), g_dBlkThickWidth);
regProp.SetValue(_T("FeedLineIndex"), g_iPlanWireIndex);
regProp.SetValue(_T("EqBlkLength"), g_nEqBlkLength);
regProp.SetValue(_T("Eq2WallDist"), g_nEq2WallDist);
regProp.SetValue(_T("PointDia"), g_nPointDia);
regProp.SetValue(_T("TerminalDia"), g_nTerminalDia);
regProp.SetValue(_T("TextStyle_Dim"), g_csDimStyle);
regProp.SetValue(_T("WHScale_Dim"), g_nScaleDim);
regProp.SetValue(_T("TextHeight_Dim"), g_nDimHeight);
regProp.SetValue(_T("WireBreak"), g_iWireBreak);
regProp.SetValue(_T("WireTextType"), g_iWireTextType);
regProp.SetValue(_T("IsAskInsBlk"), g_bAskInsBlk);
regProp.SetValue(_T("IsJoin2Wire"), g_bJoin2Wire);
regProp.SetValue(_T("WireNumHeight"), g_nWireNumHeight);
regProp.SetValue(_T("RotateAttrib"), g_bRotateAttrib);
regProp.SetValue(_T("LastBlkMaxNum"), g_iLastBlkMaxNum);
regProp.SetValue(_T("WireAskInfo"), g_bWireAskInfo);
regProp.SetValue(_T("BusLineWidth"), g_dBusLineWidth);
regProp.SetValue(_T("SysLineWidth"), g_dSysLineWidth);
regProp.SetValue(_T("LineTypeChnShx"), g_csLineTypeChnShx);
regProp.SetValue(_T("LineTypeEngShx"), g_csLineTypeEngShx);
regProp.SetValue(_T("LineTypeHeight"), g_dLineTypeHeight);
regProp.SetValue(_T("LineTypeScale"), g_dLineTypeScale);
regProp.SetValue(_T("TextStyle_Chn"), g_csDimChnShx);
regProp.SetValue(_T("TextStyle_Eng"), g_csDimEngShx);
regProp.SetValue(_T("WHScale_Dim"), g_nScaleDim);
regProp.SetValue(_T("TextHeight_Dim"), g_nDimHeight);
regProp.SetValue(_T("TextAttrStyle_ChnShx"),g_csBlkAttrTypeChnShx);
regProp.SetValue(_T("TextAttrStyle_Eng"),g_csBlkAttrTypeEngShx);
regProp.SetValue(_T("IsLineTypeByLayer"), g_bLineTypeByLayer);
regProp.SetValue(_T("Wire1Loop"), g_csWireLoop[0]);
regProp.SetValue(_T("Wire2Loop"), g_csWireLoop[1]);
regProp.SetValue(_T("Wire3Loop"), g_csWireLoop[2]);
regProp.SetValue(_T("Wire4Loop"), g_csWireLoop[3]);
regProp.SetValue(_T("Wire5Loop"), g_csWireLoop[4]);
regProp.SetValue(_T("Wire6Loop"), g_csWireLoop[5]);
regProp.SetValue(_T("Wire7Loop"), g_csWireLoop[6]);
regProp.SetValue(_T("Wire8Loop"), g_csWireLoop[7]);
regProp.SetValue(_T("Wire9Loop"), g_csWireLoop[8]);
regProp.GetValue(_T("Wire10Loop"), g_csWireLoop[9]);
regProp.GetValue(_T("Wire11Loop"), g_csWireLoop[10]);
regProp.GetValue(_T("Wire12Loop"), g_csWireLoop[11]);
regProp.GetValue(_T("Wire13Loop"), g_csWireLoop[12]);
regProp.GetValue(_T("Wire14Loop"), g_csWireLoop[13]);
regProp.GetValue(_T("Wire15Loop"), g_csWireLoop[14]);
regProp.GetValue(_T("Wire16Loop"), g_csWireLoop[15]);
regProp.GetValue(_T("Wire17Loop"), g_csWireLoop[16]);
regProp.GetValue(_T("Wire18Loop"), g_csWireLoop[17]);
regProp.GetValue(_T("Wire19Loop"), g_csWireLoop[18]);
regProp.GetValue(_T("Wire20Loop"), g_csWireLoop[19]);
regProp.GetValue(_T("Wire21Loop"), g_csWireLoop[20]);
regProp.SetValue(_T("Wire1Width"), g_nWireWidth[0]);
regProp.SetValue(_T("Wire2Width"), g_nWireWidth[1]);
regProp.SetValue(_T("Wire3Width"), g_nWireWidth[2]);
regProp.SetValue(_T("Wire4Width"), g_nWireWidth[3]);
regProp.SetValue(_T("Wire5Width"), g_nWireWidth[4]);
regProp.SetValue(_T("Wire6Width"), g_nWireWidth[5]);
regProp.SetValue(_T("Wire7Width"), g_nWireWidth[6]);
regProp.SetValue(_T("Wire8Width"), g_nWireWidth[7]);
regProp.SetValue(_T("Wire9Width"), g_nWireWidth[8]);
regProp.SetValue(_T("Wire10Width"), g_nWireWidth[9]);
regProp.SetValue(_T("Wire11Width"), g_nWireWidth[10]);
regProp.SetValue(_T("Wire12Width"), g_nWireWidth[11]);
regProp.SetValue(_T("Wire13Width"), g_nWireWidth[12]);
regProp.SetValue(_T("Wire14Width"), g_nWireWidth[13]);
regProp.SetValue(_T("Wire15Width"), g_nWireWidth[14]);
regProp.SetValue(_T("Wire16Width"), g_nWireWidth[15]);
regProp.SetValue(_T("Wire17Width"), g_nWireWidth[16]);
regProp.SetValue(_T("Wire18Width"), g_nWireWidth[17]);
regProp.SetValue(_T("Wire19Width"), g_nWireWidth[18]);
regProp.SetValue(_T("Wire20Width"), g_nWireWidth[19]);
regProp.SetValue(_T("Wire21Width"), g_nWireWidth[20]);
regProp.SetValue(_T("Wire1DimType"), g_csWireDimType[0]);
regProp.SetValue(_T("Wire2DimType"), g_csWireDimType[1]);
regProp.SetValue(_T("Wire3DimType"), g_csWireDimType[2]);
regProp.SetValue(_T("Wire4DimType"), g_csWireDimType[3]);
regProp.SetValue(_T("Wire5DimType"), g_csWireDimType[4]);
regProp.SetValue(_T("Wire6DimType"), g_csWireDimType[5]);
regProp.SetValue(_T("Wire7DimType"), g_csWireDimType[6]);
regProp.SetValue(_T("Wire8DimType"), g_csWireDimType[7]);
regProp.SetValue(_T("Wire9DimType"), g_csWireDimType[8]);
regProp.GetValue(_T("Wire10DimType"), g_csWireDimType[9]);
regProp.GetValue(_T("Wire11DimType"), g_csWireDimType[10]);
regProp.GetValue(_T("Wire12DimType"), g_csWireDimType[11]);
regProp.GetValue(_T("Wire13DimType"), g_csWireDimType[12]);
regProp.GetValue(_T("Wire14DimType"), g_csWireDimType[13]);
regProp.GetValue(_T("Wire15DimType"), g_csWireDimType[14]);
regProp.GetValue(_T("Wire16DimType"), g_csWireDimType[15]);
regProp.GetValue(_T("Wire17DimType"), g_csWireDimType[16]);
regProp.GetValue(_T("Wire18DimType"), g_csWireDimType[17]);
regProp.GetValue(_T("Wire19DimType"), g_csWireDimType[18]);
regProp.GetValue(_T("Wire20DimType"), g_csWireDimType[19]);
regProp.GetValue(_T("Wire21DimType"), g_csWireDimType[20]);
regProp.SetValue(_T("Wire1DimArea"), g_csWireDimArea[0]);
regProp.SetValue(_T("Wire2DimArea"), g_csWireDimArea[1]);
regProp.SetValue(_T("Wire3DimArea"), g_csWireDimArea[2]);
regProp.SetValue(_T("Wire4DimArea"), g_csWireDimArea[3]);
regProp.SetValue(_T("Wire5DimArea"), g_csWireDimArea[4]);
regProp.SetValue(_T("Wire6DimArea"), g_csWireDimArea[5]);
regProp.SetValue(_T("Wire7DimArea"), g_csWireDimArea[6]);
regProp.SetValue(_T("Wire8DimArea"), g_csWireDimArea[7]);
regProp.SetValue(_T("Wire9DimArea"), g_csWireDimArea[8]);
regProp.GetValue(_T("Wire10DimArea"), g_csWireDimArea[9]);
regProp.GetValue(_T("Wire11DimArea"), g_csWireDimArea[10]);
regProp.GetValue(_T("Wire12DimArea"), g_csWireDimArea[11]);
regProp.GetValue(_T("Wire13DimArea"), g_csWireDimArea[12]);
regProp.GetValue(_T("Wire14DimArea"), g_csWireDimArea[13]);
regProp.GetValue(_T("Wire15DimArea"), g_csWireDimArea[14]);
regProp.GetValue(_T("Wire16DimArea"), g_csWireDimArea[15]);
regProp.GetValue(_T("Wire17DimArea"), g_csWireDimArea[16]);
regProp.GetValue(_T("Wire18DimArea"), g_csWireDimArea[17]);
regProp.GetValue(_T("Wire19DimArea"), g_csWireDimArea[18]);
regProp.GetValue(_T("Wire20DimArea"), g_csWireDimArea[19]);
regProp.GetValue(_T("Wire21DimArea"), g_csWireDimArea[20]);
regProp.SetValue(_T("Wire1DimMode"), g_csWireDimMode[0]);
regProp.SetValue(_T("Wire2DimMode"), g_csWireDimMode[1]);
regProp.SetValue(_T("Wire3DimMode"), g_csWireDimMode[2]);
regProp.SetValue(_T("Wire4DimMode"), g_csWireDimMode[3]);
regProp.SetValue(_T("Wire5DimMode"), g_csWireDimMode[4]);
regProp.SetValue(_T("Wire6DimMode"), g_csWireDimMode[5]);
regProp.SetValue(_T("Wire7DimMode"), g_csWireDimMode[6]);
regProp.SetValue(_T("Wire8DimMode"), g_csWireDimMode[7]);
regProp.SetValue(_T("Wire9DimMode"), g_csWireDimMode[8]);
regProp.GetValue(_T("Wire10DimMode"), g_csWireDimMode[9]);
regProp.GetValue(_T("Wire11DimMode"), g_csWireDimMode[10]);
regProp.GetValue(_T("Wire12DimMode"), g_csWireDimMode[11]);
regProp.GetValue(_T("Wire13DimMode"), g_csWireDimMode[12]);
regProp.GetValue(_T("Wire14DimMode"), g_csWireDimMode[13]);
regProp.GetValue(_T("Wire15DimMode"), g_csWireDimMode[14]);
regProp.GetValue(_T("Wire16DimMode"), g_csWireDimMode[15]);
regProp.GetValue(_T("Wire17DimMode"), g_csWireDimMode[16]);
regProp.GetValue(_T("Wire18DimMode"), g_csWireDimMode[17]);
regProp.GetValue(_T("Wire19DimMode"), g_csWireDimMode[18]);
regProp.GetValue(_T("Wire20DimMode"), g_csWireDimMode[19]);
regProp.GetValue(_T("Wire21DimMode"), g_csWireDimMode[20]);
regProp.SetValue(_T("Wire1DimPlace"), g_csWireDimPlace[0]);
regProp.SetValue(_T("Wire2DimPlace"), g_csWireDimPlace[1]);
regProp.SetValue(_T("Wire3DimPlace"), g_csWireDimPlace[2]);
regProp.SetValue(_T("Wire4DimPlace"), g_csWireDimPlace[3]);
regProp.SetValue(_T("Wire5DimPlace"), g_csWireDimPlace[4]);
regProp.SetValue(_T("Wire6DimPlace"), g_csWireDimPlace[5]);
regProp.SetValue(_T("Wire7DimPlace"), g_csWireDimPlace[6]);
regProp.SetValue(_T("Wire8DimPlace"), g_csWireDimPlace[7]);
regProp.SetValue(_T("Wire9DimPlace"), g_csWireDimPlace[8]);
regProp.GetValue(_T("Wire10DimPlace"), g_csWireDimPlace[9]);
regProp.GetValue(_T("Wire11DimPlace"), g_csWireDimPlace[10]);
regProp.GetValue(_T("Wire12DimPlace"), g_csWireDimPlace[11]);
regProp.GetValue(_T("Wire13DimPlace"), g_csWireDimPlace[12]);
regProp.GetValue(_T("Wire14DimPlace"), g_csWireDimPlace[13]);
regProp.GetValue(_T("Wire15DimPlace"), g_csWireDimPlace[14]);
regProp.GetValue(_T("Wire16DimPlace"), g_csWireDimPlace[15]);
regProp.GetValue(_T("Wire17DimPlace"), g_csWireDimPlace[16]);
regProp.GetValue(_T("Wire18DimPlace"), g_csWireDimPlace[17]);
regProp.GetValue(_T("Wire19DimPlace"), g_csWireDimPlace[18]);
regProp.GetValue(_T("Wire20DimPlace"), g_csWireDimPlace[19]);
regProp.GetValue(_T("Wire21DimPlace"), g_csWireDimPlace[20]);
regProp.SetValue(_T("Wire1DimRadius"), g_csWireDimRadius[0]);
regProp.SetValue(_T("Wire2DimRadius"), g_csWireDimRadius[1]);
regProp.SetValue(_T("Wire3DimRadius"), g_csWireDimRadius[2]);
regProp.SetValue(_T("Wire4DimRadius"), g_csWireDimRadius[3]);
regProp.SetValue(_T("Wire5DimRadius"), g_csWireDimRadius[4]);
regProp.SetValue(_T("Wire6DimRadius"), g_csWireDimRadius[5]);
regProp.SetValue(_T("Wire7DimRadius"), g_csWireDimRadius[6]);
regProp.SetValue(_T("Wire8DimRadius"), g_csWireDimRadius[7]);
regProp.SetValue(_T("Wire9DimRadius"), g_csWireDimRadius[8]);
regProp.GetValue(_T("Wire10DimRadius"), g_csWireDimRadius[9]);
regProp.GetValue(_T("Wire11DimRadius"), g_csWireDimRadius[10]);
regProp.GetValue(_T("Wire12DimRadius"), g_csWireDimRadius[11]);
regProp.GetValue(_T("Wire13DimRadius"), g_csWireDimRadius[12]);
regProp.GetValue(_T("Wire14DimRadius"), g_csWireDimRadius[13]);
regProp.GetValue(_T("Wire15DimRadius"), g_csWireDimRadius[14]);
regProp.GetValue(_T("Wire16DimRadius"), g_csWireDimRadius[15]);
regProp.GetValue(_T("Wire17DimRadius"), g_csWireDimRadius[16]);
regProp.GetValue(_T("Wire18DimRadius"), g_csWireDimRadius[17]);
regProp.GetValue(_T("Wire19DimRadius"), g_csWireDimRadius[18]);
regProp.GetValue(_T("Wire20DimRadius"), g_csWireDimRadius[19]);
regProp.GetValue(_T("Wire21DimRadius"), g_csWireDimRadius[20]);
regProp.SetValue(_T("Wire1DimNorm"), g_iWireDimNorm[0]);
regProp.SetValue(_T("Wire2DimNorm"), g_iWireDimNorm[1]);
regProp.SetValue(_T("Wire3DimNorm"), g_iWireDimNorm[2]);
regProp.SetValue(_T("Wire4DimNorm"), g_iWireDimNorm[3]);
regProp.SetValue(_T("Wire5DimNorm"), g_iWireDimNorm[4]);
regProp.SetValue(_T("Wire6DimNorm"), g_iWireDimNorm[5]);
regProp.SetValue(_T("Wire7DimNorm"), g_iWireDimNorm[6]);
regProp.SetValue(_T("Wire8DimNorm"), g_iWireDimNorm[7]);
regProp.SetValue(_T("Wire9DimNorm"), g_iWireDimNorm[8]);
regProp.GetValue(_T("Wire10DimNorm"), g_iWireDimNorm[9]);
regProp.GetValue(_T("Wire11DimNorm"), g_iWireDimNorm[10]);
regProp.GetValue(_T("Wire12DimNorm"), g_iWireDimNorm[11]);
regProp.GetValue(_T("Wire13DimNorm"), g_iWireDimNorm[12]);
regProp.GetValue(_T("Wire14DimNorm"), g_iWireDimNorm[13]);
regProp.GetValue(_T("Wire15DimNorm"), g_iWireDimNorm[14]);
regProp.GetValue(_T("Wire16DimNorm"), g_iWireDimNorm[15]);
regProp.GetValue(_T("Wire17DimNorm"), g_iWireDimNorm[16]);
regProp.GetValue(_T("Wire18DimNorm"), g_iWireDimNorm[17]);
regProp.GetValue(_T("Wire19DimNorm"), g_iWireDimNorm[18]);
regProp.GetValue(_T("Wire20DimNorm"), g_iWireDimNorm[19]);
regProp.GetValue(_T("Wire21DimNorm"), g_iWireDimNorm[20]);
regProp.SetValue(_T("GourdWireLineType"), g_iGourdWireLineType);
regProp.SetValue(_T("LightingWireLineType"), g_iLightingWireLineType);
}
void CSaveSettingDlg::SaveTelSetting(CString csFileIni)
{
WDict dict;
dict.ReadFile(csFileIni);
OPEN_DICT(dict);
OPEN_SUB_DICT(_T("平面图设置"));
SET_VALUE(_T("设备块尺寸"), g_nEqBlkLength);
SET_VALUE(_T("设备至墙距离"), g_nEq2WallDist);
SET_VALUE(_T("管线打断间距"), g_iWireBreak);
SET_VALUE(_T("高频图块个数"), g_iLastBlkMaxNum);
SET_VALUE(_T("旋转属性字"), g_bRotateAttrib);
SET_VALUE(_T("沿线文字"), g_iWireTextType);
SET_VALUE(_T("插块前选择已有块"),g_bAskInsBlk);
SET_VALUE(_T("块属性文字"),g_csTextAttr);
SET_VALUE(_T("图块线宽"),g_dBlkThickWidth);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("系统图设置"));
SET_VALUE(_T("连接点直径"), g_nPointDia);
SET_VALUE(_T("端子直径"), g_nTerminalDia);
SET_VALUE(_T("系统导线带分割线"), g_bDrawWireDiv);
SET_VALUE(_T("关闭分割线层"), g_bCloseLnGrid);
SET_VALUE(_T("布置导线输入导线信息"),g_bWireAskInfo);
SET_VALUE(_T("相邻导线自动连接"),g_bJoin2Wire);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("标导线数设置"));
SET_VALUE(_T("标导线数样式"), g_iWireNumType);
SET_VALUE(_T("标导线数字高"), g_nWireNumHeight);
SET_VALUE(_T("标导线数宽高比"),g_nWireDimScale);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("其它设置"));
SET_VALUE(_T("工具条状态"), g_bToolbar);
SET_VALUE(_T("选择预览"), g_bEnableSelectPreview);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("电气标注文字设置"));
SET_VALUE(_T("电气标注中文字体"), g_csDimChnShx);
SET_VALUE(_T("电气标注西文字体"), g_csDimEngShx);
SET_VALUE(_T("电气标注字高"), g_nDimHeight);
SET_VALUE(_T("电气标注宽高比"), g_nScaleDim);
SET_VALUE(_T("电气文字属性中文字体"),g_csBlkAttrTypeChnShx);
SET_VALUE(_T("电气文字属性英文字体"),g_csBlkAttrTypeEngShx);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("线型文字设置"));
SET_VALUE(_T("线型文字中文字体"), g_csLineTypeChnShx);
SET_VALUE(_T("线型文字西文字体"), g_csLineTypeEngShx);
SET_VALUE(_T("线型文字字高"), g_dLineTypeHeight);
SET_VALUE(_T("线型文字宽高比"), g_dLineTypeScale);
SET_VALUE(_T("块属性字中文字体"), g_csBlkAttrTypeChnShx);
SET_VALUE(_T("块属性字英文字体"), g_csBlkAttrTypeEngShx);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("其他导线设置"));
SET_VALUE(_T("系统母线线宽"), g_dBusLineWidth);
SET_VALUE(_T("系统导线线宽"), g_dSysLineWidth);
SET_VALUE(_T("避雷导线线形"), g_iLightingWireLineType);
SET_VALUE(_T("接地导线线形"), g_iGourdWireLineType);
SET_VALUE(_T("导线线型随层"), g_bLineTypeByLayer);
SET_VALUE(_T("是否倒角"), g_bIsChamAngle);
SET_VALUE(_T("倒角半径"), g_dChamAngle);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("照明导线设置"));
SET_VALUE(_T("照明导线线宽"), g_nWireWidth[0]);
SET_VALUE(_T("照明导线线形"), g_csLineType[0]);
SET_VALUE(_T("照明导线回路"), g_csWireLoop[0]);
SET_VALUE(_T("照明导线DimType"), g_csWireDimType[0]);
SET_VALUE(_T("照明导线DimArea"), g_csWireDimArea[0]);
SET_VALUE(_T("照明导线DimMode"), g_csWireDimMode[0]);
SET_VALUE(_T("照明导线DimPlace"), g_csWireDimPlace[0]);
SET_VALUE(_T("照明导线DimRadius"),g_csWireDimRadius[0]);
SET_VALUE(_T("照明导线DimNorm"), g_iWireDimNorm[0]);
SET_VALUE(_T("照明导线LineNum"), g_csWireLineNum[0]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("动力导线设置"));
SET_VALUE(_T("动力导线线宽"), g_nWireWidth[1]);
SET_VALUE(_T("动力导线线形"), g_csLineType[1]);
SET_VALUE(_T("动力导线回路"), g_csWireLoop[1]);
SET_VALUE(_T("动力导线DimType"), g_csWireDimType[1]);
SET_VALUE(_T("动力导线DimArea"), g_csWireDimArea[1]);
SET_VALUE(_T("动力导线DimMode"), g_csWireDimMode[1]);
SET_VALUE(_T("动力导线DimPlace"), g_csWireDimPlace[1]);
SET_VALUE(_T("动力导线DimRadius"),g_csWireDimRadius[1]);
SET_VALUE(_T("动力导线DimNorm"), g_iWireDimNorm[1]);
SET_VALUE(_T("动力导线LineNum"), g_csWireLineNum[1]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("通讯导线设置"));
SET_VALUE(_T("通讯导线线宽"), g_nWireWidth[2]);
SET_VALUE(_T("通讯导线线形"), g_csLineType[2]);
SET_VALUE(_T("通讯导线回路"), g_csWireLoop[2]);
SET_VALUE(_T("通讯导线DimType"), g_csWireDimType[2]);
SET_VALUE(_T("通讯导线DimArea"), g_csWireDimArea[2]);
SET_VALUE(_T("通讯导线DimMode"), g_csWireDimMode[2]);
SET_VALUE(_T("通讯导线DimPlace"), g_csWireDimPlace[2]);
SET_VALUE(_T("通讯导线DimRadius"),g_csWireDimRadius[2]);
SET_VALUE(_T("通讯导线DimNorm"), g_iWireDimNorm[2]);
SET_VALUE(_T("通讯导线LineNum"), g_csWireLineNum[2]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防导线设置"));
SET_VALUE(_T("消防导线线宽"), g_nWireWidth[3]);
SET_VALUE(_T("消防导线线形"), g_csLineType[3]);
SET_VALUE(_T("消防导线回路"), g_csWireLoop[3]);
SET_VALUE(_T("消防导线DimType"), g_csWireDimType[3]);
SET_VALUE(_T("消防导线DimArea"), g_csWireDimArea[3]);
SET_VALUE(_T("消防导线DimMode"), g_csWireDimMode[3]);
SET_VALUE(_T("消防导线DimPlace"), g_csWireDimPlace[3]);
SET_VALUE(_T("消防导线DimRadius"),g_csWireDimRadius[3]);
SET_VALUE(_T("消防导线DimNorm"), g_iWireDimNorm[3]);
SET_VALUE(_T("消防导线LineNum"), g_csWireLineNum[3]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("应急导线设置"));
SET_VALUE(_T("应急导线线宽"), g_nWireWidth[4]);
SET_VALUE(_T("应急导线线形"), g_csLineType[4]);
SET_VALUE(_T("应急导线回路"), g_csWireLoop[4]);
SET_VALUE(_T("应急导线DimType"), g_csWireDimType[4]);
SET_VALUE(_T("应急导线DimArea"), g_csWireDimArea[4]);
SET_VALUE(_T("应急导线DimMode"), g_csWireDimMode[4]);
SET_VALUE(_T("应急导线DimPlace"), g_csWireDimPlace[4]);
SET_VALUE(_T("应急导线DimRadius"),g_csWireDimRadius[4]);
SET_VALUE(_T("应急导线DimNorm"), g_iWireDimNorm[4]);
SET_VALUE(_T("应急导线LineNum"), g_csWireLineNum[4]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("火警电话设置"));
SET_VALUE(_T("火警电话线宽"), g_nWireWidth[5]);
SET_VALUE(_T("火警电话线形"), g_csLineType[5]);
SET_VALUE(_T("火警电话回路"), g_csWireLoop[5]);
SET_VALUE(_T("火警电话DimType"), g_csWireDimType[5]);
SET_VALUE(_T("火警电话DimArea"), g_csWireDimArea[5]);
SET_VALUE(_T("火警电话DimMode"), g_csWireDimMode[5]);
SET_VALUE(_T("火警电话DimPlace"), g_csWireDimPlace[5]);
SET_VALUE(_T("火警电话DimRadius"),g_csWireDimRadius[5]);
SET_VALUE(_T("火警电话DimNorm"), g_iWireDimNorm[5]);
SET_VALUE(_T("火警电话LineNum"), g_csWireLineNum[5]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("火警广播设置"));
SET_VALUE(_T("火警广播线宽"), g_nWireWidth[6]);
SET_VALUE(_T("火警广播线形"), g_csLineType[6]);
SET_VALUE(_T("火警广播回路"), g_csWireLoop[6]);
SET_VALUE(_T("火警广播DimType"), g_csWireDimType[6]);
SET_VALUE(_T("火警广播DimArea"), g_csWireDimArea[6]);
SET_VALUE(_T("火警广播DimMode"), g_csWireDimMode[6]);
SET_VALUE(_T("火警广播DimPlace"), g_csWireDimPlace[6]);
SET_VALUE(_T("火警广播DimRadius"),g_csWireDimRadius[6]);
SET_VALUE(_T("火警广播DimNorm"), g_iWireDimNorm[6]);
SET_VALUE(_T("火警广播LineNum"), g_csWireLineNum[6]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("火警控制设置"));
SET_VALUE(_T("火警控制线宽"), g_nWireWidth[7]);
SET_VALUE(_T("火警控制线形"), g_csLineType[7]);
SET_VALUE(_T("火警控制回路"), g_csWireLoop[7]);
SET_VALUE(_T("火警控制DimType"), g_csWireDimType[7]);
SET_VALUE(_T("火警控制DimArea"), g_csWireDimArea[7]);
SET_VALUE(_T("火警控制DimMode"), g_csWireDimMode[7]);
SET_VALUE(_T("火警控制DimPlace"), g_csWireDimPlace[7]);
SET_VALUE(_T("火警控制DimRadius"),g_csWireDimRadius[7]);
SET_VALUE(_T("火警控制DimNorm"), g_iWireDimNorm[7]);
SET_VALUE(_T("火警控制LineNum"), g_csWireLineNum[7]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("火警电源设置"));
SET_VALUE(_T("火警电源线宽"), g_nWireWidth[8]);
SET_VALUE(_T("火警电源线形"), g_csLineType[8]);
SET_VALUE(_T("火警电源回路"), g_csWireLoop[8]);
SET_VALUE(_T("火警电源DimType"), g_csWireDimType[8]);
SET_VALUE(_T("火警电源DimArea"), g_csWireDimArea[8]);
SET_VALUE(_T("火警电源DimMode"), g_csWireDimMode[8]);
SET_VALUE(_T("火警电源DimPlace"), g_csWireDimPlace[8]);
SET_VALUE(_T("火警电源DimRadius"),g_csWireDimRadius[8]);
SET_VALUE(_T("火警电源DimNorm"), g_iWireDimNorm[8]);
SET_VALUE(_T("火警电源LineNum"), g_csWireLineNum[8]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("电视导线设置"));
SET_VALUE(_T("电视导线线宽"), g_nWireWidth[9]);
SET_VALUE(_T("电视导线线形"), g_csLineType[9]);
SET_VALUE(_T("电视导线回路"), g_csWireLoop[9]);
SET_VALUE(_T("电视导线DimType"), g_csWireDimType[9]);
SET_VALUE(_T("电视导线DimArea"), g_csWireDimArea[9]);
SET_VALUE(_T("电视导线DimMode"), g_csWireDimMode[9]);
SET_VALUE(_T("电视导线DimPlace"), g_csWireDimPlace[9]);
SET_VALUE(_T("电视导线DimRadius"),g_csWireDimRadius[9]);
SET_VALUE(_T("电视导线DimNorm"), g_iWireDimNorm[9]);
SET_VALUE(_T("电视导线LineNum"), g_csWireLineNum[9]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("网络导线设置"));
SET_VALUE(_T("网络导线线宽"), g_nWireWidth[10]);
SET_VALUE(_T("网络导线线形"), g_csLineType[10]);
SET_VALUE(_T("网络导线回路"), g_csWireLoop[10]);
SET_VALUE(_T("网络导线DimType"), g_csWireDimType[10]);
SET_VALUE(_T("网络导线DimArea"), g_csWireDimArea[10]);
SET_VALUE(_T("网络导线DimMode"), g_csWireDimMode[10]);
SET_VALUE(_T("网络导线DimPlace"), g_csWireDimPlace[10]);
SET_VALUE(_T("网络导线DimRadius"),g_csWireDimRadius[10]);
SET_VALUE(_T("网络导线DimNorm"), g_iWireDimNorm[10]);
SET_VALUE(_T("网络导线LineNum"), g_csWireLineNum[10]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("动力控制设置"));
SET_VALUE(_T("动力控制线宽"), g_nWireWidth[11]);
SET_VALUE(_T("动力控制线形"), g_csLineType[11]);
SET_VALUE(_T("动力控制回路"), g_csWireLoop[11]);
SET_VALUE(_T("动力控制DimType"), g_csWireDimType[11]);
SET_VALUE(_T("动力控制DimArea"), g_csWireDimArea[11]);
SET_VALUE(_T("动力控制DimMode"), g_csWireDimMode[11]);
SET_VALUE(_T("动力控制DimPlace"), g_csWireDimPlace[11]);
SET_VALUE(_T("动力控制DimRadius"),g_csWireDimRadius[11]);
SET_VALUE(_T("动力控制DimNorm"), g_iWireDimNorm[11]);
SET_VALUE(_T("动力控制LineNum"), g_csWireLineNum[11]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("动力母线设置"));
SET_VALUE(_T("动力母线线宽"), g_nWireWidth[12]);
SET_VALUE(_T("动力母线线形"), g_csLineType[12]);
SET_VALUE(_T("动力母线回路"), g_csWireLoop[12]);
SET_VALUE(_T("动力母线DimType"), g_csWireDimType[12]);
SET_VALUE(_T("动力母线DimArea"), g_csWireDimArea[12]);
SET_VALUE(_T("动力母线DimMode"), g_csWireDimMode[12]);
SET_VALUE(_T("动力母线DimPlace"), g_csWireDimPlace[12]);
SET_VALUE(_T("动力母线DimRadius"),g_csWireDimRadius[12]);
SET_VALUE(_T("动力母线DimNorm"), g_iWireDimNorm[12]);
SET_VALUE(_T("动力母线LineNum"), g_csWireLineNum[12]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电信号设置"));
SET_VALUE(_T("弱电信号线宽"), g_nWireWidth[13]);
SET_VALUE(_T("弱电信号线形"), g_csLineType[13]);
SET_VALUE(_T("弱电信号回路"), g_csWireLoop[13]);
SET_VALUE(_T("弱电信号DimType"), g_csWireDimType[13]);
SET_VALUE(_T("弱电信号DimArea"), g_csWireDimArea[13]);
SET_VALUE(_T("弱电信号DimMode"), g_csWireDimMode[13]);
SET_VALUE(_T("弱电信号DimPlace"), g_csWireDimPlace[13]);
SET_VALUE(_T("弱电信号DimRadius"),g_csWireDimRadius[13]);
SET_VALUE(_T("弱电信号DimNorm"), g_iWireDimNorm[13]);
SET_VALUE(_T("弱电信号LineNum"), g_csWireLineNum[13]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电安防设置"));
SET_VALUE(_T("弱电安防线宽"), g_nWireWidth[14]);
SET_VALUE(_T("弱电安防线形"), g_csLineType[14]);
SET_VALUE(_T("弱电安防回路"), g_csWireLoop[14]);
SET_VALUE(_T("弱电安防DimType"), g_csWireDimType[14]);
SET_VALUE(_T("弱电安防DimArea"), g_csWireDimArea[14]);
SET_VALUE(_T("弱电安防DimMode"), g_csWireDimMode[14]);
SET_VALUE(_T("弱电安防DimPlace"), g_csWireDimPlace[14]);
SET_VALUE(_T("弱电安防DimRadius"),g_csWireDimRadius[14]);
SET_VALUE(_T("弱电安防DimNorm"), g_iWireDimNorm[14]);
SET_VALUE(_T("弱电安防LineNum"), g_csWireLineNum[14]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电广播设置"));
SET_VALUE(_T("弱电广播线宽"), g_nWireWidth[15]);
SET_VALUE(_T("弱电广播线形"), g_csLineType[15]);
SET_VALUE(_T("弱电广播回路"), g_csWireLoop[15]);
SET_VALUE(_T("弱电广播DimType"), g_csWireDimType[15]);
SET_VALUE(_T("弱电广播DimArea"), g_csWireDimArea[15]);
SET_VALUE(_T("弱电广播DimMode"), g_csWireDimMode[15]);
SET_VALUE(_T("弱电广播DimPlace"), g_csWireDimPlace[15]);
SET_VALUE(_T("弱电广播DimRadius"),g_csWireDimRadius[15]);
SET_VALUE(_T("弱电广播DimNorm"), g_iWireDimNorm[15]);
SET_VALUE(_T("弱电广播LineNum"), g_csWireLineNum[15]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防启泵设置"));
SET_VALUE(_T("消防启泵线宽"), g_nWireWidth[16]);
SET_VALUE(_T("消防启泵线形"), g_csLineType[16]);
SET_VALUE(_T("消防启泵回路"), g_csWireLoop[16]);
SET_VALUE(_T("消防启泵DimType"), g_csWireDimType[16]);
SET_VALUE(_T("消防启泵DimArea"), g_csWireDimArea[16]);
SET_VALUE(_T("消防启泵DimMode"), g_csWireDimMode[16]);
SET_VALUE(_T("消防启泵DimPlace"), g_csWireDimPlace[16]);
SET_VALUE(_T("消防启泵DimRadius"),g_csWireDimRadius[16]);
SET_VALUE(_T("消防启泵DimNorm"), g_iWireDimNorm[16]);
SET_VALUE(_T("消防启泵LineNum"), g_csWireLineNum[16]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("插座导线设置"));
SET_VALUE(_T("插座导线线宽"), g_nWireWidth[17]);
SET_VALUE(_T("插座导线线形"), g_csLineType[17]);
SET_VALUE(_T("插座导线回路"), g_csWireLoop[17]);
SET_VALUE(_T("插座导线DimType"), g_csWireDimType[17]);
SET_VALUE(_T("插座导线DimArea"), g_csWireDimArea[17]);
SET_VALUE(_T("插座导线DimMode"), g_csWireDimMode[17]);
SET_VALUE(_T("插座导线DimPlace"), g_csWireDimPlace[17]);
SET_VALUE(_T("插座导线DimRadius"),g_csWireDimRadius[17]);
SET_VALUE(_T("插座导线DimNorm"), g_iWireDimNorm[17]);
SET_VALUE(_T("插座导线LineNum"), g_csWireLineNum[17]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电控制设置"));
SET_VALUE(_T("弱电控制线宽"), g_nWireWidth[18]);
SET_VALUE(_T("弱电控制线形"), g_csLineType[18]);
SET_VALUE(_T("弱电控制回路"), g_csWireLoop[18]);
SET_VALUE(_T("弱电控制DimType"), g_csWireDimType[18]);
SET_VALUE(_T("弱电控制DimArea"), g_csWireDimArea[18]);
SET_VALUE(_T("弱电控制DimMode"), g_csWireDimMode[18]);
SET_VALUE(_T("弱电控制DimPlace"), g_csWireDimPlace[18]);
SET_VALUE(_T("弱电控制DimRadius"),g_csWireDimRadius[18]);
SET_VALUE(_T("弱电控制DimNorm"), g_iWireDimNorm[18]);
SET_VALUE(_T("弱电控制LineNum"), g_csWireLineNum[18]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电电话设置"));
SET_VALUE(_T("弱电电话线宽"), g_nWireWidth[19]);
SET_VALUE(_T("弱电电话线形"), g_csLineType[19]);
SET_VALUE(_T("弱电电话回路"), g_csWireLoop[19]);
SET_VALUE(_T("弱电电话DimType"), g_csWireDimType[19]);
SET_VALUE(_T("弱电电话DimArea"), g_csWireDimArea[19]);
SET_VALUE(_T("弱电电话DimMode"), g_csWireDimMode[19]);
SET_VALUE(_T("弱电电话DimPlace"), g_csWireDimPlace[19]);
SET_VALUE(_T("弱电电话DimRadius"),g_csWireDimRadius[19]);
SET_VALUE(_T("弱电电话DimNorm"), g_iWireDimNorm[19]);
SET_VALUE(_T("弱电电话LineNum"), g_csWireLineNum[19]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电综合设置"));
SET_VALUE(_T("弱电综合线宽"), g_nWireWidth[20]);
SET_VALUE(_T("弱电综合线形"), g_csLineType[20]);
SET_VALUE(_T("弱电综合回路"), g_csWireLoop[20]);
SET_VALUE(_T("弱电综合DimType"), g_csWireDimType[20]);
SET_VALUE(_T("弱电综合DimArea"), g_csWireDimArea[20]);
SET_VALUE(_T("弱电综合DimMode"), g_csWireDimMode[20]);
SET_VALUE(_T("弱电综合DimPlace"), g_csWireDimPlace[20]);
SET_VALUE(_T("弱电综合DimRadius"),g_csWireDimRadius[20]);
SET_VALUE(_T("弱电综合DimNorm"), g_iWireDimNorm[20]);
SET_VALUE(_T("弱电综合LineNum"), g_csWireLineNum[20]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("光缆设置"));
SET_VALUE(_T("光缆线宽"), g_nWireWidth[21]);
SET_VALUE(_T("光缆线形"), g_csLineType[21]);
SET_VALUE(_T("光缆回路"), g_csWireLoop[21]);
SET_VALUE(_T("光缆DimType"), g_csWireDimType[21]);
SET_VALUE(_T("光缆DimArea"), g_csWireDimArea[21]);
SET_VALUE(_T("光缆DimMode"), g_csWireDimMode[21]);
SET_VALUE(_T("光缆DimPlace"), g_csWireDimPlace[21]);
SET_VALUE(_T("光缆DimRadius"),g_csWireDimRadius[21]);
SET_VALUE(_T("光缆DimNorm"), g_iWireDimNorm[21]);
SET_VALUE(_T("光缆LineNum"), g_csWireLineNum[21]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("接闪线设置"));
SET_VALUE(_T("接闪线线宽"), g_nWireWidth[22]);
SET_VALUE(_T("接闪线线形"), g_csLineType[22]);
SET_VALUE(_T("接闪线回路"), g_csWireLoop[22]);
SET_VALUE(_T("接闪线DimType"), g_csWireDimType[22]);
SET_VALUE(_T("接闪线DimArea"), g_csWireDimArea[22]);
SET_VALUE(_T("接闪线DimMode"), g_csWireDimMode[22]);
SET_VALUE(_T("接闪线DimPlace"), g_csWireDimPlace[22]);
SET_VALUE(_T("接闪线DimRadius"),g_csWireDimRadius[22]);
SET_VALUE(_T("接闪线DimNorm"), g_iWireDimNorm[22]);
SET_VALUE(_T("接闪线LineNum"), g_csWireLineNum[22]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("接地线设置"));
SET_VALUE(_T("接地线线宽"), g_nWireWidth[23]);
SET_VALUE(_T("接地线线形"), g_csLineType[23]);
SET_VALUE(_T("接地线回路"), g_csWireLoop[23]);
SET_VALUE(_T("接地线DimType"), g_csWireDimType[23]);
SET_VALUE(_T("接地线DimArea"), g_csWireDimArea[23]);
SET_VALUE(_T("接地线DimMode"), g_csWireDimMode[23]);
SET_VALUE(_T("接地线DimPlace"), g_csWireDimPlace[23]);
SET_VALUE(_T("接地线DimRadius"),g_csWireDimRadius[23]);
SET_VALUE(_T("接地线DimNorm"), g_iWireDimNorm[23]);
SET_VALUE(_T("接地线LineNum"), g_csWireLineNum[23]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电其它设置"));
SET_VALUE(_T("弱电其它线宽"), g_nWireWidth[24]);
SET_VALUE(_T("弱电其它线形"), g_csLineType[24]);
SET_VALUE(_T("弱电其它回路"), g_csWireLoop[24]);
SET_VALUE(_T("弱电其它DimType"), g_csWireDimType[24]);
SET_VALUE(_T("弱电其它DimArea"), g_csWireDimArea[24]);
SET_VALUE(_T("弱电其它DimMode"), g_csWireDimMode[24]);
SET_VALUE(_T("弱电其它DimPlace"), g_csWireDimPlace[24]);
SET_VALUE(_T("弱电其它DimRadius"),g_csWireDimRadius[24]);
SET_VALUE(_T("弱电其它DimNorm"), g_iWireDimNorm[24]);
SET_VALUE(_T("弱电其它LineNum"), g_csWireLineNum[24]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电视频设置"));
SET_VALUE(_T("弱电视频线宽"), g_nWireWidth[25]);
SET_VALUE(_T("弱电视频线形"), g_csLineType[25]);
SET_VALUE(_T("弱电视频回路"), g_csWireLoop[25]);
SET_VALUE(_T("弱电视频DimType"), g_csWireDimType[25]);
SET_VALUE(_T("弱电视频DimArea"), g_csWireDimArea[25]);
SET_VALUE(_T("弱电视频DimMode"), g_csWireDimMode[25]);
SET_VALUE(_T("弱电视频DimPlace"), g_csWireDimPlace[25]);
SET_VALUE(_T("弱电视频DimRadius"),g_csWireDimRadius[25]);
SET_VALUE(_T("弱电视频DimNorm"), g_iWireDimNorm[25]);
SET_VALUE(_T("弱电视频LineNum"), g_csWireLineNum[25]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电会议设置"));
SET_VALUE(_T("弱电会议线宽"), g_nWireWidth[26]);
SET_VALUE(_T("弱电会议线形"), g_csLineType[26]);
SET_VALUE(_T("弱电会议回路"), g_csWireLoop[26]);
SET_VALUE(_T("弱电会议DimType"), g_csWireDimType[26]);
SET_VALUE(_T("弱电会议DimArea"), g_csWireDimArea[26]);
SET_VALUE(_T("弱电会议DimMode"), g_csWireDimMode[26]);
SET_VALUE(_T("弱电会议DimPlace"), g_csWireDimPlace[26]);
SET_VALUE(_T("弱电会议DimRadius"),g_csWireDimRadius[26]);
SET_VALUE(_T("弱电会议DimNorm"), g_iWireDimNorm[26]);
SET_VALUE(_T("弱电会议LineNum"), g_csWireLineNum[26]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("弱电卫星电视设置"));
SET_VALUE(_T("弱电卫星电视线宽"), g_nWireWidth[27]);
SET_VALUE(_T("弱电卫星电视线形"), g_csLineType[27]);
SET_VALUE(_T("弱电卫星电视回路"), g_csWireLoop[27]);
SET_VALUE(_T("弱电卫星电视DimType"), g_csWireDimType[27]);
SET_VALUE(_T("弱电卫星电视DimArea"), g_csWireDimArea[27]);
SET_VALUE(_T("弱电卫星电视DimMode"), g_csWireDimMode[27]);
SET_VALUE(_T("弱电卫星电视DimPlace"), g_csWireDimPlace[27]);
SET_VALUE(_T("弱电卫星电视DimRadius"),g_csWireDimRadius[27]);
SET_VALUE(_T("弱电卫星电视DimNorm"), g_iWireDimNorm[27]);
SET_VALUE(_T("弱电卫星电视LineNum"), g_csWireLineNum[27]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防报警设置"));
SET_VALUE(_T("消防报警线宽"), g_nWireWidth[28]);
SET_VALUE(_T("消防报警线形"), g_csLineType[28]);
SET_VALUE(_T("消防报警回路"), g_csWireLoop[28]);
SET_VALUE(_T("消防报警DimType"), g_csWireDimType[28]);
SET_VALUE(_T("消防报警DimArea"), g_csWireDimArea[28]);
SET_VALUE(_T("消防报警DimMode"), g_csWireDimMode[28]);
SET_VALUE(_T("消防报警DimPlace"), g_csWireDimPlace[28]);
SET_VALUE(_T("综消防报警DimRadius"),g_csWireDimRadius[28]);
SET_VALUE(_T("消防报警DimNorm"), g_iWireDimNorm[28]);
SET_VALUE(_T("消防报警LineNum"), g_csWireLineNum[28]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防联动设置"));
SET_VALUE(_T("消防联动线宽"), g_nWireWidth[29]);
SET_VALUE(_T("消防联动线形"), g_csLineType[29]);
SET_VALUE(_T("消防联动回路"), g_csWireLoop[29]);
SET_VALUE(_T("消防联动DimType"), g_csWireDimType[29]);
SET_VALUE(_T("消防联动DimArea"), g_csWireDimArea[29]);
SET_VALUE(_T("消防联动DimMode"), g_csWireDimMode[29]);
SET_VALUE(_T("消防联动DimPlace"), g_csWireDimPlace[29]);
SET_VALUE(_T("消防联动DimRadius"),g_csWireDimRadius[29]);
SET_VALUE(_T("消防联动DimNorm"), g_iWireDimNorm[29]);
SET_VALUE(_T("消防联动LineNum"), g_csWireLineNum[29]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防信号3设置"));
SET_VALUE(_T("消防信号3线宽"), g_nWireWidth[30]);
SET_VALUE(_T("消防信号3线形"), g_csLineType[30]);
SET_VALUE(_T("消防信号3回路"), g_csWireLoop[30]);
SET_VALUE(_T("消防信号3DimType"), g_csWireDimType[30]);
SET_VALUE(_T("消防信号3DimArea"), g_csWireDimArea[30]);
SET_VALUE(_T("消防信号3DimMode"), g_csWireDimMode[30]);
SET_VALUE(_T("消防信号3DimPlace"), g_csWireDimPlace[30]);
SET_VALUE(_T("消防信号3DimRadius"),g_csWireDimRadius[30]);
SET_VALUE(_T("消防信号3DimNorm"), g_iWireDimNorm[30]);
SET_VALUE(_T("消防信号3LineNum"), g_csWireLineNum[30]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防信号4设置"));
SET_VALUE(_T("消防信号4线宽"), g_nWireWidth[31]);
SET_VALUE(_T("消防信号4线形"), g_csLineType[31]);
SET_VALUE(_T("消防信号4回路"), g_csWireLoop[31]);
SET_VALUE(_T("消防信号4DimType"), g_csWireDimType[31]);
SET_VALUE(_T("消防信号4DimArea"), g_csWireDimArea[31]);
SET_VALUE(_T("消防信号4DimMode"), g_csWireDimMode[31]);
SET_VALUE(_T("消防信号4DimPlace"), g_csWireDimPlace[31]);
SET_VALUE(_T("消防信号4DimRadius"),g_csWireDimRadius[31]);
SET_VALUE(_T("消防信号4DimNorm"), g_iWireDimNorm[31]);
SET_VALUE(_T("消防信号4LineNum"), g_csWireLineNum[31]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防信号5设置"));
SET_VALUE(_T("消防信号5线宽"), g_nWireWidth[32]);
SET_VALUE(_T("消防信号5线形"), g_csLineType[32]);
SET_VALUE(_T("消防信号5回路"), g_csWireLoop[32]);
SET_VALUE(_T("消防信号5DimType"), g_csWireDimType[32]);
SET_VALUE(_T("消防信号5DimArea"), g_csWireDimArea[32]);
SET_VALUE(_T("消防信号5DimMode"), g_csWireDimMode[32]);
SET_VALUE(_T("消防信号5DimPlace"), g_csWireDimPlace[32]);
SET_VALUE(_T("消防信号5DimRadius"),g_csWireDimRadius[32]);
SET_VALUE(_T("消防信号5DimNorm"), g_iWireDimNorm[32]);
SET_VALUE(_T("消防信号5LineNum"), g_csWireLineNum[32]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防手控设置"));
SET_VALUE(_T("消防手控线宽"), g_nWireWidth[33]);
SET_VALUE(_T("消防手控线形"), g_csLineType[33]);
SET_VALUE(_T("消防手控回路"), g_csWireLoop[33]);
SET_VALUE(_T("消防手控DimType"), g_csWireDimType[33]);
SET_VALUE(_T("消防手控DimArea"), g_csWireDimArea[33]);
SET_VALUE(_T("消防手控DimMode"), g_csWireDimMode[33]);
SET_VALUE(_T("消防手控DimPlace"), g_csWireDimPlace[33]);
SET_VALUE(_T("消防手控DimRadius"),g_csWireDimRadius[33]);
SET_VALUE(_T("消防手控DimNorm"), g_iWireDimNorm[33]);
SET_VALUE(_T("消防手控LineNum"), g_csWireLineNum[33]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防气体设置"));
SET_VALUE(_T("消防气体线宽"), g_nWireWidth[34]);
SET_VALUE(_T("消防气体线形"), g_csLineType[34]);
SET_VALUE(_T("消防气体回路"), g_csWireLoop[34]);
SET_VALUE(_T("消防气体DimType"), g_csWireDimType[34]);
SET_VALUE(_T("消防气体DimArea"), g_csWireDimArea[34]);
SET_VALUE(_T("消防气体DimMode"), g_csWireDimMode[34]);
SET_VALUE(_T("消防气体DimPlace"), g_csWireDimPlace[34]);
SET_VALUE(_T("消防气体DimRadius"),g_csWireDimRadius[34]);
SET_VALUE(_T("消防气体DimNorm"), g_iWireDimNorm[34]);
SET_VALUE(_T("消防气体LineNum"), g_csWireLineNum[34]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("消防火灾设置"));
SET_VALUE(_T("消防火灾线宽"), g_nWireWidth[35]);
SET_VALUE(_T("消防火灾线形"), g_csLineType[35]);
SET_VALUE(_T("消防火灾回路"), g_csWireLoop[35]);
SET_VALUE(_T("消防火灾DimType"), g_csWireDimType[35]);
SET_VALUE(_T("消防火灾DimArea"), g_csWireDimArea[35]);
SET_VALUE(_T("消防火灾DimMode"), g_csWireDimMode[35]);
SET_VALUE(_T("消防火灾DimPlace"), g_csWireDimPlace[35]);
SET_VALUE(_T("消防火灾DimRadius"),g_csWireDimRadius[35]);
SET_VALUE(_T("消防火灾DimNorm"), g_iWireDimNorm[35]);
SET_VALUE(_T("消防火灾LineNum"), g_csWireLineNum[35]);
CLOSE_SUB_DICT();
OPEN_SUB_DICT(_T("自定义导线设置"));
SET_VALUE(_T("需要自定义导线1"), g_bNeedUser[0]);
SET_VALUE(_T("需要自定义导线2"), g_bNeedUser[1]);
SET_VALUE(_T("需要自定义导线3"), g_bNeedUser[2]);
SET_VALUE(_T("需要自定义导线4"), g_bNeedUser[3]);
SET_VALUE(_T("需要自定义导线5"), g_bNeedUser[4]);
SET_VALUE(_T("需要自定义导线6"), g_bNeedUser[5]);
SET_VALUE(_T("需要自定义导线7"), g_bNeedUser[6]);
SET_VALUE(_T("需要自定义导线8"), g_bNeedUser[7]);
SET_VALUE(_T("需要自定义导线9"), g_bNeedUser[8]);
SET_VALUE(_T("需要自定义导线10"), g_bNeedUser[9]);
SET_VALUE(_T("需要自定义导线11"), g_bNeedUser[10]);
SET_VALUE(_T("需要自定义导线12"), g_bNeedUser[11]);
SET_VALUE(_T("需要自定义导线13"), g_bNeedUser[12]);
SET_VALUE(_T("需要自定义导线14"), g_bNeedUser[13]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[14]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[15]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[16]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[17]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[18]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[19]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[20]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[21]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[22]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[23]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[24]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[25]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[26]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[27]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[28]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[29]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[30]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[31]);
SET_VALUE(_T("需要自定义导线15"), g_bNeedUser[32]);
SET_VALUE(_T("自定义导线1名"), g_csUserName[0]);
SET_VALUE(_T("自定义导线2名"), g_csUserName[1]);
SET_VALUE(_T("自定义导线3名"), g_csUserName[2]);
SET_VALUE(_T("自定义导线4名"), g_csUserName[3]);
SET_VALUE(_T("自定义导线5名"), g_csUserName[4]);
SET_VALUE(_T("自定义导线6名"), g_csUserName[5]);
SET_VALUE(_T("自定义导线7名"), g_csUserName[6]);
SET_VALUE(_T("自定义导线8名"), g_csUserName[7]);
SET_VALUE(_T("自定义导线9名"), g_csUserName[8]);
SET_VALUE(_T("自定义导线10名"), g_csUserName[9]);
SET_VALUE(_T("自定义导线11名"), g_csUserName[10]);
SET_VALUE(_T("自定义导线12名"), g_csUserName[11]);
SET_VALUE(_T("自定义导线13名"), g_csUserName[12]);
SET_VALUE(_T("自定义导线14名"), g_csUserName[13]);
SET_VALUE(_T("自定义导线15名"), g_csUserName[14]);
CLOSE_SUB_DICT();
CLOSE_DICT();
dict.WriteFile(csFileIni);
}