如果应用程序删除不是数据库驻留的复杂实体,则应用程序还负责删除与该复杂实体关联的所有子实体。 复杂实体及其子实体列在“定义的实体”部分中。不是数据库驻留的复杂实体不包括对象。AcDbSequenceEnd 以下示例演示如何删除 AcDb2dPolyline 的子实体: void delete2dPoly(AcDb2dPolyline* pPline) { AcDbObjectIterator* pIter=pPline->vertexIterator(); AcDbEntity* pEnt; for (; !pIter->done(); ) { pEnt=pIter->entity(); // Must step the iterator first so that it is no longer // sitting on the entity that's about to be deleted. pIter->step(); delete pEnt; } delete pIter; delete pPline; } |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:07
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.