|
- static void ahlzlARX采用test(void)
- {
- AcDbDatabase* pdb = acdbHostApplicationServices()->workingDatabase();
- AcDbBlockTable* pBlockTable;
- pdb->getBlockTable(pBlockTable, AcDb::kForRead);
- AcDbBlockTableRecord* pBlockTableRecord;
- pBlockTable->getAt(ACDB采用MODEL采用SPACE, pBlockTableRecord, AcDb::kForWrite);
- AcDbCircle* pEnt = new AcDbCircle(AcGePoint3d(1, 2, 0),AcGeVector3d::kZAxis,6);
- AcDbVoidPtrArray curveSegments, regions;
- curveSegments.append (pEnt);
- AcDbRegion::createFromCurves(curveSegments, regions);
- AcDbRegion *pRegion = static采用cast<AcDbRegion *>(regions.at(0));
- pRegion->setDatabaseDefaults();
- pBlockTableRecord->appendAcDbEntity(pRegion);
- pBlockTable->close();
- pBlockTableRecord->close();
- pRegion->close();
- }
复制代码 |
|