62 lines
1.3 KiB
C++
62 lines
1.3 KiB
C++
#include "stdafx.h"
|
|
#include "TchGlobalFunc.h"
|
|
#include "TRoadGradeArrowJig.h"
|
|
#include "RoadGradeStyle.h"
|
|
#include "RoadGradeDlg.h"
|
|
#include "RoadCornerRadiusDlg.h"
|
|
#include "LayerSiftDlgEx.h"
|
|
//µÀ·ÆÂ¶È±ê×¢
|
|
void SymbRoadGrade()
|
|
{
|
|
acedGetAcadDwgView()->SetFocus();
|
|
InitTextStyle(TS_SYMBOL);
|
|
TDbSymbArrow *pSymbArrowEnt = new TDbSymbArrow();
|
|
CRoadGradeDlg dlg;
|
|
|
|
|
|
CRoadGradeStyle roadGadeStyle;
|
|
while(1)
|
|
{
|
|
acedGetAcadFrame()->SetFocus();
|
|
int nRet = roadGadeStyle.SelectStyle(pSymbArrowEnt, &dlg);
|
|
if (nRet == CRoadGradeStyle::kRetContinue)
|
|
continue;
|
|
else if(nRet == CRoadGradeStyle::kRetEsc)
|
|
break;
|
|
else if(nRet == CRoadGradeStyle::kRetSettingDlg)
|
|
{
|
|
if (IDOK == dlg.DoModal())
|
|
{
|
|
dlg.Dlg2Obj(pSymbArrowEnt);
|
|
acedPostCommand(_T("TRoadGrade\n"));
|
|
break;
|
|
}
|
|
|
|
}
|
|
else if (nRet == CRoadGradeStyle::kRetDynamicStyle)
|
|
{
|
|
roadGadeStyle.DynamicStyle(pSymbArrowEnt, &dlg);
|
|
}
|
|
}
|
|
delete pSymbArrowEnt;
|
|
}
|
|
|
|
//µÀ·±ê¸ß
|
|
void RoadElev()
|
|
{
|
|
acedGetAcadDwgView()->SetFocus();
|
|
TDbSymbElevation *pSymbElevEnt = new TDbSymbElevation();
|
|
CRoadElevStyle roadElevStyle;
|
|
while (1)
|
|
{
|
|
acedGetAcadFrame()->SetFocus();
|
|
int nRet = roadElevStyle.SelectStyle(pSymbElevEnt);
|
|
if (nRet == CRoadElevStyle::kRetContinue)
|
|
continue;
|
|
else if (nRet == CRoadElevStyle::kRetEsc)
|
|
break;
|
|
}
|
|
delete pSymbElevEnt;
|
|
}
|
|
|