//高程标记点,块点50圆
static void KuaiDian(){
// 获得当前图形数据库的块表
AcDbBlockTable *pBlkTbl;
acdbHostApplicationServices()->workingDatabase()
->getBlockTable(pBlkTbl, AcDb::kForWrite);
// 创建新的块表记录
AcDbBlockTableRecord *pBlkTblRcd;
pBlkTblRcd = new AcDbBlockTableRecord();
// 根据用户的输入设置块表记录的名称
CString blkName;
blkName.Format(_T("%s"), _T("高程位点"));
pBlkTblRcd->setName(blkName);
// 将块表记录添加到块表中
AcDbObjectId blkDefId;
pBlkTbl->add(blkDefId, pBlkTblRcd);
pBlkTbl->close();
// 向块表记录中添加实体
AcGeVector3d vecNormal(0, 0, 1);
AcDbCircle *pCircle1 = new AcDbCircle(AcGePoint3d::kOrigin,
vecNormal, 0.005);
AcDbCircle *pCircle2 = new AcDbCircle(AcGePoint3d::kOrigin,
vecNormal, 0.01);
AcDbCircle *pCircle3 = new AcDbCircle(AcGePoint3d::kOrigin,
vecNormal, 0.015);
AcDbCircle *pCircle4 = new AcDbCircle(AcGePoint3d::kOrigin,
vecNormal, 0.02);
AcDbCircle *pCircle5 = new AcDbCircle(AcGePoint3d::kOrigin,
vecNormal, 0.025);
AcDbCircle *pCircle6 = new AcDbCircle(AcGePoint3d::kOrigin,
vecNormal, 0.03);
AcDbCircle *pCircle7 = new AcDbCircle(AcGePoint3d::kOrigin,
vecNormal, 0.035);
AcDbCircle *pCircle8= new AcDbCircle(AcGePoint3d::kOrigin,
vecNormal, 0.04);
AcDbCircle *pCircle9 = new AcDbCircle(AcGePoint3d::kOrigin,
vecNormal, 0.045);
AcDbCircle *pCircle10 = new AcDbCircle(AcGePoint3d::kOrigin,
vecNormal, 0.05);
AcDbCircle *pCircle11 = new AcDbCircle(AcGePoint3d::kOrigin,
vecNormal, 0.055);
AcDbCircle *pCircle12 = new AcDbCircle(AcGePoint3d::kOrigin,
vecNormal, 0.06);
AcDbCircle *pCircle13 = new AcDbCircle(AcGePoint3d::kOrigin,
vecNormal, 0.065);
AcDbCircle *pCircle14 = new AcDbCircle(AcGePoi