2455 lines
96 KiB
C++
2455 lines
96 KiB
C++
// PipeSettingDlg.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "PipeSettingDlg.h"
|
|
|
|
#include <PipeTools.h>
|
|
//#include <cbclass.h>
|
|
#include <PipeWireMonitor.h>
|
|
#include <layerDefine.h>
|
|
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
//#ifdef _WIN64
|
|
#include"TGAs.h"
|
|
//#endif
|
|
|
|
extern BOOL InvokeLineTypeMan();
|
|
|
|
extern TARCH_IMPEXP void InitLayers(BOOL bTrue);
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CPipeSettingDlg dialog
|
|
//BOOL GetPipeMaterialList(XStringList &lstMat)
|
|
//{
|
|
// CodeBase db;
|
|
// XString fullFile;
|
|
// if(!FindFile(_T("pipe.dbf"), fullFile)) {
|
|
// AfxMessageBox(_T("对不起,没有发现pipe.dbf文件!"));
|
|
// return FALSE;
|
|
// }
|
|
//
|
|
// XDbfTable *pTable = db.Open(fullFile);
|
|
// if(!pTable)
|
|
// return FALSE;
|
|
// XString xsMaterial;
|
|
// for(pTable->MoveFirst();!pTable->IsEOF();pTable->MoveNext()){
|
|
// GET_FIELD(pTable, _T("GC"), xsMaterial);
|
|
// if(xsMaterial != _T("") && lstMat.Index(xsMaterial) < 0)
|
|
// lstMat.Append(tstrnew(xsMaterial));
|
|
// }
|
|
// return TRUE;
|
|
|
|
|
|
double GetPipeCalcDiameter(AcDbObjectId id)
|
|
{
|
|
double nRet(0);
|
|
int iMat(-1), iPipeDn(0);
|
|
OPENOBJ_BEGIN(id, AcDb::kForRead, TDbPipe, pPipe);
|
|
if(pPipe){
|
|
iMat = pPipe->GetMaterial();
|
|
iPipeDn = (int)pPipe->GetDnDiameter();
|
|
}
|
|
OPENOBJ_END();
|
|
if(iMat < 0)
|
|
return nRet;
|
|
CodeBase db;
|
|
XString fullFile;
|
|
if(!FindFile(_T("pipe.dbf"), fullFile)) {
|
|
AfxMessageBox(_T("对不起,没有发现pipe.dbf文件!"));
|
|
return nRet;
|
|
}
|
|
CString csMat = GetPipeMaterialByIdx(iMat);
|
|
|
|
XDbfTable *pTable = db.Open(fullFile);
|
|
if(!pTable)
|
|
return nRet;
|
|
CString csMaterial;
|
|
int iDn(0);
|
|
double nDj(0);
|
|
for(pTable->MoveFirst();!pTable->IsEOF();pTable->MoveNext()){
|
|
GET_FIELD(pTable, _T("GC"), csMaterial);
|
|
GET_FIELD(pTable, _T("DN"), iDn);
|
|
GET_FIELD(pTable, _T("DJ"), nDj);
|
|
if(_tcsicmp((const TCHAR*)csMaterial, (const TCHAR*)csMat) == 0
|
|
&& iPipeDn == iDn){
|
|
nRet = nDj;
|
|
return nRet;
|
|
}
|
|
}
|
|
return (double)iPipeDn;
|
|
}
|
|
|
|
|
|
|
|
CPipeSettingDlg::CPipeSettingDlg(CWnd* pParent /*=NULL*/)
|
|
: CDialog(CPipeSettingDlg::IDD, pParent), m_spinWidth1(0.05),
|
|
m_spinWidth2(0.05), m_spinWidth3(0.05), m_spinWidth4(0.05),
|
|
m_spinWidth5(0.05), m_spinWidth6(0.05), m_spinWidth7(0.05),
|
|
m_spinWidth8(0.05), m_spinWidth9(0.05), m_spinWidth10(0.05),
|
|
m_spinWidth11(0.05), m_spinWidth12(0.05), m_spinWidth13(0.05),
|
|
m_spinWidth14(0.05), m_spinWidth15(0.05), m_spinWidth16(0.05), m_spinWidth17(0.05),
|
|
m_spinWidthFeed2(0.05), m_spinWidthFeed3(0.05), m_spinWidthFire2(0.05), m_spinWidthFire3(0.05),
|
|
m_spinWidthHeatFeed3(0.05), m_spinWidthHeatFeed2(0.05),m_spinWidthHeatBack2(0.05),m_spinWidthHeatBack3(0.05)
|
|
{
|
|
//{{AFX_DATA_INIT(CPipeSettingDlg)
|
|
m_iMaterial1 = 7;
|
|
m_iMaterial2 = 7;
|
|
m_iMaterial3 = 7;
|
|
m_iMaterial4 = 10;
|
|
m_iMaterial5 = 2;
|
|
m_iMaterial6 = 2;
|
|
m_iMaterial7 = 7;
|
|
m_iMaterial8 = 0;
|
|
m_iMaterial9 = 0;
|
|
m_iLineType1 = 0;
|
|
m_iLineType2 = 0;
|
|
m_iLineType3 = 0;
|
|
m_iLineType4 = 0;
|
|
m_iLineType5 = 0;
|
|
m_iLineType6 = 0;
|
|
m_iLineType7 = 0;
|
|
m_iLineType8 = 0;
|
|
m_iLineType9 = 0;
|
|
m_csDim1 = _T("J");
|
|
m_csDim2 = _T("RJ");
|
|
m_csDim3 = _T("RH");
|
|
m_csDim4 = _T("W");
|
|
m_csDim5 = _T("F");
|
|
m_csDim6 = _T("Y");
|
|
m_csDim7 = _T("Z");
|
|
m_csDim8 = _T("X");
|
|
m_csDim9 = _T("H");
|
|
m_nWidth1 = 0.35;
|
|
m_nWidth2 = 0.35;
|
|
m_nWidth3 = 0.35;
|
|
m_nWidth4 = 0.35;
|
|
m_nWidth5 = 0.35;
|
|
m_nWidth6 = 0.35;
|
|
m_nWidth7 = 0.35;
|
|
m_nWidth8 = 0.35;
|
|
m_nWidth9 = 0.35;
|
|
m_bTwo1 = FALSE;
|
|
m_bTwo2 = FALSE;
|
|
m_bTwo3 = FALSE;
|
|
m_bTwo4 = FALSE;
|
|
m_bTwo5 = FALSE;
|
|
m_bTwo6 = FALSE;
|
|
m_bTwo7 = FALSE;
|
|
m_bTwo8 = FALSE;
|
|
m_bTwo9 = FALSE;
|
|
m_csDim10 = _T("N");
|
|
m_iLineType10 = 0;
|
|
m_iMaterial10 = 0;
|
|
m_nWidth10 = 0.35;
|
|
m_bModify = FALSE;
|
|
m_iMaterial11 = 0;
|
|
m_iMaterial12 = 0;
|
|
m_iMaterial13 = 0;
|
|
m_iMaterial14 = 0;
|
|
m_iMaterial15 = 0;
|
|
m_csDim11 = _T("ZY");
|
|
m_csDim12 = _T("YW");
|
|
m_csDim13 = _T("YF");
|
|
m_csDim14 = _T("YY");
|
|
m_csDim15 = _T("T");
|
|
m_iLineType11 = 0;
|
|
m_iLineType12 = 0;
|
|
m_iLineType13 = 0;
|
|
m_iLineType14 = 0;
|
|
m_iLineType15 = 0;
|
|
m_nWidth11 = 0.35;
|
|
m_nWidth12 = 0.35;
|
|
m_nWidth13 = 0.35;
|
|
m_nWidth14 = 0.35;
|
|
m_nWidth15 = 0.35;
|
|
m_nRadius1 = 50;
|
|
m_nRadius10 = 50;
|
|
m_nRadius11 = 50;
|
|
m_nRadius12 = 50;
|
|
m_nRadius13 = 50;
|
|
m_nRadius14 = 50;
|
|
m_nRadius15 = 50;
|
|
m_nRadius2 = 50;
|
|
m_nRadius3 = 50;
|
|
m_nRadius4 = 50;
|
|
m_nRadius5 = 50;
|
|
m_nRadius6 = 50;
|
|
m_nRadius7 = 50;
|
|
m_nRadius8 = 50;
|
|
m_nRadius9 = 50;
|
|
m_csPipeName1 = _T("凝结");
|
|
m_csPipeName2 = _T("直饮");
|
|
m_csPipeName3 = _T("压力污");
|
|
m_csPipeName4 = _T("压力废");
|
|
m_csPipeName5 = _T("压力雨");
|
|
m_bLineTypeByLayer = FALSE;
|
|
m_csDimFeed2 = _T("J");
|
|
m_csDimFeed3 = _T("J");
|
|
m_dWidthFeed2 = 0.35;
|
|
m_dWidthFeed3 = 0.35;
|
|
m_iMaterialFeed2 = 7;
|
|
m_iMaterialFeed3 = 7;
|
|
m_iLineTypeFeed2 = 0;
|
|
m_iLineTypeFeed3 = 0;
|
|
m_dRadiusFeed2 = 50;
|
|
m_dRadiusFeed3 = 50;
|
|
m_csPipeName6 = _T("市政给");
|
|
m_csPipeName7 = _T("循环给");
|
|
m_csDim16 = _T("SJ");
|
|
m_csDim17 = _T("XJ");
|
|
m_nRadius16 = 50;
|
|
m_nRadius17 = 50;
|
|
m_iMaterial16 = 0;
|
|
m_iMaterial17 = 0;
|
|
m_nWidth16 = 0.35;
|
|
m_nWidth17 = 0.35;
|
|
m_iLineType16 = 0;
|
|
m_iLineType17 = 0;
|
|
m_csDimFire2 = _T("X");
|
|
m_csDimFire3 = _T("X");
|
|
m_csDimHeatBack2 = _T("RH");
|
|
m_csDimHeatBack3 = _T("RH");
|
|
m_csDimHeatFeed2 = _T("RJ");
|
|
m_csDimHeatFeed3 = _T("RJ");
|
|
m_nRadiusFire2 = 0.5;
|
|
m_nRadiusFire3 = 0.5;
|
|
m_nRadiusHeatBack2 = 0.5;
|
|
m_nRadiusHeatBack3 = 0.5;
|
|
m_nRadiusHeatFeed2 = 0.5;
|
|
m_nRadiusHeatFeed3 = 0.5;
|
|
m_dWidthHeatBack2 = 0.3;
|
|
m_dWidthHeatBack3 = 0.3;
|
|
m_dWidthHeatFeed2 = 0.3;
|
|
m_dWidthHeatFeed3 = 0.3;
|
|
m_dWidthFire2 = 0.3;
|
|
m_dWidthFire3 = 0.3;
|
|
m_iMaterialHeatFeed2 = 0;
|
|
m_iMaterialHeatFeed3 = 0;
|
|
m_iMaterialHeatBack2 = 0;
|
|
m_iMaterialHeatBack3 = 0;
|
|
m_iMaterialFire2 = 0;
|
|
m_iMaterialFire3 = 0;
|
|
m_iLineTypeHeatFeed2 = 0;
|
|
m_iLineTypeHeatFeed3 = 0;
|
|
m_iLineTypeHeatBack2 = 0;
|
|
m_iLineTypeHeatBack3 = 0;
|
|
m_iLineTypeFire2 = 0;
|
|
m_iLineTypeFire3 = 0;
|
|
//}}AFX_DATA_INIT
|
|
m_iMode = 0;
|
|
bIsMore = FALSE;
|
|
|
|
m_iColor1 = 3;
|
|
m_iColor2 = 5;
|
|
m_iColor3 = 4;
|
|
m_iColor4 = 2;
|
|
m_iColor5 = 31;
|
|
m_iColor6 = 6;
|
|
m_iColor7 = 122;
|
|
m_iColor8 = 1;
|
|
m_iColor9 = 6;
|
|
m_iColor10 = 150;
|
|
m_iColor11 = 62;
|
|
m_iColor12 = 2;
|
|
m_iColor13 = 31;
|
|
m_iColor14 = 4;
|
|
m_iColor15 = 0;
|
|
m_iColor16 = 0;
|
|
m_iColor17 = 0;
|
|
m_iColorFeed2 = 0;
|
|
m_iColorFeed3 = 0;
|
|
|
|
m_iVColor1 = 3;
|
|
m_iVColor2 = 5;
|
|
m_iVColor3 = 4;
|
|
m_iVColor4 = 2;
|
|
m_iVColor5 = 31;
|
|
m_iVColor6 = 6;
|
|
m_iVColor7 = 122;
|
|
m_iVColor8 = 1;
|
|
m_iVColor9 = 6;
|
|
m_iVColor10 = 150;
|
|
m_iVColor11 = 62;
|
|
m_iVColor12 = 2;
|
|
m_iVColor13 = 31;
|
|
m_iVColor14 = 4;
|
|
m_iVColor15 = 0;
|
|
m_iVColor16 = 0;
|
|
m_iVColor17 = 0;
|
|
m_iVColorFeed2 = 0;
|
|
m_iVColorFeed3 = 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
void CPipeSettingDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(CPipeSettingDlg)
|
|
DDX_Control(pDX, IDC_COMBO_FIRE3, m_comboLineTypeFire3);
|
|
DDX_Control(pDX, IDC_COMBO_FIRE2, m_comboLineTypeFire2);
|
|
DDX_Control(pDX, IDC_COMBO_HEADBACK3, m_comboLineTypeHeatBack3);
|
|
DDX_Control(pDX, IDC_COMBO_HEADBACK2, m_comboLineTypeHeatBack2);
|
|
DDX_Control(pDX, IDC_COMBO_HEADFEED3, m_comboLineTypeHeatFeed3);
|
|
DDX_Control(pDX, IDC_COMBO_HEADFEED2, m_comboLineTypeHeatFeed2);
|
|
DDX_Control(pDX, IDC_COMBO_MAT_HEADFEED3, m_comboMatHeatFeed3);
|
|
DDX_Control(pDX, IDC_COMBO_MAT_HEADFEED2, m_comboMatHeatFeed2);
|
|
DDX_Control(pDX, IDC_COMBO_MAT_HEADBACK3, m_comboMatHeatBack3);
|
|
DDX_Control(pDX, IDC_COMBO_MAT_HEADBACK2, m_comboMatHeatBack2);
|
|
DDX_Control(pDX, IDC_COMBO_MAT_FIRE3, m_comboMatFire3);
|
|
DDX_Control(pDX, IDC_COMBO_MAT_FIRE2, m_comboMatFire2);
|
|
DDX_Control(pDX, IDC_SPIN_HEADFEED3, m_spinWidthHeatFeed3);
|
|
DDX_Control(pDX, IDC_SPIN_HEADFEED2, m_spinWidthHeatFeed2);
|
|
DDX_Control(pDX, IDC_SPIN_HEADBACK3, m_spinWidthHeatBack3);
|
|
DDX_Control(pDX, IDC_SPIN_HEADBACK2, m_spinWidthHeatBack2);
|
|
DDX_Control(pDX, IDC_SPIN_FIRE3, m_spinWidthFire3);
|
|
DDX_Control(pDX, IDC_SPIN_FIRE2, m_spinWidthFire2);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE17, m_comboLineType17);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE16, m_comboLineType16);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH17, m_spinWidth17);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH16, m_spinWidth16);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL17, m_comboMat17);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL16, m_comboMat16);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE92, m_comboLineTypeFeed3);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE91, m_comboLineTypeFeed2);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL92, m_comboMatFeed3);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL91, m_comboMatFeed2);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH92, m_spinWidthFeed3);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH91, m_spinWidthFeed2);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE9, m_comboLineType9);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE8, m_comboLineType8);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE7, m_comboLineType7);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE6, m_comboLineType6);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE5, m_comboLineType5);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE4, m_comboLineType4);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE3, m_comboLineType3);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE2, m_comboLineType2);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE15, m_comboLineType15);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE14, m_comboLineType14);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE13, m_comboLineType13);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE12, m_comboLineType12);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE11, m_comboLineType11);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE10, m_comboLineType10);
|
|
DDX_Control(pDX, IDC_COMBO_TYPE1, m_comboLineType1);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL15, m_comboMat15);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL14, m_comboMat14);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL13, m_comboMat13);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL12, m_comboMat12);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL11, m_comboMat11);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH15, m_spinWidth15);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH14, m_spinWidth14);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH13, m_spinWidth13);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH12, m_spinWidth12);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH11, m_spinWidth11);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL10, m_comboMat10);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL9, m_comboMat9);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL8, m_comboMat8);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL7, m_comboMat7);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL6, m_comboMat6);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL5, m_comboMat5);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL4, m_comboMat4);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL3, m_comboMat3);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL2, m_comboMat2);
|
|
DDX_Control(pDX, IDC_COMBO_MATERIAL1, m_comboMat1);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH10, m_spinWidth10);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH9, m_spinWidth9);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH8, m_spinWidth8);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH7, m_spinWidth7);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH6, m_spinWidth6);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH5, m_spinWidth5);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH4, m_spinWidth4);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH3, m_spinWidth3);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH2, m_spinWidth2);
|
|
DDX_Control(pDX, IDC_SPIN_WIDTH1, m_spinWidth1);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL1, m_iMaterial1);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL2, m_iMaterial2);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL3, m_iMaterial3);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL4, m_iMaterial4);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL5, m_iMaterial5);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL6, m_iMaterial6);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL7, m_iMaterial7);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL8, m_iMaterial8);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL9, m_iMaterial9);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE1, m_iLineType1);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE2, m_iLineType2);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE3, m_iLineType3);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE4, m_iLineType4);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE5, m_iLineType5);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE6, m_iLineType6);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE7, m_iLineType7);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE8, m_iLineType8);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE9, m_iLineType9);
|
|
DDX_Text(pDX, IDC_EDIT_DIM1, m_csDim1);
|
|
DDX_Text(pDX, IDC_EDIT_DIM2, m_csDim2);
|
|
DDX_Text(pDX, IDC_EDIT_DIM3, m_csDim3);
|
|
DDX_Text(pDX, IDC_EDIT_DIM4, m_csDim4);
|
|
DDX_Text(pDX, IDC_EDIT_DIM5, m_csDim5);
|
|
DDX_Text(pDX, IDC_EDIT_DIM6, m_csDim6);
|
|
DDX_Text(pDX, IDC_EDIT_DIM7, m_csDim7);
|
|
DDX_Text(pDX, IDC_EDIT_DIM8, m_csDim8);
|
|
DDX_Text(pDX, IDC_EDIT_DIM9, m_csDim9);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH1, m_nWidth1);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH2, m_nWidth2);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH3, m_nWidth3);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH4, m_nWidth4);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH5, m_nWidth5);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH6, m_nWidth6);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH7, m_nWidth7);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH8, m_nWidth8);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH9, m_nWidth9);
|
|
DDX_Check(pDX, IDC_CHECK_STAND1, m_bTwo1);
|
|
DDX_Check(pDX, IDC_CHECK_STAND2, m_bTwo2);
|
|
DDX_Check(pDX, IDC_CHECK_STAND3, m_bTwo3);
|
|
DDX_Check(pDX, IDC_CHECK_STAND4, m_bTwo4);
|
|
DDX_Check(pDX, IDC_CHECK_STAND5, m_bTwo5);
|
|
DDX_Check(pDX, IDC_CHECK_STAND6, m_bTwo6);
|
|
DDX_Check(pDX, IDC_CHECK_STAND7, m_bTwo7);
|
|
DDX_Check(pDX, IDC_CHECK_STAND8, m_bTwo8);
|
|
DDX_Check(pDX, IDC_CHECK_STAND9, m_bTwo9);
|
|
DDX_Text(pDX, IDC_EDIT_DIM10, m_csDim10);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE10, m_iLineType10);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL10, m_iMaterial10);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH10, m_nWidth10);
|
|
DDX_Check(pDX, IDC_CHECK_MODIFY, m_bModify);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL11, m_iMaterial11);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL12, m_iMaterial12);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL13, m_iMaterial13);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL14, m_iMaterial14);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL15, m_iMaterial15);
|
|
DDX_Text(pDX, IDC_EDIT_DIM11, m_csDim11);
|
|
DDX_Text(pDX, IDC_EDIT_DIM12, m_csDim12);
|
|
DDX_Text(pDX, IDC_EDIT_DIM13, m_csDim13);
|
|
DDX_Text(pDX, IDC_EDIT_DIM14, m_csDim14);
|
|
DDX_Text(pDX, IDC_EDIT_DIM15, m_csDim15);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE11, m_iLineType11);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE12, m_iLineType12);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE13, m_iLineType13);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE14, m_iLineType14);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE15, m_iLineType15);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH11, m_nWidth11);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH12, m_nWidth12);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH13, m_nWidth13);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH14, m_nWidth14);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH15, m_nWidth15);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE1, m_nRadius1);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE10, m_nRadius10);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE11, m_nRadius11);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE12, m_nRadius12);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE13, m_nRadius13);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE14, m_nRadius14);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE15, m_nRadius15);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE2, m_nRadius2);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE3, m_nRadius3);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE4, m_nRadius4);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE5, m_nRadius5);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE6, m_nRadius6);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE7, m_nRadius7);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE8, m_nRadius8);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE9, m_nRadius9);
|
|
DDX_Text(pDX, IDC_EDIT_NAME1, m_csPipeName1);
|
|
DDX_Text(pDX, IDC_EDIT_NAME2, m_csPipeName2);
|
|
DDX_Text(pDX, IDC_EDIT_NAME3, m_csPipeName3);
|
|
DDX_Text(pDX, IDC_EDIT_NAME4, m_csPipeName4);
|
|
DDX_Text(pDX, IDC_EDIT_NAME5, m_csPipeName5);
|
|
DDX_Check(pDX, IDC_CHECK_BYLAYER, m_bLineTypeByLayer);
|
|
DDX_Text(pDX, IDC_EDIT_DIM_FEED2, m_csDimFeed2);
|
|
DDX_Text(pDX, IDC_EDIT_DIM_FEED3, m_csDimFeed3);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH91, m_dWidthFeed2);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH92, m_dWidthFeed3);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL91, m_iMaterialFeed2);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL92, m_iMaterialFeed3);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE91, m_iLineTypeFeed2);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE92, m_iLineTypeFeed3);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE_FEED2, m_dRadiusFeed2);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE_FEED3, m_dRadiusFeed3);
|
|
DDX_Text(pDX, IDC_EDIT_NAME6, m_csPipeName6);
|
|
DDX_Text(pDX, IDC_EDIT_NAME7, m_csPipeName7);
|
|
DDX_Text(pDX, IDC_EDIT_DIM16, m_csDim16);
|
|
DDX_Text(pDX, IDC_EDIT_DIM17, m_csDim17);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE16, m_nRadius16);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE17, m_nRadius17);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL16, m_iMaterial16);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MATERIAL17, m_iMaterial17);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH16, m_nWidth16);
|
|
DDX_Text(pDX, IDC_EDIT_WIDTH17, m_nWidth17);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE16, m_iLineType16);
|
|
DDX_CBIndex(pDX, IDC_COMBO_TYPE17, m_iLineType17);
|
|
DDX_Text(pDX, IDC_EDIT_DIM_FIRE2, m_csDimFire2);
|
|
DDX_Text(pDX, IDC_EDIT_DIM_FIRE3, m_csDimFire3);
|
|
DDX_Text(pDX, IDC_EDIT_DIM_HEADBACK2, m_csDimHeatBack2);
|
|
DDX_Text(pDX, IDC_EDIT_DIM_HEADBACK3, m_csDimHeatBack3);
|
|
DDX_Text(pDX, IDC_EDIT_DIM_HEADFEED2, m_csDimHeatFeed2);
|
|
DDX_Text(pDX, IDC_EDIT_DIM_HEADFEED3, m_csDimHeatFeed3);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE_FIRE2, m_nRadiusFire2);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE_FIRE3, m_nRadiusFire3);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE_HEADBACK2, m_nRadiusHeatBack2);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE_HEADBACK3, m_nRadiusHeatBack3);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE_HEADFEED2, m_nRadiusHeatFeed2);
|
|
DDX_Text(pDX, IDC_EDIT_CIRCLE_HEADFEED3, m_nRadiusHeatFeed3);
|
|
DDX_Text(pDX, IDC_EDIT_HEADBACK2, m_dWidthHeatBack2);
|
|
DDX_Text(pDX, IDC_EDIT_HEADBACK3, m_dWidthHeatBack3);
|
|
DDX_Text(pDX, IDC_EDIT_HEADFEED2, m_dWidthHeatFeed2);
|
|
DDX_Text(pDX, IDC_EDIT_HEADFEED3, m_dWidthHeatFeed3);
|
|
DDX_Text(pDX, IDC_EDIT_FIRE2, m_dWidthFire2);
|
|
DDX_Text(pDX, IDC_EDIT_FIRE3, m_dWidthFire3);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MAT_HEADFEED2, m_iMaterialHeatFeed2);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MAT_HEADFEED3, m_iMaterialHeatFeed3);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MAT_HEADBACK2, m_iMaterialHeatBack2);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MAT_HEADBACK3, m_iMaterialHeatBack3);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MAT_FIRE2, m_iMaterialFire2);
|
|
DDX_CBIndex(pDX, IDC_COMBO_MAT_FIRE3, m_iMaterialFire3);
|
|
DDX_CBIndex(pDX, IDC_COMBO_HEADFEED2, m_iLineTypeHeatFeed2);
|
|
DDX_CBIndex(pDX, IDC_COMBO_HEADFEED3, m_iLineTypeHeatFeed3);
|
|
DDX_CBIndex(pDX, IDC_COMBO_HEADBACK2, m_iLineTypeHeatBack2);
|
|
DDX_CBIndex(pDX, IDC_COMBO_HEADBACK3, m_iLineTypeHeatBack3);
|
|
DDX_CBIndex(pDX, IDC_COMBO_FIRE2, m_iLineTypeFire2);
|
|
DDX_CBIndex(pDX, IDC_COMBO_FIRE3, m_iLineTypeFire3);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CPipeSettingDlg, CDialog)
|
|
//{{AFX_MSG_MAP(CPipeSettingDlg)
|
|
ON_WM_PAINT()
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR1, OnStaticColor1)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR2, OnStaticColor2)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR3, OnStaticColor3)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR4, OnStaticColor4)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR5, OnStaticColor5)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR6, OnStaticColor6)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR7, OnStaticColor7)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR8, OnStaticColor8)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR9, OnStaticColor9)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR10, OnStaticColor10)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR11, OnStaticColor11)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR12, OnStaticColor12)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR13, OnStaticColor13)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR14, OnStaticColor14)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR15, OnStaticColor15)
|
|
ON_BN_CLICKED(IDC_BUTTON_NEW, OnButtonNew)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR31, OnStaticColor31)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR32, OnStaticColor32)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR33, OnStaticColor33)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR34, OnStaticColor34)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR35, OnStaticColor35)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR36, OnStaticColor36)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR37, OnStaticColor37)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR38, OnStaticColor38)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR39, OnStaticColor39)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR40, OnStaticColor40)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR41, OnStaticColor41)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR42, OnStaticColor42)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR43, OnStaticColor43)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR44, OnStaticColor44)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR45, OnStaticColor45)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_FEED2, OnStaticColorFeed2)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_FEED3, OnStaticColorFeed3)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_VFEED2, OnStaticColorVfeed2)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_VFEED3, OnStaticColorVfeed3)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR16, OnStaticColor16)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR17, OnStaticColor17)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR46, OnStaticColor46)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR47, OnStaticColor47)
|
|
ON_BN_CLICKED(IDC_BUTTON_MORE, OnButtonMore)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_HEADFEED2, OnStaticColorHeadfeed2)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_HEADFEED3, OnStaticColorHeadfeed3)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_HEADBACK2, OnStaticColorHeadback2)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_HEADBACK3, OnStaticColorHeadback3)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_FIRE2, OnStaticColorFire2)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_FIRE3, OnStaticColorFire3)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_VHEADFEED2, OnStaticColorVheadfeed2)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_VHEADFEED3, OnStaticColorVheadfeed3)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_VHEADBACK2, OnStaticColorVheadback2)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_VHEADBACK3, OnStaticColorVheadback3)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_VFIRE2, OnStaticColorVfire2)
|
|
ON_BN_CLICKED(IDC_STATIC_COLOR_VFIRE3, OnStaticColorVfire3)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CPipeSettingDlg message handlers
|
|
|
|
BOOL CPipeSettingDlg::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
|
|
m_spinWidth1.SetRange(0, 1);
|
|
m_spinWidth2.SetRange(0, 1);
|
|
m_spinWidth3.SetRange(0, 1);
|
|
m_spinWidth4.SetRange(0, 1);
|
|
m_spinWidth5.SetRange(0, 1);
|
|
m_spinWidth6.SetRange(0, 1);
|
|
m_spinWidth7.SetRange(0, 1);
|
|
m_spinWidth8.SetRange(0, 1);
|
|
m_spinWidth9.SetRange(0, 1);
|
|
m_spinWidth10.SetRange(0, 1);
|
|
m_spinWidth11.SetRange(0, 1);
|
|
m_spinWidth12.SetRange(0, 1);
|
|
m_spinWidth13.SetRange(0, 1);
|
|
m_spinWidth14.SetRange(0, 1);
|
|
m_spinWidth15.SetRange(0, 1);
|
|
m_spinWidth16.SetRange(0, 1);
|
|
m_spinWidth17.SetRange(0, 1);
|
|
m_spinWidthFeed2.SetRange(0, 1);
|
|
m_spinWidthFeed3.SetRange(0, 1);
|
|
m_spinWidthHeatFeed3.SetRange(0, 1);
|
|
m_spinWidthHeatFeed2.SetRange(0, 1);
|
|
m_spinWidthHeatBack3.SetRange(0, 1);
|
|
m_spinWidthHeatBack2.SetRange(0, 1);
|
|
m_spinWidthFire3.SetRange(0, 1);
|
|
m_spinWidthFire2.SetRange(0, 1);
|
|
|
|
m_iColor1 = GetLayerColorIdx(LAY_PIPE_FEED);
|
|
m_iColor2 = GetLayerColorIdx(LAY_PIPE_HEADFEED);
|
|
m_iColor3 = GetLayerColorIdx(LAY_PIPE_HEADBACK);
|
|
m_iColor4 = GetLayerColorIdx(LAY_PIPE_DIRT);
|
|
m_iColor5 = GetLayerColorIdx(LAY_PIPE_USELESS);
|
|
m_iColor6 = GetLayerColorIdx(LAY_PIPE_RAIN);
|
|
m_iColor7 = GetLayerColorIdx(LAY_PIPE_USED);
|
|
m_iColor8 = GetLayerColorIdx(LAY_PIPE_FIRE);
|
|
m_iColor9 = GetLayerColorIdx(LAY_PIPE_SPRINKLE);
|
|
m_iColor10 = GetLayerColorIdx(LAY_PIPE_COAGULATE);
|
|
m_iColor11 = GetLayerColorIdx(LAY_PIPE_DRINK);
|
|
m_iColor12 = GetLayerColorIdx(LAY_PIPE_PRESSDIRT);
|
|
m_iColor13 = GetLayerColorIdx(LAY_PIPE_PRESSUSELESS);
|
|
m_iColor14 = GetLayerColorIdx(LAY_PIPE_PRESSRAIN);
|
|
m_iColor15 = GetLayerColorIdx(LAY_PIPE_OTHER);
|
|
m_iColor16 = GetLayerColorIdx(LAY_PIPE_USER1);
|
|
m_iColor17 = GetLayerColorIdx(LAY_PIPE_USER2);
|
|
m_iColorFeed2 = GetLayerColorIdx(LAY_PIPE_FEED2);
|
|
m_iColorFeed3 = GetLayerColorIdx(LAY_PIPE_FEED3);
|
|
m_iColorHeatFeed2 = GetLayerColorIdx(LAY_PIPE_HEADFEED2);
|
|
m_iColorHeatFeed3 = GetLayerColorIdx(LAY_PIPE_HEADFEED3);
|
|
m_iColorHeatBack2 = GetLayerColorIdx(LAY_PIPE_HEADBACK2);
|
|
m_iColorHeatBack3 = GetLayerColorIdx(LAY_PIPE_HEADBACK3);
|
|
m_iColorFire2 = GetLayerColorIdx(LAY_PIPE_FIRE2);
|
|
m_iColorFire3 = GetLayerColorIdx(LAY_PIPE_FIRE3);
|
|
|
|
m_iVColor1 = GetLayerColorIdx(LAY_VPIPE_FEED);
|
|
m_iVColor2 = GetLayerColorIdx(LAY_VPIPE_HEADFEED);
|
|
m_iVColor3 = GetLayerColorIdx(LAY_VPIPE_HEADBACK);
|
|
m_iVColor4 = GetLayerColorIdx(LAY_VPIPE_DIRT);
|
|
m_iVColor5 = GetLayerColorIdx(LAY_VPIPE_USELESS);
|
|
m_iVColor6 = GetLayerColorIdx(LAY_VPIPE_RAIN);
|
|
m_iVColor7 = GetLayerColorIdx(LAY_VPIPE_USED);
|
|
m_iVColor8 = GetLayerColorIdx(LAY_VPIPE_FIRE);
|
|
m_iVColor9 = GetLayerColorIdx(LAY_VPIPE_SPRINKLE);
|
|
m_iVColor10 = GetLayerColorIdx(LAY_VPIPE_COAGULATE);
|
|
m_iVColor11 = GetLayerColorIdx(LAY_VPIPE_DRINK);
|
|
m_iVColor12 = GetLayerColorIdx(LAY_VPIPE_PRESSDIRT);
|
|
m_iVColor13 = GetLayerColorIdx(LAY_VPIPE_PRESSUSELESS);
|
|
m_iVColor14 = GetLayerColorIdx(LAY_VPIPE_PRESSRAIN);
|
|
m_iVColor15 = GetLayerColorIdx(LAY_VPIPE_OTHER);
|
|
m_iVColor16 = GetLayerColorIdx(LAY_VPIPE_USER1);
|
|
m_iVColor17 = GetLayerColorIdx(LAY_VPIPE_USER2);
|
|
m_iVColorFeed2 = GetLayerColorIdx(LAY_VPIPE_FEED2);
|
|
m_iVColorFeed3 = GetLayerColorIdx(LAY_VPIPE_FEED3);
|
|
m_iVColorHeatFeed2 = GetLayerColorIdx(LAY_VPIPE_HEADFEED2);
|
|
m_iVColorHeatFeed3 = GetLayerColorIdx(LAY_VPIPE_HEADFEED3);
|
|
m_iVColorHeatBack2 = GetLayerColorIdx(LAY_VPIPE_HEADBACK2);
|
|
m_iVColorHeatBack3 = GetLayerColorIdx(LAY_VPIPE_HEADBACK3);
|
|
m_iVColorFire2 = GetLayerColorIdx(LAY_VPIPE_FIRE2);
|
|
m_iVColorFire3 = GetLayerColorIdx(LAY_VPIPE_FIRE3);
|
|
|
|
|
|
XStringList lstMat;
|
|
GetPipeMaterialList(lstMat);
|
|
for(int i=0;i<lstMat.Length();i++){
|
|
m_comboMat1.AddString(lstMat[i]);
|
|
m_comboMat2.AddString(lstMat[i]);
|
|
m_comboMat3.AddString(lstMat[i]);
|
|
m_comboMat4.AddString(lstMat[i]);
|
|
m_comboMat5.AddString(lstMat[i]);
|
|
m_comboMat6.AddString(lstMat[i]);
|
|
m_comboMat7.AddString(lstMat[i]);
|
|
m_comboMat8.AddString(lstMat[i]);
|
|
m_comboMat9.AddString(lstMat[i]);
|
|
m_comboMat10.AddString(lstMat[i]);
|
|
m_comboMat11.AddString(lstMat[i]);
|
|
m_comboMat12.AddString(lstMat[i]);
|
|
m_comboMat13.AddString(lstMat[i]);
|
|
m_comboMat14.AddString(lstMat[i]);
|
|
m_comboMat15.AddString(lstMat[i]);
|
|
m_comboMat16.AddString(lstMat[i]);
|
|
m_comboMat17.AddString(lstMat[i]);
|
|
|
|
m_comboMatFeed2.AddString(lstMat[i]);
|
|
m_comboMatFeed3.AddString(lstMat[i]);
|
|
m_comboMatHeatFeed2.AddString(lstMat[i]);
|
|
m_comboMatHeatFeed3.AddString(lstMat[i]);
|
|
m_comboMatHeatBack2.AddString(lstMat[i]);
|
|
m_comboMatHeatBack3.AddString(lstMat[i]);
|
|
m_comboMatFire2.AddString(lstMat[i]);
|
|
m_comboMatFire3.AddString(lstMat[i]);
|
|
}
|
|
UpdateDlgData(TRUE);
|
|
ResetLineCombox();
|
|
|
|
|
|
if(m_iMode == 1){
|
|
CWnd *pWnd = GetDlgItem(IDC_CHECK_MODIFY);
|
|
pWnd->EnableWindow(FALSE);
|
|
}
|
|
DrawStatic();
|
|
|
|
CRect rect;
|
|
this->GetWindowRect(&rect);
|
|
rect.bottom -= 230;
|
|
this->MoveWindow(&rect);
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
}
|
|
|
|
void CPipeSettingDlg::ResetLineCombox()
|
|
{
|
|
UpdateData(TRUE);
|
|
m_lstLineTypeName.Reset();
|
|
m_lstLineTypeComment.Reset();
|
|
m_comboLineType1.ResetContent();
|
|
m_comboLineType2.ResetContent();
|
|
m_comboLineType3.ResetContent();
|
|
m_comboLineType4.ResetContent();
|
|
m_comboLineType5.ResetContent();
|
|
m_comboLineType6.ResetContent();
|
|
m_comboLineType7.ResetContent();
|
|
m_comboLineType8.ResetContent();
|
|
m_comboLineType9.ResetContent();
|
|
m_comboLineType10.ResetContent();
|
|
m_comboLineType11.ResetContent();
|
|
m_comboLineType12.ResetContent();
|
|
m_comboLineType13.ResetContent();
|
|
m_comboLineType14.ResetContent();
|
|
m_comboLineType15.ResetContent();
|
|
m_comboLineType16.ResetContent();
|
|
m_comboLineType17.ResetContent();
|
|
m_comboLineTypeFeed2.ResetContent();
|
|
m_comboLineTypeFeed3.ResetContent();
|
|
m_comboLineTypeHeatFeed2.ResetContent();
|
|
m_comboLineTypeHeatFeed3.ResetContent();
|
|
m_comboLineTypeHeatBack2.ResetContent();
|
|
m_comboLineTypeHeatBack3.ResetContent();
|
|
m_comboLineTypeFire2.ResetContent();
|
|
m_comboLineTypeFire3.ResetContent();
|
|
|
|
GetAllTgLineType(m_lstLineTypeName, m_lstLineTypeComment);
|
|
for(int i=0;i<m_lstLineTypeComment.Length();i++){
|
|
m_comboLineType1.AddString(CString(m_lstLineTypeName[i]) + _T(" ") +m_lstLineTypeComment[i]);
|
|
m_comboLineType2.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType3.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType4.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType5.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType6.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType7.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType8.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType9.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType10.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType11.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType12.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType13.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType14.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType15.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType16.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineType17.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineTypeFeed2.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineTypeFeed3.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineTypeHeatFeed2.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineTypeHeatFeed3.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineTypeHeatBack2.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineTypeHeatBack3.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineTypeFire2.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
m_comboLineTypeFire3.AddString(CString(m_lstLineTypeName[i]) + _T(" ") + m_lstLineTypeComment[i]);
|
|
}
|
|
|
|
|
|
m_iLineType1 = m_lstLineTypeName.Index(m_csLineType1);
|
|
m_iLineType2 = m_lstLineTypeName.Index(m_csLineType2);
|
|
m_iLineType3 = m_lstLineTypeName.Index(m_csLineType3);
|
|
m_iLineType4 = m_lstLineTypeName.Index(m_csLineType4);
|
|
m_iLineType5 = m_lstLineTypeName.Index(m_csLineType5);
|
|
m_iLineType6 = m_lstLineTypeName.Index(m_csLineType6);
|
|
m_iLineType7 = m_lstLineTypeName.Index(m_csLineType7);
|
|
m_iLineType8 = m_lstLineTypeName.Index(m_csLineType8);
|
|
m_iLineType9 = m_lstLineTypeName.Index(m_csLineType9);
|
|
m_iLineType10 = m_lstLineTypeName.Index(m_csLineType10);
|
|
m_iLineType11 = m_lstLineTypeName.Index(m_csLineType11);
|
|
m_iLineType12 = m_lstLineTypeName.Index(m_csLineType12);
|
|
m_iLineType13 = m_lstLineTypeName.Index(m_csLineType13);
|
|
m_iLineType14 = m_lstLineTypeName.Index(m_csLineType14);
|
|
m_iLineType15 = m_lstLineTypeName.Index(m_csLineType15);
|
|
m_iLineType16 = m_lstLineTypeName.Index(m_csLineType16);
|
|
m_iLineType17 = m_lstLineTypeName.Index(m_csLineType17);
|
|
m_iLineTypeFeed2 = m_lstLineTypeName.Index(m_csLineTypeFeed2);
|
|
m_iLineTypeFeed3 = m_lstLineTypeName.Index(m_csLineTypeFeed3);
|
|
m_iLineTypeHeatFeed2 = m_lstLineTypeName.Index(m_csLineTypeHeatFeed2);
|
|
m_iLineTypeHeatFeed3 = m_lstLineTypeName.Index(m_csLineTypeHeatFeed3);
|
|
m_iLineTypeHeatBack2 = m_lstLineTypeName.Index(m_csLineTypeHeatBack2);
|
|
m_iLineTypeHeatBack3 = m_lstLineTypeName.Index(m_csLineTypeHeatBack3);
|
|
m_iLineTypeFire2 = m_lstLineTypeName.Index(m_csLineTypeFire2);
|
|
m_iLineTypeFire3 = m_lstLineTypeName.Index(m_csLineTypeFire3);
|
|
|
|
if(m_iLineType1 < 0) m_iLineType1 = 0;
|
|
if(m_iLineType2 < 0) m_iLineType2 = 0;
|
|
if(m_iLineType3 < 0) m_iLineType3 = 0;
|
|
if(m_iLineType4 < 0) m_iLineType4 = 0;
|
|
if(m_iLineType5 < 0) m_iLineType5 = 0;
|
|
if(m_iLineType6 < 0) m_iLineType6 = 0;
|
|
if(m_iLineType7 < 0) m_iLineType7 = 0;
|
|
if(m_iLineType8 < 0) m_iLineType8 = 0;
|
|
if(m_iLineType9 < 0) m_iLineType9 = 0;
|
|
if(m_iLineType10 < 0) m_iLineType10 =0;
|
|
if(m_iLineType11 < 0) m_iLineType11 =0;
|
|
if(m_iLineType12 < 0) m_iLineType12 =0;
|
|
if(m_iLineType13 < 0) m_iLineType13 =0;
|
|
if(m_iLineType14 < 0) m_iLineType14 =0;
|
|
if(m_iLineType15 < 0) m_iLineType15 =0;
|
|
if(m_iLineType16 < 0) m_iLineType16 =0;
|
|
if(m_iLineType17 < 0) m_iLineType17 =0;
|
|
if(m_iLineTypeFeed2 < 0) m_iLineTypeFeed2 =0;
|
|
if(m_iLineTypeFeed3 < 0) m_iLineTypeFeed3 =0;
|
|
if(m_iLineTypeHeatFeed2 < 0) m_iLineTypeHeatFeed2 =0;
|
|
if(m_iLineTypeHeatFeed3 < 0) m_iLineTypeHeatFeed3 =0;
|
|
if(m_iLineTypeHeatBack2 < 0) m_iLineTypeHeatBack2 =0;
|
|
if(m_iLineTypeHeatBack3 < 0) m_iLineTypeHeatBack3 =0;
|
|
if(m_iLineTypeFire2 < 0) m_iLineTypeFire2 =0;
|
|
if(m_iLineTypeFire3 < 0) m_iLineTypeFire3 =0;
|
|
UpdateData(FALSE);
|
|
}
|
|
|
|
void CPipeSettingDlg::DrawStatic()
|
|
{
|
|
int Color[50];
|
|
//绘制图片框
|
|
UINT id[] = {IDC_STATIC_COLOR1,
|
|
IDC_STATIC_COLOR2,
|
|
IDC_STATIC_COLOR3,
|
|
IDC_STATIC_COLOR4,
|
|
IDC_STATIC_COLOR5,
|
|
IDC_STATIC_COLOR6,
|
|
IDC_STATIC_COLOR7,
|
|
IDC_STATIC_COLOR8,
|
|
IDC_STATIC_COLOR9,
|
|
IDC_STATIC_COLOR10,
|
|
IDC_STATIC_COLOR11,
|
|
IDC_STATIC_COLOR12,
|
|
IDC_STATIC_COLOR13,
|
|
IDC_STATIC_COLOR14,
|
|
IDC_STATIC_COLOR15,
|
|
IDC_STATIC_COLOR31,
|
|
IDC_STATIC_COLOR32,
|
|
IDC_STATIC_COLOR33,
|
|
IDC_STATIC_COLOR34,
|
|
IDC_STATIC_COLOR35,
|
|
IDC_STATIC_COLOR36,
|
|
IDC_STATIC_COLOR37,
|
|
IDC_STATIC_COLOR38,
|
|
IDC_STATIC_COLOR39,
|
|
IDC_STATIC_COLOR40,
|
|
IDC_STATIC_COLOR41,
|
|
IDC_STATIC_COLOR42,
|
|
IDC_STATIC_COLOR43,
|
|
IDC_STATIC_COLOR44,
|
|
IDC_STATIC_COLOR45,
|
|
IDC_STATIC_COLOR_FEED2,
|
|
IDC_STATIC_COLOR_FEED3,
|
|
IDC_STATIC_COLOR_VFEED2,
|
|
IDC_STATIC_COLOR_VFEED3,
|
|
IDC_STATIC_COLOR16,
|
|
IDC_STATIC_COLOR17,
|
|
IDC_STATIC_COLOR46,
|
|
IDC_STATIC_COLOR47,
|
|
IDC_STATIC_COLOR_HEADFEED2,
|
|
IDC_STATIC_COLOR_HEADFEED3,
|
|
IDC_STATIC_COLOR_HEADBACK2,
|
|
IDC_STATIC_COLOR_HEADBACK3,
|
|
IDC_STATIC_COLOR_FIRE2,
|
|
IDC_STATIC_COLOR_FIRE3,
|
|
IDC_STATIC_COLOR_VHEADFEED2,
|
|
IDC_STATIC_COLOR_VHEADFEED3,
|
|
IDC_STATIC_COLOR_VHEADBACK2,
|
|
IDC_STATIC_COLOR_VHEADBACK3,
|
|
IDC_STATIC_COLOR_VFIRE2,
|
|
IDC_STATIC_COLOR_VFIRE3,
|
|
};
|
|
|
|
Color[0] = m_iColor1;
|
|
Color[1] = m_iColor2;
|
|
Color[2] = m_iColor3;
|
|
Color[3] = m_iColor4;
|
|
Color[4] = m_iColor5;
|
|
Color[5] = m_iColor6;
|
|
Color[6] = m_iColor7;
|
|
Color[7] = m_iColor8;
|
|
Color[8] = m_iColor9;
|
|
Color[9] = m_iColor10;
|
|
Color[10] = m_iColor11;
|
|
Color[11] = m_iColor12;
|
|
Color[12] = m_iColor13;
|
|
Color[13] = m_iColor14;
|
|
Color[14] = m_iColor15;
|
|
Color[15] = m_iVColor1;
|
|
Color[16] = m_iVColor2;
|
|
Color[17] = m_iVColor3;
|
|
Color[18] = m_iVColor4;
|
|
Color[19] = m_iVColor5;
|
|
Color[20] = m_iVColor6;
|
|
Color[21] = m_iVColor7;
|
|
Color[22] = m_iVColor8;
|
|
Color[23] = m_iVColor9;
|
|
Color[24] = m_iVColor10;
|
|
Color[25] = m_iVColor11;
|
|
Color[26] = m_iVColor12;
|
|
Color[27] = m_iVColor13;
|
|
Color[28] = m_iVColor14;
|
|
Color[29] = m_iVColor15;
|
|
Color[30] = m_iColorFeed2;
|
|
Color[31] = m_iColorFeed3;
|
|
Color[32] = m_iVColorFeed2;
|
|
Color[33] = m_iVColorFeed3;
|
|
Color[34] = m_iColor16;
|
|
Color[35] = m_iColor17;
|
|
Color[36] = m_iVColor16;
|
|
Color[37] = m_iVColor17;
|
|
Color[38] = m_iColorHeatFeed2;
|
|
Color[39] = m_iColorHeatFeed3;
|
|
Color[40] = m_iColorHeatBack2;
|
|
Color[41] = m_iColorHeatBack3;
|
|
Color[42] = m_iColorFire2;
|
|
Color[43] = m_iColorFire3;
|
|
Color[44] = m_iVColorHeatFeed2;
|
|
Color[45] = m_iVColorHeatFeed3;
|
|
Color[46] = m_iVColorHeatBack2;
|
|
Color[47] = m_iVColorHeatBack3;
|
|
Color[48] = m_iVColorFire2;
|
|
Color[49] = m_iVColorFire3;
|
|
|
|
for(int i=0;i<50;i++){
|
|
CWnd* pWnd = GetDlgItem(id[i]);
|
|
CRect rect;
|
|
pWnd->GetClientRect(rect);
|
|
CDC* pDC = pWnd->GetDC();
|
|
CBrush* pNewBrush = new CBrush;
|
|
pNewBrush->CreateSolidBrush(acedGetRGB(Color[i]));
|
|
CBrush* pOldBrush = pDC->SelectObject(pNewBrush);
|
|
pDC->Rectangle(rect);
|
|
pDC->SelectObject(pOldBrush);
|
|
pWnd->ReleaseDC(pDC);
|
|
delete pNewBrush;
|
|
}
|
|
}
|
|
|
|
void CPipeSettingDlg::OnPaint()
|
|
{
|
|
CPaintDC dc(this); // device context for painting
|
|
DrawStatic();
|
|
}
|
|
|
|
|
|
void CPipeSettingDlg::UpdateDlgData(BOOL bIsRead)
|
|
{
|
|
UpdateData(TRUE);
|
|
CRegProperty regProp(GetRegLocation(), _T("TWTConfig"));
|
|
regProp.SetTopRootKey(HKEY_CURRENT_USER);
|
|
if(bIsRead){
|
|
m_iMaterial1 = 7;
|
|
m_iMaterial2 = 7;
|
|
m_iMaterial3 = 7;
|
|
m_iMaterial4 = 10;
|
|
m_iMaterial5 = 2;
|
|
m_iMaterial6 = 2;
|
|
m_iMaterial7 = 7;
|
|
m_iMaterial8 = 0;
|
|
m_iMaterial9 = 0;
|
|
m_iMaterial10 = 0;
|
|
m_iMaterial11 = 0;
|
|
m_iMaterial12 = 0;
|
|
m_iMaterial13 = 0;
|
|
m_iMaterial14 = 0;
|
|
m_iMaterial15 = 0;
|
|
m_iMaterial16 = 7;
|
|
m_iMaterial17 = 7;
|
|
m_iMaterialFeed2 = 7;
|
|
m_iMaterialFeed3 = 7;
|
|
m_iMaterialHeatFeed2 = 7;
|
|
m_iMaterialHeatFeed3 = 7;
|
|
m_iMaterialHeatBack2 = 7;
|
|
m_iMaterialHeatBack3 = 7;
|
|
m_iMaterialFire2 = 0;
|
|
m_iMaterialFire3 = 0;
|
|
|
|
m_nRadius1 = 0.5;
|
|
m_nRadius10 = 0.5;
|
|
m_nRadius11 = 0.5;
|
|
m_nRadius12 = 0.5;
|
|
m_nRadius13 = 0.5;
|
|
m_nRadius14 = 0.5;
|
|
m_nRadius15 = 0.5;
|
|
m_nRadius16 = 0.5;
|
|
m_nRadius17 = 0.5;
|
|
m_nRadius2 = 0.5;
|
|
m_nRadius3 = 0.5;
|
|
m_nRadius4 = 0.5;
|
|
m_nRadius5 = 0.5;
|
|
m_nRadius6 = 0.5;
|
|
m_nRadius7 = 0.5;
|
|
m_nRadius8 = 0.5;
|
|
m_nRadius9 = 0.5;
|
|
m_dRadiusFeed2 = 0.5;
|
|
m_dRadiusFeed3 = 0.5;
|
|
m_nRadiusFire2 = 0.5;
|
|
m_nRadiusFire3 = 0.5;
|
|
m_nRadiusHeatBack2 = 0.5;
|
|
m_nRadiusHeatBack3 = 0.5;
|
|
m_nRadiusHeatFeed2 = 0.5;
|
|
m_nRadiusHeatFeed3 = 0.5;
|
|
|
|
regProp.GetValue(_T("IsLineTypeByLayer"), m_bLineTypeByLayer);
|
|
regProp.GetValue(_T("Pipe1Width"), m_nWidth1);
|
|
regProp.GetValue(_T("Pipe2Width"), m_nWidth2);
|
|
regProp.GetValue(_T("Pipe3Width"), m_nWidth3);
|
|
regProp.GetValue(_T("Pipe4Width"), m_nWidth4);
|
|
regProp.GetValue(_T("Pipe5Width"), m_nWidth5);
|
|
regProp.GetValue(_T("Pipe6Width"), m_nWidth6);
|
|
regProp.GetValue(_T("Pipe7Width"), m_nWidth7);
|
|
regProp.GetValue(_T("Pipe8Width"), m_nWidth8);
|
|
regProp.GetValue(_T("Pipe9Width"), m_nWidth9);
|
|
regProp.GetValue(_T("Pipe10Width"), m_nWidth10);
|
|
regProp.GetValue(_T("Pipe11Width"), m_nWidth11);
|
|
regProp.GetValue(_T("Pipe12Width"), m_nWidth12);
|
|
regProp.GetValue(_T("Pipe13Width"), m_nWidth13);
|
|
regProp.GetValue(_T("Pipe14Width"), m_nWidth14);
|
|
regProp.GetValue(_T("Pipe15Width"), m_nWidth15);
|
|
regProp.GetValue(_T("Pipe16Width"), m_nWidth16);
|
|
regProp.GetValue(_T("Pipe17Width"), m_nWidth17);
|
|
|
|
regProp.GetValue(_T("Pipe18Width"), m_dWidthFeed2);
|
|
regProp.GetValue(_T("Pipe19Width"), m_dWidthFeed3);
|
|
regProp.GetValue(_T("Pipe20Width"), m_dWidthHeatFeed2);
|
|
regProp.GetValue(_T("Pipe21Width"), m_dWidthHeatFeed3);
|
|
regProp.GetValue(_T("Pipe22Width"), m_dWidthHeatBack2);
|
|
regProp.GetValue(_T("Pipe23Width"), m_dWidthHeatBack3);
|
|
regProp.GetValue(_T("Pipe24Width"), m_dWidthFire2);
|
|
regProp.GetValue(_T("Pipe25Width"), m_dWidthFire3);
|
|
|
|
regProp.GetValue(_T("Pipe1Radius"), m_nRadius1);
|
|
regProp.GetValue(_T("Pipe2Radius"), m_nRadius2);
|
|
regProp.GetValue(_T("Pipe3Radius"), m_nRadius3);
|
|
regProp.GetValue(_T("Pipe4Radius"), m_nRadius4);
|
|
regProp.GetValue(_T("Pipe5Radius"), m_nRadius5);
|
|
regProp.GetValue(_T("Pipe6Radius"), m_nRadius6);
|
|
regProp.GetValue(_T("Pipe7Radius"), m_nRadius7);
|
|
regProp.GetValue(_T("Pipe8Radius"), m_nRadius8);
|
|
regProp.GetValue(_T("Pipe9Radius"), m_nRadius9);
|
|
regProp.GetValue(_T("Pipe10Radius"), m_nRadius10);
|
|
regProp.GetValue(_T("Pipe11Radius"), m_nRadius11);
|
|
regProp.GetValue(_T("Pipe12Radius"), m_nRadius12);
|
|
regProp.GetValue(_T("Pipe13Radius"), m_nRadius13);
|
|
regProp.GetValue(_T("Pipe14Radius"), m_nRadius14);
|
|
regProp.GetValue(_T("Pipe15Radius"), m_nRadius15);
|
|
regProp.GetValue(_T("Pipe16Radius"), m_nRadius16);
|
|
regProp.GetValue(_T("Pipe17Radius"), m_nRadius17);
|
|
|
|
regProp.GetValue(_T("Pipe18Radius"), m_dRadiusFeed2);
|
|
regProp.GetValue(_T("Pipe19Radius"), m_dRadiusFeed3);
|
|
regProp.GetValue(_T("Pipe20Radius"), m_nRadiusHeatFeed2);
|
|
regProp.GetValue(_T("Pipe21Radius"), m_nRadiusHeatFeed3);
|
|
regProp.GetValue(_T("Pipe22Radius"), m_nRadiusHeatBack2);
|
|
regProp.GetValue(_T("Pipe23Radius"), m_nRadiusHeatBack3);
|
|
regProp.GetValue(_T("Pipe24Radius"), m_nRadiusFire2);
|
|
regProp.GetValue(_T("Pipe25Radius"), m_nRadiusFire3);
|
|
|
|
regProp.GetValue(_T("Pipe1Name"), m_csPipeName1);
|
|
regProp.GetValue(_T("Pipe2Name"), m_csPipeName2);
|
|
regProp.GetValue(_T("Pipe3Name"), m_csPipeName3);
|
|
regProp.GetValue(_T("Pipe4Name"), m_csPipeName4);
|
|
regProp.GetValue(_T("Pipe5Name"), m_csPipeName5);
|
|
regProp.GetValue(_T("Pipe6Name"), m_csPipeName6);
|
|
regProp.GetValue(_T("Pipe7Name"), m_csPipeName7);
|
|
|
|
/* if(m_nRadius1 > 20)
|
|
m_nRadius1 = m_nRadius1 / 100;
|
|
if(m_nRadius2 > 20)
|
|
m_nRadius2 = m_nRadius2 / 100;
|
|
if(m_nRadius3 > 20)
|
|
m_nRadius3 = m_nRadius3 / 100;
|
|
if(m_nRadius4 > 20)
|
|
m_nRadius4 = m_nRadius4 / 100;
|
|
if(m_nRadius5 > 20)
|
|
m_nRadius5 = m_nRadius5 / 100;
|
|
if(m_nRadius6 > 20)
|
|
m_nRadius6 = m_nRadius6 / 100;
|
|
if(m_nRadius7 > 20)
|
|
m_nRadius7 = m_nRadius7 / 100;
|
|
if(m_nRadius8 > 20)
|
|
m_nRadius8 = m_nRadius8 / 100;
|
|
if(m_nRadius9 > 20)
|
|
m_nRadius9 = m_nRadius9 / 100;
|
|
if(m_nRadius10 > 20)
|
|
m_nRadius10 = m_nRadius10 / 100;
|
|
if(m_nRadius11 > 20)
|
|
m_nRadius11 = m_nRadius11 / 100;
|
|
if(m_nRadius12 > 20)
|
|
m_nRadius12 = m_nRadius12 / 100;
|
|
if(m_nRadius13 > 20)
|
|
m_nRadius13 = m_nRadius13 / 100;
|
|
if(m_nRadius14 > 20)
|
|
m_nRadius14 = m_nRadius14 / 100;
|
|
if(m_nRadius15 > 20)
|
|
m_nRadius15 = m_nRadius15 / 100;
|
|
if(m_nRadius16 > 20)
|
|
m_nRadius16 = m_nRadius16 / 100;
|
|
if(m_nRadius17 > 20)
|
|
m_nRadius17 = m_nRadius17 / 100;
|
|
|
|
if(m_dRadiusFeed2 > 20)
|
|
m_dRadiusFeed2 = m_dRadiusFeed2 / 100;
|
|
if(m_dRadiusFeed3 > 20)
|
|
m_dRadiusFeed3 = m_dRadiusFeed3 / 100;
|
|
*/
|
|
|
|
regProp.GetValue(_T("PipeLineType1"), m_csLineType1);
|
|
regProp.GetValue(_T("PipeLineType2"), m_csLineType2);
|
|
regProp.GetValue(_T("PipeLineType3"), m_csLineType3);
|
|
regProp.GetValue(_T("PipeLineType4"), m_csLineType4);
|
|
regProp.GetValue(_T("PipeLineType5"), m_csLineType5);
|
|
regProp.GetValue(_T("PipeLineType6"), m_csLineType6);
|
|
regProp.GetValue(_T("PipeLineType7"), m_csLineType7);
|
|
regProp.GetValue(_T("PipeLineType8"), m_csLineType8);
|
|
regProp.GetValue(_T("PipeLineType9"), m_csLineType9);
|
|
regProp.GetValue(_T("PipeLineType10"), m_csLineType10);
|
|
regProp.GetValue(_T("PipeLineType11"), m_csLineType11);
|
|
regProp.GetValue(_T("PipeLineType12"), m_csLineType12);
|
|
regProp.GetValue(_T("PipeLineType13"), m_csLineType13);
|
|
regProp.GetValue(_T("PipeLineType14"), m_csLineType14);
|
|
regProp.GetValue(_T("PipeLineType15"), m_csLineType15);
|
|
regProp.GetValue(_T("PipeLineType16"), m_csLineType16);
|
|
regProp.GetValue(_T("PipeLineType17"), m_csLineType17);
|
|
regProp.GetValue(_T("PipeLineType18"), m_csLineTypeFeed2);
|
|
regProp.GetValue(_T("PipeLineType19"), m_csLineTypeFeed3);
|
|
regProp.GetValue(_T("PipeLineType20"), m_csLineTypeHeatFeed2);
|
|
regProp.GetValue(_T("PipeLineType21"), m_csLineTypeHeatFeed3);
|
|
regProp.GetValue(_T("PipeLineType22"), m_csLineTypeHeatBack2);
|
|
regProp.GetValue(_T("PipeLineType23"), m_csLineTypeHeatBack3);
|
|
regProp.GetValue(_T("PipeLineType24"), m_csLineTypeFire2);
|
|
regProp.GetValue(_T("PipeLineType25"), m_csLineTypeFire3);
|
|
|
|
regProp.GetValue(_T("Pipe1Dim"), m_csDim1);
|
|
regProp.GetValue(_T("Pipe2Dim"), m_csDim2);
|
|
regProp.GetValue(_T("Pipe3Dim"), m_csDim3);
|
|
regProp.GetValue(_T("Pipe4Dim"), m_csDim4);
|
|
regProp.GetValue(_T("Pipe5Dim"), m_csDim5);
|
|
regProp.GetValue(_T("Pipe6Dim"), m_csDim6);
|
|
regProp.GetValue(_T("Pipe7Dim"), m_csDim7);
|
|
regProp.GetValue(_T("Pipe8Dim"), m_csDim8);
|
|
regProp.GetValue(_T("Pipe9Dim"), m_csDim9);
|
|
regProp.GetValue(_T("Pipe10Dim"), m_csDim10);
|
|
regProp.GetValue(_T("Pipe11Dim"), m_csDim11);
|
|
regProp.GetValue(_T("Pipe12Dim"), m_csDim12);
|
|
regProp.GetValue(_T("Pipe13Dim"), m_csDim13);
|
|
regProp.GetValue(_T("Pipe14Dim"), m_csDim14);
|
|
regProp.GetValue(_T("Pipe15Dim"), m_csDim15);
|
|
regProp.GetValue(_T("Pipe16Dim"), m_csDim16);
|
|
regProp.GetValue(_T("Pipe17Dim"), m_csDim17);
|
|
|
|
regProp.GetValue(_T("Pipe18Dim"), m_csDimFeed2);
|
|
regProp.GetValue(_T("Pipe19Dim"), m_csDimFeed3);
|
|
regProp.GetValue(_T("Pipe20Dim"), m_csDimHeatFeed2);
|
|
regProp.GetValue(_T("Pipe21Dim"), m_csDimHeatFeed3);
|
|
regProp.GetValue(_T("Pipe22Dim"), m_csDimHeatBack2);
|
|
regProp.GetValue(_T("Pipe23Dim"), m_csDimHeatBack3);
|
|
regProp.GetValue(_T("Pipe24Dim"), m_csDimFire2);
|
|
regProp.GetValue(_T("Pipe25Dim"), m_csDimFire3);
|
|
|
|
|
|
regProp.GetValue(_T("IsDoublePipe1"), m_bTwo1);
|
|
regProp.GetValue(_T("IsDoublePipe2"), m_bTwo2);
|
|
regProp.GetValue(_T("IsDoublePipe3"), m_bTwo3);
|
|
regProp.GetValue(_T("IsDoublePipe4"), m_bTwo4);
|
|
regProp.GetValue(_T("IsDoublePipe5"), m_bTwo5);
|
|
regProp.GetValue(_T("IsDoublePipe6"), m_bTwo6);
|
|
regProp.GetValue(_T("IsDoublePipe7"), m_bTwo7);
|
|
regProp.GetValue(_T("IsDoublePipe8"), m_bTwo8);
|
|
regProp.GetValue(_T("IsDoublePipe9"), m_bTwo9);
|
|
// regProp.GetValue(_T("IsDoublePipe10"), m_bTwo10);
|
|
// regProp.GetValue(_T("IsDoublePipe11"), m_bTwo11);
|
|
// regProp.GetValue(_T("IsDoublePipe12"), m_bTwo12);
|
|
// regProp.GetValue(_T("IsDoublePipe13"), m_bTwo13);
|
|
// regProp.GetValue(_T("IsDoublePipe14"), m_bTwo14);
|
|
// regProp.GetValue(_T("IsDoublePipe15"), m_bTwo15);
|
|
// regProp.GetValue(_T("IsDoublePipe16"), m_bTwoFeed2);
|
|
// regProp.GetValue(_T("IsDoublePipe17"), m_bTwoFeed3);
|
|
|
|
regProp.GetValue(_T("Pipe1Material"), m_iMaterial1);
|
|
regProp.GetValue(_T("Pipe2Material"), m_iMaterial2);
|
|
regProp.GetValue(_T("Pipe3Material"), m_iMaterial3);
|
|
regProp.GetValue(_T("Pipe4Material"), m_iMaterial4);
|
|
regProp.GetValue(_T("Pipe5Material"), m_iMaterial5);
|
|
regProp.GetValue(_T("Pipe6Material"), m_iMaterial6);
|
|
regProp.GetValue(_T("Pipe7Material"), m_iMaterial7);
|
|
regProp.GetValue(_T("Pipe8Material"), m_iMaterial8);
|
|
regProp.GetValue(_T("Pipe9Material"), m_iMaterial9);
|
|
regProp.GetValue(_T("Pipe10Material"), m_iMaterial10);
|
|
regProp.GetValue(_T("Pipe11Material"), m_iMaterial11);
|
|
regProp.GetValue(_T("Pipe12Material"), m_iMaterial12);
|
|
regProp.GetValue(_T("Pipe13Material"), m_iMaterial13);
|
|
regProp.GetValue(_T("Pipe14Material"), m_iMaterial14);
|
|
regProp.GetValue(_T("Pipe15Material"), m_iMaterial15);
|
|
regProp.GetValue(_T("Pipe16Material"), m_iMaterial16);
|
|
regProp.GetValue(_T("Pipe17Material"), m_iMaterial17);
|
|
regProp.GetValue(_T("Pipe18Material"), m_iMaterialFeed2);
|
|
regProp.GetValue(_T("Pipe19Material"), m_iMaterialFeed3);
|
|
regProp.GetValue(_T("Pipe20Material"), m_iMaterialHeatFeed2);
|
|
regProp.GetValue(_T("Pipe21Material"), m_iMaterialHeatFeed3);
|
|
regProp.GetValue(_T("Pipe22Material"), m_iMaterialHeatBack2);
|
|
regProp.GetValue(_T("Pipe23Material"), m_iMaterialHeatBack3);
|
|
regProp.GetValue(_T("Pipe24Material"), m_iMaterialFire2);
|
|
regProp.GetValue(_T("Pipe25Material"), m_iMaterialFire3);
|
|
|
|
|
|
|
|
}
|
|
else {
|
|
regProp.SetValue(_T("Pipe1Material"), m_iMaterial1);
|
|
regProp.SetValue(_T("Pipe2Material"), m_iMaterial2);
|
|
regProp.SetValue(_T("Pipe3Material"), m_iMaterial3);
|
|
regProp.SetValue(_T("Pipe4Material"), m_iMaterial4);
|
|
regProp.SetValue(_T("Pipe5Material"), m_iMaterial5);
|
|
regProp.SetValue(_T("Pipe6Material"), m_iMaterial6);
|
|
regProp.SetValue(_T("Pipe7Material"), m_iMaterial7);
|
|
regProp.SetValue(_T("Pipe8Material"), m_iMaterial8);
|
|
regProp.SetValue(_T("Pipe9Material"), m_iMaterial9);
|
|
regProp.SetValue(_T("Pipe10Material"), m_iMaterial10);
|
|
regProp.SetValue(_T("Pipe11Material"), m_iMaterial11);
|
|
regProp.SetValue(_T("Pipe12Material"), m_iMaterial12);
|
|
regProp.SetValue(_T("Pipe13Material"), m_iMaterial13);
|
|
regProp.SetValue(_T("Pipe14Material"), m_iMaterial14);
|
|
regProp.SetValue(_T("Pipe15Material"), m_iMaterial15);
|
|
regProp.SetValue(_T("Pipe16Material"), m_iMaterial16);
|
|
regProp.SetValue(_T("Pipe17Material"), m_iMaterial17);
|
|
regProp.SetValue(_T("Pipe18Material"), m_iMaterialFeed2);
|
|
regProp.SetValue(_T("Pipe19Material"), m_iMaterialFeed3);
|
|
regProp.SetValue(_T("Pipe20Material"), m_iMaterialHeatFeed2);
|
|
regProp.SetValue(_T("Pipe21Material"), m_iMaterialHeatFeed3);
|
|
regProp.SetValue(_T("Pipe22Material"), m_iMaterialHeatBack2);
|
|
regProp.SetValue(_T("Pipe23Material"), m_iMaterialHeatBack3);
|
|
regProp.SetValue(_T("Pipe24Material"), m_iMaterialFire2);
|
|
regProp.SetValue(_T("Pipe25Material"), m_iMaterialFire3);
|
|
|
|
regProp.SetValue(_T("Pipe1Radius"), m_nRadius1);
|
|
regProp.SetValue(_T("Pipe2Radius"), m_nRadius2);
|
|
regProp.SetValue(_T("Pipe3Radius"), m_nRadius3);
|
|
regProp.SetValue(_T("Pipe4Radius"), m_nRadius4);
|
|
regProp.SetValue(_T("Pipe5Radius"), m_nRadius5);
|
|
regProp.SetValue(_T("Pipe6Radius"), m_nRadius6);
|
|
regProp.SetValue(_T("Pipe7Radius"), m_nRadius7);
|
|
regProp.SetValue(_T("Pipe8Radius"), m_nRadius8);
|
|
regProp.SetValue(_T("Pipe9Radius"), m_nRadius9);
|
|
regProp.SetValue(_T("Pipe10Radius"), m_nRadius10);
|
|
regProp.SetValue(_T("Pipe11Radius"), m_nRadius11);
|
|
regProp.SetValue(_T("Pipe12Radius"), m_nRadius12);
|
|
regProp.SetValue(_T("Pipe13Radius"), m_nRadius13);
|
|
regProp.SetValue(_T("Pipe14Radius"), m_nRadius14);
|
|
regProp.SetValue(_T("Pipe15Radius"), m_nRadius15);
|
|
regProp.SetValue(_T("Pipe16Radius"), m_nRadius16);
|
|
regProp.SetValue(_T("Pipe17Radius"), m_nRadius17);
|
|
regProp.SetValue(_T("Pipe18Radius"), m_dRadiusFeed2);
|
|
regProp.SetValue(_T("Pipe19Radius"), m_dRadiusFeed3);
|
|
regProp.SetValue(_T("Pipe20Radius"), m_nRadiusHeatFeed2);
|
|
regProp.SetValue(_T("Pipe21Radius"), m_nRadiusHeatFeed3);
|
|
regProp.SetValue(_T("Pipe22Radius"), m_nRadiusHeatBack2);
|
|
regProp.SetValue(_T("Pipe23Radius"), m_nRadiusHeatBack3);
|
|
regProp.SetValue(_T("Pipe24Radius"), m_nRadiusFire2);
|
|
regProp.SetValue(_T("Pipe25Radius"), m_nRadiusFire3);
|
|
|
|
|
|
regProp.SetValue(_T("Pipe1Width"), m_nWidth1);
|
|
regProp.SetValue(_T("Pipe2Width"), m_nWidth2);
|
|
regProp.SetValue(_T("Pipe3Width"), m_nWidth3);
|
|
regProp.SetValue(_T("Pipe4Width"), m_nWidth4);
|
|
regProp.SetValue(_T("Pipe5Width"), m_nWidth5);
|
|
regProp.SetValue(_T("Pipe6Width"), m_nWidth6);
|
|
regProp.SetValue(_T("Pipe7Width"), m_nWidth7);
|
|
regProp.SetValue(_T("Pipe8Width"), m_nWidth8);
|
|
regProp.SetValue(_T("Pipe9Width"), m_nWidth9);
|
|
regProp.SetValue(_T("Pipe10Width"), m_nWidth10);
|
|
regProp.SetValue(_T("Pipe11Width"), m_nWidth11);
|
|
regProp.SetValue(_T("Pipe12Width"), m_nWidth12);
|
|
regProp.SetValue(_T("Pipe13Width"), m_nWidth13);
|
|
regProp.SetValue(_T("Pipe14Width"), m_nWidth14);
|
|
regProp.SetValue(_T("Pipe15Width"), m_nWidth15);
|
|
regProp.SetValue(_T("Pipe16Width"), m_nWidth16);
|
|
regProp.SetValue(_T("Pipe17Width"), m_nWidth17);
|
|
regProp.SetValue(_T("Pipe18Width"), m_dWidthFeed2);
|
|
regProp.SetValue(_T("Pipe19Width"), m_dWidthFeed3);
|
|
regProp.SetValue(_T("Pipe20Width"), m_dWidthHeatFeed2);
|
|
regProp.SetValue(_T("Pipe21Width"), m_dWidthHeatFeed3);
|
|
regProp.SetValue(_T("Pipe22Width"), m_dWidthHeatBack2);
|
|
regProp.SetValue(_T("Pipe23Width"), m_dWidthHeatBack3);
|
|
regProp.SetValue(_T("Pipe24Width"), m_dWidthFire2);
|
|
regProp.SetValue(_T("Pipe25Width"), m_dWidthFire3);
|
|
|
|
regProp.SetValue(_T("Pipe1Name"), m_csPipeName1);
|
|
regProp.SetValue(_T("Pipe2Name"), m_csPipeName2);
|
|
regProp.SetValue(_T("Pipe3Name"), m_csPipeName3);
|
|
regProp.SetValue(_T("Pipe4Name"), m_csPipeName4);
|
|
regProp.SetValue(_T("Pipe5Name"), m_csPipeName5);
|
|
regProp.SetValue(_T("Pipe6Name"), m_csPipeName6);
|
|
regProp.SetValue(_T("Pipe7Name"), m_csPipeName7);
|
|
|
|
regProp.SetValue(_T("Pipe1Dim"), m_csDim1);
|
|
regProp.SetValue(_T("Pipe2Dim"), m_csDim2);
|
|
regProp.SetValue(_T("Pipe3Dim"), m_csDim3);
|
|
regProp.SetValue(_T("Pipe4Dim"), m_csDim4);
|
|
regProp.SetValue(_T("Pipe5Dim"), m_csDim5);
|
|
regProp.SetValue(_T("Pipe6Dim"), m_csDim6);
|
|
regProp.SetValue(_T("Pipe7Dim"), m_csDim7);
|
|
regProp.SetValue(_T("Pipe8Dim"), m_csDim8);
|
|
regProp.SetValue(_T("Pipe9Dim"), m_csDim9);
|
|
regProp.SetValue(_T("Pipe10Dim"), m_csDim10);
|
|
regProp.SetValue(_T("Pipe11Dim"), m_csDim11);
|
|
regProp.SetValue(_T("Pipe12Dim"), m_csDim12);
|
|
regProp.SetValue(_T("Pipe13Dim"), m_csDim13);
|
|
regProp.SetValue(_T("Pipe14Dim"), m_csDim14);
|
|
regProp.SetValue(_T("Pipe15Dim"), m_csDim15);
|
|
regProp.SetValue(_T("Pipe16Dim"), m_csDim16);
|
|
regProp.SetValue(_T("Pipe17Dim"), m_csDim17);
|
|
|
|
regProp.SetValue(_T("Pipe18Dim"), m_csDimFeed2);
|
|
regProp.SetValue(_T("Pipe19Dim"), m_csDimFeed3);
|
|
regProp.SetValue(_T("Pipe20Dim"), m_csDimHeatFeed2);
|
|
regProp.SetValue(_T("Pipe21Dim"), m_csDimHeatFeed3);
|
|
regProp.SetValue(_T("Pipe22Dim"), m_csDimHeatBack2);
|
|
regProp.SetValue(_T("Pipe23Dim"), m_csDimHeatBack3);
|
|
regProp.SetValue(_T("Pipe24Dim"), m_csDimFire2);
|
|
regProp.SetValue(_T("Pipe25Dim"), m_csDimFire3);
|
|
|
|
regProp.SetValue(_T("IsDoublePipe1"), m_bTwo1);
|
|
regProp.SetValue(_T("IsDoublePipe2"), m_bTwo2);
|
|
regProp.SetValue(_T("IsDoublePipe3"), m_bTwo3);
|
|
regProp.SetValue(_T("IsDoublePipe4"), m_bTwo4);
|
|
regProp.SetValue(_T("IsDoublePipe5"), m_bTwo5);
|
|
regProp.SetValue(_T("IsDoublePipe6"), m_bTwo6);
|
|
regProp.SetValue(_T("IsDoublePipe7"), m_bTwo7);
|
|
regProp.SetValue(_T("IsDoublePipe8"), m_bTwo8);
|
|
regProp.SetValue(_T("IsDoublePipe9"), m_bTwo9);
|
|
// regProp.SetValue(_T("IsDoublePipe10"), m_bTwo10);
|
|
// regProp.SetValue(_T("IsDoublePipe11"), m_bTwo11);
|
|
// regProp.SetValue(_T("IsDoublePipe12"), m_bTwo12);
|
|
// regProp.SetValue(_T("IsDoublePipe13"), m_bTwo13);
|
|
// regProp.SetValue(_T("IsDoublePipe14"), m_bTwo14);
|
|
// regProp.SetValue(_T("IsDoublePipe15"), m_bTwo15);
|
|
// regProp.SetValue(_T("IsDoublePipe16"), m_bTwoFeed2);
|
|
// regProp.SetValue(_T("IsDoublePipe17"), m_bTwoFeed3);
|
|
|
|
regProp.SetValue(_T("IsLineTypeByLayer"), m_bLineTypeByLayer);
|
|
|
|
g_bLineTypeByLayer = m_bLineTypeByLayer;
|
|
g_nPipeWidth[0] = m_nWidth1;
|
|
g_nPipeWidth[1] = m_nWidth2;
|
|
g_nPipeWidth[2] = m_nWidth3;
|
|
g_nPipeWidth[3] = m_nWidth4;
|
|
g_nPipeWidth[4] = m_nWidth5;
|
|
g_nPipeWidth[5] = m_nWidth6;
|
|
g_nPipeWidth[6] = m_nWidth7;
|
|
g_nPipeWidth[7] = m_nWidth8;
|
|
g_nPipeWidth[8] = m_nWidth9;
|
|
g_nPipeWidth[9] = m_nWidth10;
|
|
g_nPipeWidth[10] = m_nWidth11;
|
|
g_nPipeWidth[11] = m_nWidth12;
|
|
g_nPipeWidth[12] = m_nWidth13;
|
|
g_nPipeWidth[13] = m_nWidth14;
|
|
g_nPipeWidth[14] = m_nWidth15;
|
|
g_nPipeWidth[15] = m_nWidth16;
|
|
g_nPipeWidth[16] = m_nWidth17;
|
|
g_nPipeWidth[17] = m_dWidthFeed2;
|
|
g_nPipeWidth[18] = m_dWidthFeed3;
|
|
|
|
g_nPipeRadius[0] = m_nRadius1;
|
|
g_nPipeRadius[1] = m_nRadius2;
|
|
g_nPipeRadius[2] = m_nRadius3;
|
|
g_nPipeRadius[3] = m_nRadius4;
|
|
g_nPipeRadius[4] = m_nRadius5;
|
|
g_nPipeRadius[5] = m_nRadius6;
|
|
g_nPipeRadius[6] = m_nRadius7;
|
|
g_nPipeRadius[7] = m_nRadius8;
|
|
g_nPipeRadius[8] = m_nRadius9;
|
|
g_nPipeRadius[9] = m_nRadius10;
|
|
g_nPipeRadius[10] = m_nRadius11;
|
|
g_nPipeRadius[11] = m_nRadius12;
|
|
g_nPipeRadius[12] = m_nRadius13;
|
|
g_nPipeRadius[13] = m_nRadius14;
|
|
g_nPipeRadius[14] = m_nRadius15;
|
|
g_nPipeRadius[15] = m_nRadius16;
|
|
g_nPipeRadius[16] = m_nRadius17;
|
|
|
|
g_nPipeRadius[17] = m_dRadiusFeed2;
|
|
g_nPipeRadius[18] = m_dRadiusFeed3;
|
|
g_nPipeRadius[20] = m_nRadiusHeatFeed2;
|
|
g_nPipeRadius[21] = m_nRadiusHeatFeed3;
|
|
g_nPipeRadius[22] = m_nRadiusHeatBack2;
|
|
g_nPipeRadius[23] = m_nRadiusHeatBack3;
|
|
g_nPipeRadius[24] = m_nRadiusFire2;
|
|
g_nPipeRadius[25] = m_nRadiusFire3;
|
|
|
|
|
|
g_iPipeMaterial[0] = m_iMaterial1;
|
|
g_iPipeMaterial[1] = m_iMaterial2;
|
|
g_iPipeMaterial[2] = m_iMaterial3;
|
|
g_iPipeMaterial[3] = m_iMaterial4;
|
|
g_iPipeMaterial[4] = m_iMaterial5;
|
|
g_iPipeMaterial[5] = m_iMaterial6;
|
|
g_iPipeMaterial[6] = m_iMaterial7;
|
|
g_iPipeMaterial[7] = m_iMaterial8;
|
|
g_iPipeMaterial[8] = m_iMaterial9;
|
|
g_iPipeMaterial[9] = m_iMaterial10;
|
|
g_iPipeMaterial[10] = m_iMaterial11;
|
|
g_iPipeMaterial[11] = m_iMaterial12;
|
|
g_iPipeMaterial[12] = m_iMaterial13;
|
|
g_iPipeMaterial[13] = m_iMaterial14;
|
|
g_iPipeMaterial[14] = m_iMaterial15;
|
|
g_iPipeMaterial[15] = m_iMaterial16;
|
|
g_iPipeMaterial[16] = m_iMaterial17;
|
|
g_iPipeMaterial[17] = m_iMaterialFeed2;
|
|
g_iPipeMaterial[18] = m_iMaterialFeed3;
|
|
|
|
g_csPipeDim[0] = m_csDim1;
|
|
g_csPipeDim[1] = m_csDim2;
|
|
g_csPipeDim[2] = m_csDim3;
|
|
g_csPipeDim[3] = m_csDim4;
|
|
g_csPipeDim[4] = m_csDim5;
|
|
g_csPipeDim[5] = m_csDim6;
|
|
g_csPipeDim[6] = m_csDim7;
|
|
g_csPipeDim[7] = m_csDim8;
|
|
g_csPipeDim[8] = m_csDim9;
|
|
g_csPipeDim[9] = m_csDim10;
|
|
g_csPipeDim[10] = m_csDim11;
|
|
g_csPipeDim[11] = m_csDim12;
|
|
g_csPipeDim[12] = m_csDim13;
|
|
g_csPipeDim[13] = m_csDim14;
|
|
g_csPipeDim[14] = m_csDim15;
|
|
|
|
g_csPipeDim[15] = m_csDim16;
|
|
g_csPipeDim[16] = m_csDim17;
|
|
|
|
g_csPipeDim[17] = m_csDimFeed2;
|
|
g_csPipeDim[18] = m_csDimFeed3;
|
|
g_csPipeDim[19] = m_csDimHeatFeed2;
|
|
g_csPipeDim[20] = m_csDimHeatFeed3;
|
|
g_csPipeDim[21] = m_csDimHeatBack2;
|
|
g_csPipeDim[22] = m_csDimHeatBack3;
|
|
g_csPipeDim[23] = m_csDimFire2;
|
|
g_csPipeDim[24] = m_csDimFire3;
|
|
|
|
g_bPipeDouble[0] = m_bTwo1;
|
|
g_bPipeDouble[1] = m_bTwo2;
|
|
g_bPipeDouble[2] = m_bTwo3;
|
|
g_bPipeDouble[3] = m_bTwo4;
|
|
g_bPipeDouble[4] = m_bTwo5;
|
|
g_bPipeDouble[5] = m_bTwo6;
|
|
g_bPipeDouble[6] = m_bTwo7;
|
|
g_bPipeDouble[7] = m_bTwo8;
|
|
g_bPipeDouble[8] = m_bTwo9;
|
|
// g_bPipeDouble[9] = m_bTwo10;
|
|
// g_bPipeDouble[10] = m_bTwo11;
|
|
// g_bPipeDouble[11] = m_bTwo12;
|
|
// g_bPipeDouble[12] = m_bTwo13;
|
|
// g_bPipeDouble[13] = m_bTwo14;
|
|
// g_bPipeDouble[14] = m_bTwo15;
|
|
// g_bPipeDouble[15] = m_bTwoFeed2;
|
|
// g_bPipeDouble[16] = m_bTwoFeed3;
|
|
|
|
if(g_csPipeName[0] != m_csPipeName1)
|
|
SetLayerEngName(_T("凝结水管线"), _T("PIPE-")+m_csPipeName1);
|
|
if(g_csPipeName[1] != m_csPipeName2)
|
|
SetLayerEngName(_T("直饮水管线"), _T("PIPE-")+m_csPipeName2);
|
|
if(g_csPipeName[2] != m_csPipeName3)
|
|
SetLayerEngName(_T("压力污水管线"), _T("PIPE-")+m_csPipeName3);
|
|
if(g_csPipeName[3] != m_csPipeName4)
|
|
SetLayerEngName(_T("压力废水管线"), _T("PIPE-")+m_csPipeName4);
|
|
if(g_csPipeName[4] != m_csPipeName5)
|
|
SetLayerEngName(_T("压力雨水管线"), _T("PIPE-")+m_csPipeName5);
|
|
if(g_csPipeName[5] != m_csPipeName6)
|
|
SetLayerEngName(_T("用户1管线"), _T("PIPE-")+m_csPipeName6);
|
|
if(g_csPipeName[6] != m_csPipeName7)
|
|
SetLayerEngName(_T("用户2管线"), _T("PIPE-")+m_csPipeName7);
|
|
|
|
g_csPipeName[0] = m_csPipeName1;
|
|
g_csPipeName[1] = m_csPipeName2;
|
|
g_csPipeName[2] = m_csPipeName3;
|
|
g_csPipeName[3] = m_csPipeName4;
|
|
g_csPipeName[4] = m_csPipeName5;
|
|
g_csPipeName[5] = m_csPipeName6;
|
|
g_csPipeName[6] = m_csPipeName7;
|
|
|
|
|
|
AcDbDatabase *dwg=acdbCurDwg();
|
|
AcAxDocLock docLock(dwg);
|
|
VERIFY(docLock.lockStatus() == Acad::eOk);
|
|
|
|
if(m_iColor1 != GetLayerColorIdx(LAY_PIPE_FEED))
|
|
SetLayerColorIdx(LAY_PIPE_FEED, m_iColor1);
|
|
if(m_iColor2 != GetLayerColorIdx(LAY_PIPE_HEADFEED))
|
|
SetLayerColorIdx(LAY_PIPE_HEADFEED, m_iColor2);
|
|
if(m_iColor3 != GetLayerColorIdx(LAY_PIPE_HEADBACK))
|
|
SetLayerColorIdx(LAY_PIPE_HEADBACK, m_iColor3);
|
|
if(m_iColor4 != GetLayerColorIdx(LAY_PIPE_DIRT))
|
|
SetLayerColorIdx(LAY_PIPE_DIRT, m_iColor4);
|
|
if(m_iColor5 != GetLayerColorIdx(LAY_PIPE_USELESS))
|
|
SetLayerColorIdx(LAY_PIPE_USELESS, m_iColor5);
|
|
if(m_iColor6 != GetLayerColorIdx(LAY_PIPE_RAIN))
|
|
SetLayerColorIdx(LAY_PIPE_RAIN, m_iColor6);
|
|
if(m_iColor7 != GetLayerColorIdx(LAY_PIPE_USED))
|
|
SetLayerColorIdx(LAY_PIPE_USED, m_iColor7);
|
|
if(m_iColor8 != GetLayerColorIdx(LAY_PIPE_FIRE))
|
|
SetLayerColorIdx(LAY_PIPE_FIRE, m_iColor8);
|
|
if(m_iColor9 != GetLayerColorIdx(LAY_PIPE_SPRINKLE))
|
|
SetLayerColorIdx(LAY_PIPE_SPRINKLE, m_iColor9);
|
|
if(m_iColor10 != GetLayerColorIdx(LAY_PIPE_COAGULATE))
|
|
SetLayerColorIdx(LAY_PIPE_COAGULATE, m_iColor10);
|
|
if(m_iColor11 != GetLayerColorIdx(LAY_PIPE_DRINK))
|
|
SetLayerColorIdx(LAY_PIPE_DRINK, m_iColor11);
|
|
if(m_iColor12 != GetLayerColorIdx(LAY_PIPE_PRESSDIRT))
|
|
SetLayerColorIdx(LAY_PIPE_PRESSDIRT, m_iColor12);
|
|
if(m_iColor13 != GetLayerColorIdx(LAY_PIPE_PRESSUSELESS))
|
|
SetLayerColorIdx(LAY_PIPE_PRESSUSELESS, m_iColor13);
|
|
if(m_iColor14 != GetLayerColorIdx(LAY_PIPE_PRESSRAIN))
|
|
SetLayerColorIdx(LAY_PIPE_PRESSRAIN, m_iColor14);
|
|
if(m_iColor15 != GetLayerColorIdx(LAY_PIPE_OTHER))
|
|
SetLayerColorIdx(LAY_PIPE_OTHER, m_iColor15);
|
|
if(m_iColor16 != GetLayerColorIdx(LAY_PIPE_USER1))
|
|
SetLayerColorIdx(LAY_PIPE_USER1, m_iColor16);
|
|
if(m_iColor17 != GetLayerColorIdx(LAY_PIPE_USER2))
|
|
SetLayerColorIdx(LAY_PIPE_USER2, m_iColor17);
|
|
|
|
|
|
if(m_iColorFeed2 != GetLayerColorIdx(LAY_PIPE_FEED2))
|
|
SetLayerColorIdx(LAY_PIPE_FEED2, m_iColorFeed2);
|
|
if(m_iColorFeed3 != GetLayerColorIdx(LAY_PIPE_FEED3))
|
|
SetLayerColorIdx(LAY_PIPE_FEED3, m_iColorFeed3);
|
|
if(m_iColorHeatFeed2 != GetLayerColorIdx(LAY_PIPE_HEADFEED2))
|
|
SetLayerColorIdx(LAY_PIPE_HEADFEED2, m_iColorHeatFeed2);
|
|
if(m_iColorHeatFeed3 != GetLayerColorIdx(LAY_PIPE_HEADFEED3))
|
|
SetLayerColorIdx(LAY_PIPE_HEADFEED3, m_iColorHeatFeed3);
|
|
if(m_iColorHeatBack2 != GetLayerColorIdx(LAY_PIPE_HEADBACK2))
|
|
SetLayerColorIdx(LAY_PIPE_HEADBACK2, m_iColorHeatBack2);
|
|
if(m_iColorHeatBack3 != GetLayerColorIdx(LAY_PIPE_HEADBACK3))
|
|
SetLayerColorIdx(LAY_PIPE_HEADBACK3, m_iColorHeatBack3);
|
|
if(m_iColorFire2 != GetLayerColorIdx(LAY_PIPE_FIRE2))
|
|
SetLayerColorIdx(LAY_PIPE_FIRE2, m_iColorFire2);
|
|
if(m_iColorFire3 != GetLayerColorIdx(LAY_PIPE_FIRE3))
|
|
SetLayerColorIdx(LAY_PIPE_FIRE3, m_iColorFire3);
|
|
|
|
if(m_iVColor1 != GetLayerColorIdx(LAY_VPIPE_FEED))
|
|
SetLayerColorIdx(LAY_VPIPE_FEED, m_iVColor1);
|
|
if(m_iVColor2 != GetLayerColorIdx(LAY_VPIPE_HEADFEED))
|
|
SetLayerColorIdx(LAY_VPIPE_HEADFEED, m_iVColor2);
|
|
if(m_iVColor3 != GetLayerColorIdx(LAY_VPIPE_HEADBACK))
|
|
SetLayerColorIdx(LAY_VPIPE_HEADBACK, m_iVColor3);
|
|
if(m_iVColor4 != GetLayerColorIdx(LAY_VPIPE_DIRT))
|
|
SetLayerColorIdx(LAY_VPIPE_DIRT, m_iVColor4);
|
|
if(m_iVColor5 != GetLayerColorIdx(LAY_VPIPE_USELESS))
|
|
SetLayerColorIdx(LAY_VPIPE_USELESS, m_iVColor5);
|
|
if(m_iVColor6 != GetLayerColorIdx(LAY_VPIPE_RAIN))
|
|
SetLayerColorIdx(LAY_VPIPE_RAIN, m_iVColor6);
|
|
if(m_iVColor7 != GetLayerColorIdx(LAY_VPIPE_USED))
|
|
SetLayerColorIdx(LAY_VPIPE_USED, m_iVColor7);
|
|
if(m_iVColor8 != GetLayerColorIdx(LAY_VPIPE_FIRE))
|
|
SetLayerColorIdx(LAY_VPIPE_FIRE, m_iVColor8);
|
|
if(m_iVColor9 != GetLayerColorIdx(LAY_VPIPE_SPRINKLE))
|
|
SetLayerColorIdx(LAY_VPIPE_SPRINKLE, m_iVColor9);
|
|
if(m_iVColor10 != GetLayerColorIdx(LAY_VPIPE_COAGULATE))
|
|
SetLayerColorIdx(LAY_VPIPE_COAGULATE, m_iVColor10);
|
|
if(m_iVColor11 != GetLayerColorIdx(LAY_VPIPE_DRINK))
|
|
SetLayerColorIdx(LAY_VPIPE_DRINK, m_iVColor11);
|
|
if(m_iVColor12 != GetLayerColorIdx(LAY_VPIPE_PRESSDIRT))
|
|
SetLayerColorIdx(LAY_VPIPE_PRESSDIRT, m_iVColor12);
|
|
if(m_iVColor13 != GetLayerColorIdx(LAY_VPIPE_PRESSUSELESS))
|
|
SetLayerColorIdx(LAY_VPIPE_PRESSUSELESS, m_iVColor13);
|
|
if(m_iVColor14 != GetLayerColorIdx(LAY_VPIPE_PRESSRAIN))
|
|
SetLayerColorIdx(LAY_VPIPE_PRESSRAIN, m_iVColor14);
|
|
if(m_iVColor15 != GetLayerColorIdx(LAY_VPIPE_OTHER))
|
|
SetLayerColorIdx(LAY_VPIPE_OTHER, m_iVColor15);
|
|
if(m_iVColor16 != GetLayerColorIdx(LAY_VPIPE_USER1))
|
|
SetLayerColorIdx(LAY_VPIPE_USER1, m_iVColor16);
|
|
if(m_iVColor17 != GetLayerColorIdx(LAY_VPIPE_USER2))
|
|
SetLayerColorIdx(LAY_VPIPE_USER2, m_iVColor17);
|
|
|
|
|
|
if(m_iVColorFeed2 != GetLayerColorIdx(LAY_VPIPE_FEED2))
|
|
SetLayerColorIdx(LAY_VPIPE_FEED2, m_iVColorFeed2);
|
|
if(m_iVColorFeed3 != GetLayerColorIdx(LAY_VPIPE_FEED3))
|
|
SetLayerColorIdx(LAY_VPIPE_FEED3, m_iVColorFeed3);
|
|
if(m_iVColorHeatFeed2 != GetLayerColorIdx(LAY_VPIPE_HEADFEED2))
|
|
SetLayerColorIdx(LAY_VPIPE_HEADFEED2, m_iVColorHeatFeed2);
|
|
if(m_iVColorHeatFeed3 != GetLayerColorIdx(LAY_VPIPE_HEADFEED3))
|
|
SetLayerColorIdx(LAY_VPIPE_HEADFEED3, m_iVColorHeatFeed3);
|
|
if(m_iVColorHeatBack2 != GetLayerColorIdx(LAY_VPIPE_HEADBACK2))
|
|
SetLayerColorIdx(LAY_VPIPE_HEADBACK2, m_iVColorHeatBack2);
|
|
if(m_iVColorHeatBack3 != GetLayerColorIdx(LAY_VPIPE_HEADBACK3))
|
|
SetLayerColorIdx(LAY_VPIPE_HEADBACK3, m_iVColorHeatBack3);
|
|
if(m_iVColorFire2 != GetLayerColorIdx(LAY_VPIPE_FIRE2))
|
|
SetLayerColorIdx(LAY_VPIPE_FIRE2, m_iVColorFire2);
|
|
if(m_iVColorFire3 != GetLayerColorIdx(LAY_VPIPE_FIRE3))
|
|
SetLayerColorIdx(LAY_VPIPE_FIRE3, m_iVColorFire3);
|
|
|
|
m_csLineType1 = m_lstLineTypeName[m_iLineType1];
|
|
m_csLineType2 = m_lstLineTypeName[m_iLineType2];
|
|
m_csLineType3 = m_lstLineTypeName[m_iLineType3];
|
|
m_csLineType4 = m_lstLineTypeName[m_iLineType4];
|
|
m_csLineType5 = m_lstLineTypeName[m_iLineType5];
|
|
m_csLineType6 = m_lstLineTypeName[m_iLineType6];
|
|
m_csLineType7 = m_lstLineTypeName[m_iLineType7];
|
|
m_csLineType8 = m_lstLineTypeName[m_iLineType8];
|
|
m_csLineType9 = m_lstLineTypeName[m_iLineType9];
|
|
m_csLineType10 = m_lstLineTypeName[m_iLineType10];
|
|
m_csLineType11 = m_lstLineTypeName[m_iLineType11];
|
|
m_csLineType12 = m_lstLineTypeName[m_iLineType12];
|
|
m_csLineType13 = m_lstLineTypeName[m_iLineType13];
|
|
m_csLineType14 = m_lstLineTypeName[m_iLineType14];
|
|
m_csLineType15 = m_lstLineTypeName[m_iLineType15];
|
|
m_csLineType16 = m_lstLineTypeName[m_iLineType16];
|
|
m_csLineType17 = m_lstLineTypeName[m_iLineType17];
|
|
m_csLineTypeFeed2 = m_lstLineTypeName[m_iLineTypeFeed2];
|
|
m_csLineTypeFeed3 = m_lstLineTypeName[m_iLineTypeFeed3];
|
|
m_csLineTypeHeatFeed2 = m_lstLineTypeName[m_iLineTypeHeatFeed2];
|
|
m_csLineTypeHeatFeed3 = m_lstLineTypeName[m_iLineTypeHeatFeed3];
|
|
m_csLineTypeHeatBack2 = m_lstLineTypeName[m_iLineTypeHeatBack2];
|
|
m_csLineTypeHeatBack3 = m_lstLineTypeName[m_iLineTypeHeatBack3];
|
|
m_csLineTypeFire2 = m_lstLineTypeName[m_iLineTypeFire2];
|
|
m_csLineTypeFire3 = m_lstLineTypeName[m_iLineTypeFire3];
|
|
|
|
g_csTwtLineType[0] = m_csLineType1;
|
|
g_csTwtLineType[1] = m_csLineType2;
|
|
g_csTwtLineType[2] = m_csLineType3;
|
|
g_csTwtLineType[3] = m_csLineType4;
|
|
g_csTwtLineType[4] = m_csLineType5;
|
|
g_csTwtLineType[5] = m_csLineType6;
|
|
g_csTwtLineType[6] = m_csLineType7;
|
|
g_csTwtLineType[7] = m_csLineType8;
|
|
g_csTwtLineType[8] = m_csLineType9;
|
|
g_csTwtLineType[9] = m_csLineType10;
|
|
g_csTwtLineType[10] = m_csLineType11;
|
|
g_csTwtLineType[11] = m_csLineType12;
|
|
g_csTwtLineType[12] = m_csLineType13;
|
|
g_csTwtLineType[13] = m_csLineType14;
|
|
g_csTwtLineType[14] = m_csLineType15;
|
|
g_csTwtLineType[15] = m_csLineType16;
|
|
g_csTwtLineType[16] = m_csLineType17;
|
|
g_csTwtLineType[17] = m_csLineTypeFeed2;
|
|
g_csTwtLineType[18] = m_csLineTypeFeed3;
|
|
g_csTwtLineType[19] = m_csLineTypeHeatFeed2;
|
|
g_csTwtLineType[20] = m_csLineTypeHeatFeed3;
|
|
g_csTwtLineType[21] = m_csLineTypeHeatBack2;
|
|
g_csTwtLineType[22] = m_csLineTypeHeatBack3;
|
|
g_csTwtLineType[23] = m_csLineTypeFire2;
|
|
g_csTwtLineType[24] = m_csLineTypeFire3;
|
|
|
|
|
|
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]);
|
|
|
|
if(m_csLineType1 != GetLayerLineType(LAY_PIPE_FEED) && GetLayerLineType(LAY_PIPE_FEED) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_FEED, m_csLineType1);
|
|
if(m_csLineTypeFeed2 != GetLayerLineType(LAY_PIPE_FEED2) && GetLayerLineType(LAY_PIPE_FEED2) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_FEED2, m_csLineTypeFeed2);
|
|
if(m_csLineTypeFeed3 != GetLayerLineType(LAY_PIPE_FEED3) && GetLayerLineType(LAY_PIPE_FEED3) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_FEED3, m_csLineTypeFeed3);
|
|
if(m_csLineType2 != GetLayerLineType(LAY_PIPE_HEADFEED) && GetLayerLineType(LAY_PIPE_HEADFEED) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_HEADFEED, m_csLineType2);
|
|
if(m_csLineType3 != GetLayerLineType(LAY_PIPE_HEADBACK) && GetLayerLineType(LAY_PIPE_HEADBACK) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_HEADBACK, m_csLineType3);
|
|
if(m_csLineType4 != GetLayerLineType(LAY_PIPE_DIRT) && GetLayerLineType(LAY_PIPE_DIRT) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_DIRT, m_csLineType4);
|
|
if(m_csLineType5 != GetLayerLineType(LAY_PIPE_USELESS) && GetLayerLineType(LAY_PIPE_USELESS) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_USELESS, m_csLineType5);
|
|
if(m_csLineType6 != GetLayerLineType(LAY_PIPE_RAIN) && GetLayerLineType(LAY_PIPE_RAIN) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_RAIN, m_csLineType6);
|
|
if(m_csLineType7 != GetLayerLineType(LAY_PIPE_USED) && GetLayerLineType(LAY_PIPE_USED) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_USED, m_csLineType7);
|
|
if(m_csLineType8 != GetLayerLineType(LAY_PIPE_FIRE) && GetLayerLineType(LAY_PIPE_FIRE) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_FIRE, m_csLineType8);
|
|
if(m_csLineType9 != GetLayerLineType(LAY_PIPE_SPRINKLE) && GetLayerLineType(LAY_PIPE_SPRINKLE) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_SPRINKLE, m_csLineType9);
|
|
if(m_csLineType10 != GetLayerLineType(LAY_PIPE_COAGULATE) && GetLayerLineType(LAY_PIPE_COAGULATE) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_COAGULATE, m_csLineType10);
|
|
if(m_csLineType11 != GetLayerLineType(LAY_PIPE_DRINK) && GetLayerLineType(LAY_PIPE_DRINK) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_DRINK, m_csLineType11);
|
|
if(m_csLineType12 != GetLayerLineType(LAY_PIPE_PRESSDIRT) && GetLayerLineType(LAY_PIPE_PRESSDIRT) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_PRESSDIRT, m_csLineType12);
|
|
if(m_csLineType13 != GetLayerLineType(LAY_PIPE_PRESSUSELESS) && GetLayerLineType(LAY_PIPE_PRESSUSELESS) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_PRESSUSELESS, m_csLineType13);
|
|
if(m_csLineType14 != GetLayerLineType(LAY_PIPE_PRESSRAIN) && GetLayerLineType(LAY_PIPE_PRESSRAIN) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_PRESSRAIN, m_csLineType14);
|
|
if(m_csLineType15 != GetLayerLineType(LAY_PIPE_OTHER) && GetLayerLineType(LAY_PIPE_OTHER) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_OTHER, m_csLineType15);
|
|
if(m_csLineType16 != GetLayerLineType(LAY_PIPE_USER1) && GetLayerLineType(LAY_PIPE_USER1) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_USER1, m_csLineType16);
|
|
if(m_csLineType17 != GetLayerLineType(LAY_PIPE_USER2) && GetLayerLineType(LAY_PIPE_USER2) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_USER2, m_csLineType17);
|
|
|
|
if(m_csLineTypeHeatFeed2 != GetLayerLineType(LAY_PIPE_HEADFEED2) && GetLayerLineType(LAY_PIPE_HEADFEED2) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_HEADFEED2, m_csLineTypeHeatFeed2);
|
|
if(m_csLineTypeHeatFeed3 != GetLayerLineType(LAY_PIPE_HEADFEED3) && GetLayerLineType(LAY_PIPE_HEADFEED3) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_HEADFEED3, m_csLineTypeHeatFeed3);
|
|
if(m_csLineTypeHeatBack2 != GetLayerLineType(LAY_PIPE_HEADBACK2) && GetLayerLineType(LAY_PIPE_HEADBACK2) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_HEADBACK2, m_csLineTypeHeatBack2);
|
|
if(m_csLineTypeHeatBack3 != GetLayerLineType(LAY_PIPE_HEADBACK3) && GetLayerLineType(LAY_PIPE_HEADBACK3) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_HEADBACK3, m_csLineTypeHeatBack3);
|
|
if(m_csLineTypeFire2 != GetLayerLineType(LAY_PIPE_FIRE2) && GetLayerLineType(LAY_PIPE_FIRE2) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_FIRE2, m_csLineTypeFire2);
|
|
if(m_csLineTypeFire3 != GetLayerLineType(LAY_PIPE_FIRE3) && GetLayerLineType(LAY_PIPE_FIRE3) != _T(""))
|
|
SetLayerLineType(LAY_PIPE_FIRE3, m_csLineTypeFire3);
|
|
|
|
if(m_bModify){//对本图强制进行修改以下属性: 颜色, 线宽, 线形, 管材, 立管半径
|
|
PickSet ssAll(SS_FREE);
|
|
RBList rbMask(RTDXF0, _T("ATS_PIPE"), NULL);
|
|
ssAll.Get(_T("X"), NULL, NULL, rbMask);
|
|
|
|
BOOL bChangleRadius = FALSE;
|
|
long len = ssAll.Length();
|
|
for(long i=0;i<len;i++){
|
|
Entity ent = ssAll[i];
|
|
OPENOBJ_BEGIN(ent, AcDb::kForWrite, TDbPipe, pPipe);
|
|
if(pPipe){
|
|
if(pPipe->GetSysType() == TPipeSys::kFeedWater
|
|
|| pPipe->GetSysType() == TPipeSys::kFeedWater2 // cet 2011.12.6 add 给水中区
|
|
|| pPipe->GetSysType() == TPipeSys::kFeedWater3 // cet 2011.12.6 add 给水高区
|
|
){
|
|
|
|
TCHAR* szLay = pPipe->layer();
|
|
if(_tcsicmp(szLay, LAY_PIPE_FEED) == 0 || _tcsicmp(szLay, LAY_VPIPE_FEED) == 0){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius1);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType1);//立管线形不能随横管走
|
|
pPipe->SetPipeWeight(m_nWidth1);
|
|
pPipe->SetMaterial(m_iMaterial1);
|
|
}
|
|
else if(_tcsicmp(szLay, LAY_PIPE_FEED2) == 0 || _tcsicmp(szLay, LAY_VPIPE_FEED2) == 0){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_dRadiusFeed2);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineTypeFeed2);
|
|
pPipe->SetPipeWeight(m_dWidthFeed2);
|
|
pPipe->SetMaterial(m_iMaterialFeed2);
|
|
}
|
|
else if(_tcsicmp(szLay, LAY_PIPE_FEED3) == 0 || _tcsicmp(szLay, LAY_VPIPE_FEED3) == 0){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_dRadiusFeed3);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineTypeFeed3);
|
|
pPipe->SetPipeWeight(m_dWidthFeed3);
|
|
pPipe->SetMaterial(m_iMaterialFeed3);
|
|
}
|
|
|
|
delete [] szLay;
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kHeatFeedWater
|
|
|| pPipe->GetSysType() == TPipeSys::kHeatFeedWater2 // cet 2011.12.6 add 热给水中区
|
|
|| pPipe->GetSysType() == TPipeSys::kHeatFeedWater3 // cet 2011.12.6 add 热给水高区
|
|
){
|
|
CString csLay = pPipe->GetLayer();
|
|
if(_tcsicmp(csLay, LAY_PIPE_HEADFEED) == 0 || _tcsicmp(csLay, LAY_VPIPE_HEADFEED) == 0){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius2);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType2);//立管线形不能随横管走
|
|
pPipe->SetPipeWeight(m_nWidth2);
|
|
pPipe->SetMaterial(m_iMaterial2);
|
|
}
|
|
else if(_tcsicmp(csLay, LAY_PIPE_HEADFEED2) == 0 || _tcsicmp(csLay, LAY_VPIPE_HEADFEED2) == 0){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadiusHeatFeed2);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineTypeHeatFeed2);//立管线形不能随横管走
|
|
pPipe->SetPipeWeight(m_dWidthHeatFeed2);
|
|
pPipe->SetMaterial(m_iMaterialHeatFeed2);
|
|
}
|
|
else if(_tcsicmp(csLay, LAY_PIPE_HEADFEED3) == 0 || _tcsicmp(csLay, LAY_VPIPE_HEADFEED3) == 0){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadiusHeatFeed3);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineTypeHeatFeed3);//立管线形不能随横管走
|
|
pPipe->SetPipeWeight(m_dWidthHeatFeed3);
|
|
pPipe->SetMaterial(m_iMaterialHeatFeed3);
|
|
}
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kHeatBackWater
|
|
|| pPipe->GetSysType() == TPipeSys::kHeatBackWater2 // cet 2011.12.6 add 热回水中区
|
|
|| pPipe->GetSysType() == TPipeSys::kHeatBackWater3 // cet 2011.12.6 add 热回水高区
|
|
){
|
|
CString csLay = pPipe->GetLayer();
|
|
if(_tcsicmp(csLay, LAY_PIPE_HEADBACK) == 0 || _tcsicmp(csLay, LAY_VPIPE_HEADBACK) == 0){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius3);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType3);//立管线形不能随横管走
|
|
pPipe->SetPipeWeight(m_nWidth3);
|
|
pPipe->SetMaterial(m_iMaterial3);
|
|
}
|
|
else if(_tcsicmp(csLay, LAY_PIPE_HEADBACK2) == 0 || _tcsicmp(csLay, LAY_VPIPE_HEADBACK2) == 0){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadiusHeatBack2);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineTypeHeatBack2);//立管线形不能随横管走
|
|
pPipe->SetPipeWeight(m_dWidthHeatBack2);
|
|
pPipe->SetMaterial(m_iMaterialHeatBack2);
|
|
}
|
|
else if(_tcsicmp(csLay, LAY_PIPE_HEADBACK3) == 0 || _tcsicmp(csLay, LAY_VPIPE_HEADBACK3) == 0){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadiusHeatBack3);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineTypeHeatBack3);//立管线形不能随横管走
|
|
pPipe->SetPipeWeight(m_dWidthHeatBack3);
|
|
pPipe->SetMaterial(m_iMaterialHeatBack3);
|
|
}
|
|
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kDirtWater){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius4);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType4);
|
|
pPipe->SetPipeWeight(m_nWidth4);
|
|
pPipe->SetMaterial(m_iMaterial4);
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kUselessWater){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius5);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType5);
|
|
pPipe->SetPipeWeight(m_nWidth5);
|
|
pPipe->SetMaterial(m_iMaterial5);
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kRainWater){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius6);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType6);
|
|
pPipe->SetPipeWeight(m_nWidth6);
|
|
pPipe->SetMaterial(m_iMaterial6);
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kUsedWater
|
|
|| pPipe->GetSysType() == TPipeSys::kUsedWater2 // cet 2011.12.6 add 中水中区
|
|
|| pPipe->GetSysType() == TPipeSys::kUsedWater3 // cet 2011.12.6 add 中水高区
|
|
){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius7);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType7);
|
|
pPipe->SetPipeWeight(m_nWidth7);
|
|
pPipe->SetMaterial(m_iMaterial7);
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kFireFighting
|
|
|| pPipe->GetSysType() == TPipeSys::kFireFighting2 // cet 2011.12.6 add 消防中区
|
|
|| pPipe->GetSysType() == TPipeSys::kFireFighting3 // cet 2011.12.6 add 消防高区
|
|
){
|
|
CString csLay = pPipe->GetLayer();
|
|
if(_tcsicmp(csLay, LAY_PIPE_FIRE) == 0 || _tcsicmp(csLay, LAY_VPIPE_FIRE) == 0){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius8);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType8);//立管线形不能随横管走
|
|
pPipe->SetPipeWeight(m_nWidth8);
|
|
pPipe->SetMaterial(m_iMaterial8);
|
|
}
|
|
else if(_tcsicmp(csLay, LAY_PIPE_FIRE2) == 0 || _tcsicmp(csLay, LAY_VPIPE_FIRE2) == 0){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadiusFire2);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineTypeFire2);//立管线形不能随横管走
|
|
pPipe->SetPipeWeight(m_dWidthFire2);
|
|
pPipe->SetMaterial(m_iMaterialFire2);
|
|
}
|
|
else if(_tcsicmp(csLay, LAY_PIPE_FIRE3) == 0 || _tcsicmp(csLay, LAY_VPIPE_FIRE3) == 0){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadiusFire3);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineTypeFire3);//立管线形不能随横管走
|
|
pPipe->SetPipeWeight(m_dWidthFire3);
|
|
pPipe->SetMaterial(m_iMaterialFire3);
|
|
}
|
|
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kSprinkle
|
|
|| pPipe->GetSysType() == TPipeSys::kSprinkle2 // cet 2011.12.6 add 消防中区
|
|
|| pPipe->GetSysType() == TPipeSys::kSprinkle3 // cet 2011.12.6 add 消防高区
|
|
){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius9);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType9);
|
|
pPipe->SetPipeWeight(m_nWidth9);
|
|
pPipe->SetMaterial(m_iMaterial9);
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kCoagulate){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius10);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType10);
|
|
pPipe->SetPipeWeight(m_nWidth10);
|
|
pPipe->SetMaterial(m_iMaterial10);
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kDrink){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius11);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType11);
|
|
pPipe->SetPipeWeight(m_nWidth11);
|
|
pPipe->SetMaterial(m_iMaterial11);
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kPressDirt){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius12);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType12);
|
|
pPipe->SetPipeWeight(m_nWidth12);
|
|
pPipe->SetMaterial(m_iMaterial12);
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kPressUseless){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius13);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType13);
|
|
pPipe->SetPipeWeight(m_nWidth13);
|
|
pPipe->SetMaterial(m_iMaterial13);
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kPressRain){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius14);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType14);
|
|
pPipe->SetPipeWeight(m_nWidth14);
|
|
pPipe->SetMaterial(m_iMaterial14);
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kOther){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius15);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType15);
|
|
pPipe->SetPipeWeight(m_nWidth15);
|
|
pPipe->SetMaterial(m_iMaterial15);
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kCivilFeed){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius16);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType16);
|
|
pPipe->SetPipeWeight(m_nWidth16);
|
|
pPipe->SetMaterial(m_iMaterial16);
|
|
}
|
|
else if(pPipe->GetSysType() == TPipeSys::kCycleFeed){
|
|
if(pPipe->IsVertical()){
|
|
pPipe->SetRadius(m_nRadius17);
|
|
bChangleRadius = TRUE;
|
|
}
|
|
else
|
|
pPipe->setLinetype(m_csLineType17);
|
|
pPipe->SetPipeWeight(m_nWidth17);
|
|
pPipe->SetMaterial(m_iMaterial17);
|
|
}
|
|
}
|
|
OPENOBJ_END();
|
|
}
|
|
if(bChangleRadius){
|
|
TPipePerDocData *pData = GetCurPipeDocData();
|
|
pData->ApplyUpdates();
|
|
}
|
|
|
|
}
|
|
}
|
|
UpdateData(FALSE);
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor1()
|
|
{
|
|
acedSetColorDialog(m_iColor1, Adesk::kFalse, m_iColor1);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor2()
|
|
{
|
|
acedSetColorDialog(m_iColor2, Adesk::kFalse, m_iColor2);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor3()
|
|
{
|
|
acedSetColorDialog(m_iColor3, Adesk::kFalse, m_iColor3);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor4()
|
|
{
|
|
acedSetColorDialog(m_iColor4, Adesk::kFalse, m_iColor4);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor5()
|
|
{
|
|
acedSetColorDialog(m_iColor5, Adesk::kFalse, m_iColor5);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor6()
|
|
{
|
|
acedSetColorDialog(m_iColor6, Adesk::kFalse, m_iColor6);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor7()
|
|
{
|
|
acedSetColorDialog(m_iColor7, Adesk::kFalse, m_iColor7);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor8()
|
|
{
|
|
acedSetColorDialog(m_iColor8, Adesk::kFalse, m_iColor8);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor9()
|
|
{
|
|
acedSetColorDialog(m_iColor9, Adesk::kFalse, m_iColor9);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor10()
|
|
{
|
|
acedSetColorDialog(m_iColor10, Adesk::kFalse, m_iColor10);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor11()
|
|
{
|
|
acedSetColorDialog(m_iColor11, Adesk::kFalse, m_iColor11);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor12()
|
|
{
|
|
acedSetColorDialog(m_iColor12, Adesk::kFalse, m_iColor12);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor13()
|
|
{
|
|
acedSetColorDialog(m_iColor13, Adesk::kFalse, m_iColor13);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor14()
|
|
{
|
|
acedSetColorDialog(m_iColor14, Adesk::kFalse, m_iColor14);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor15()
|
|
{
|
|
acedSetColorDialog(m_iColor15, Adesk::kFalse, m_iColor15);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
|
|
void CPipeSettingDlg::OnStaticColor16()
|
|
{
|
|
acedSetColorDialog(m_iColor16, Adesk::kFalse, m_iColor16);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor17()
|
|
{
|
|
acedSetColorDialog(m_iColor17, Adesk::kFalse, m_iColor17);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CPipeSettingDlg::OnStaticColor31()
|
|
{
|
|
acedSetColorDialog(m_iVColor1, Adesk::kFalse, m_iVColor1);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor32()
|
|
{
|
|
acedSetColorDialog(m_iVColor2, Adesk::kFalse, m_iVColor2);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor33()
|
|
{
|
|
acedSetColorDialog(m_iVColor3, Adesk::kFalse, m_iVColor3);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor34()
|
|
{
|
|
acedSetColorDialog(m_iVColor4, Adesk::kFalse, m_iVColor4);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor35()
|
|
{
|
|
acedSetColorDialog(m_iVColor5, Adesk::kFalse, m_iVColor5);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor36()
|
|
{
|
|
acedSetColorDialog(m_iVColor6, Adesk::kFalse, m_iVColor6);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor37()
|
|
{
|
|
acedSetColorDialog(m_iVColor7, Adesk::kFalse, m_iVColor7);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor38()
|
|
{
|
|
acedSetColorDialog(m_iVColor8, Adesk::kFalse, m_iVColor8);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor39()
|
|
{
|
|
acedSetColorDialog(m_iVColor9, Adesk::kFalse, m_iVColor9);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor40()
|
|
{
|
|
acedSetColorDialog(m_iVColor10, Adesk::kFalse, m_iVColor10);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor41()
|
|
{
|
|
acedSetColorDialog(m_iVColor11, Adesk::kFalse, m_iVColor11);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor42()
|
|
{
|
|
acedSetColorDialog(m_iVColor12, Adesk::kFalse, m_iVColor12);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor43()
|
|
{
|
|
acedSetColorDialog(m_iVColor13, Adesk::kFalse, m_iVColor13);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor44()
|
|
{
|
|
acedSetColorDialog(m_iVColor14, Adesk::kFalse, m_iVColor14);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor45()
|
|
{
|
|
acedSetColorDialog(m_iVColor15, Adesk::kFalse, m_iVColor15);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
void CPipeSettingDlg::OnStaticColor46()
|
|
{
|
|
acedSetColorDialog(m_iVColor16, Adesk::kFalse, m_iVColor16);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColor47()
|
|
{
|
|
acedSetColorDialog(m_iVColor17, Adesk::kFalse, m_iVColor17);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorFeed2()
|
|
{
|
|
acedSetColorDialog(m_iColorFeed2, Adesk::kFalse, m_iColorFeed2);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorFeed3()
|
|
{
|
|
acedSetColorDialog(m_iColorFeed3, Adesk::kFalse, m_iColorFeed3);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorVfeed2()
|
|
{
|
|
acedSetColorDialog(m_iVColorFeed2, Adesk::kFalse, m_iVColorFeed2);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorVfeed3()
|
|
{
|
|
acedSetColorDialog(m_iVColorFeed3, Adesk::kFalse, m_iVColorFeed3);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorHeadfeed2()
|
|
{
|
|
acedSetColorDialog(m_iColorHeatFeed2, Adesk::kFalse, m_iColorHeatFeed2);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorHeadfeed3()
|
|
{
|
|
acedSetColorDialog(m_iColorHeatFeed3, Adesk::kFalse, m_iColorHeatFeed3);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorHeadback2()
|
|
{
|
|
acedSetColorDialog(m_iColorHeatBack2, Adesk::kFalse, m_iColorHeatBack2);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorHeadback3()
|
|
{
|
|
acedSetColorDialog(m_iColorHeatBack3, Adesk::kFalse, m_iColorHeatBack3);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorFire2()
|
|
{
|
|
acedSetColorDialog(m_iColorFire2, Adesk::kFalse, m_iColorFire2);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorFire3()
|
|
{
|
|
acedSetColorDialog(m_iColorFire3, Adesk::kFalse, m_iColorFire3);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorVheadfeed2()
|
|
{
|
|
acedSetColorDialog(m_iVColorHeatFeed2, Adesk::kFalse, m_iVColorHeatFeed2);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorVheadfeed3()
|
|
{
|
|
acedSetColorDialog(m_iVColorHeatFeed3, Adesk::kFalse, m_iVColorHeatFeed3);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorVheadback2()
|
|
{
|
|
acedSetColorDialog(m_iVColorHeatBack2, Adesk::kFalse, m_iVColorHeatBack2);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorVheadback3()
|
|
{
|
|
acedSetColorDialog(m_iVColorHeatBack3, Adesk::kFalse, m_iVColorHeatBack3);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorVfire2()
|
|
{
|
|
acedSetColorDialog(m_iVColorFire2, Adesk::kFalse, m_iVColorFire2);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnStaticColorVfire3()
|
|
{
|
|
acedSetColorDialog(m_iVColorFire3, Adesk::kFalse, m_iVColorFire3);
|
|
UpdateData(FALSE);
|
|
DrawStatic();
|
|
|
|
}
|
|
|
|
void CPipeSettingDlg::OnOK()
|
|
{
|
|
UpdateDlgData(FALSE);
|
|
InitLayers(TRUE);
|
|
CDialog::OnOK();
|
|
}
|
|
|
|
|
|
|
|
void CPipeSettingDlg::OnButtonNew()
|
|
{
|
|
InvokeLineTypeMan();
|
|
ResetLineCombox();
|
|
}
|
|
|
|
|
|
|
|
void CPipeSettingDlg::OnButtonMore()
|
|
{
|
|
CWnd *pWnd = GetDlgItem(IDC_BUTTON_MORE);
|
|
bIsMore = !bIsMore;
|
|
CRect rect;
|
|
this->GetWindowRect(&rect);
|
|
if(bIsMore)
|
|
{
|
|
pWnd->SetWindowText(_T("精简↑"));
|
|
rect.bottom += 230;
|
|
}
|
|
else
|
|
{
|
|
pWnd->SetWindowText(_T("更多↓"));
|
|
rect.bottom -= 230;
|
|
}
|
|
this->MoveWindow(&rect);
|
|
|
|
}
|
|
|
|
|
|
|