CAD二次开发ARX、C+++实现由50个圆添加为块表示高程点位


//高程标记点,块点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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值