找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 167|回复: 0

[每日一码] 一个创建面域的小程序

[复制链接]

1

主题

0

回帖

43

积分

管理员

积分
43
发表于 2024-3-14 20:37:43 | 显示全部楼层 |阅读模式
  1. static void ahlzlARX采用test(void)
  2. {
  3.     AcDbDatabase* pdb = acdbHostApplicationServices()->workingDatabase();
  4.     AcDbBlockTable* pBlockTable;
  5.     pdb->getBlockTable(pBlockTable, AcDb::kForRead);
  6.     AcDbBlockTableRecord* pBlockTableRecord;
  7.     pBlockTable->getAt(ACDB采用MODEL采用SPACE, pBlockTableRecord, AcDb::kForWrite);
  8.     AcDbCircle* pEnt = new AcDbCircle(AcGePoint3d(1, 2, 0),AcGeVector3d::kZAxis,6);
  9.     AcDbVoidPtrArray curveSegments, regions;
  10.     curveSegments.append (pEnt);
  11.     AcDbRegion::createFromCurves(curveSegments, regions);
  12.     AcDbRegion *pRegion = static采用cast<AcDbRegion *>(regions.at(0));
  13.     pRegion->setDatabaseDefaults();
  14.     pBlockTableRecord->appendAcDbEntity(pRegion);
  15.     pBlockTable->close();
  16.     pBlockTableRecord->close();
  17.     pRegion->close();
  18. }
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|膜结构网

GMT+8, 2025-1-10 21:25 , Processed in 0.114911 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表