Files
envi-code/SourceCode/Code2026/tg_shs/shs_annotate/newtool.cpp
T
2026-09-28 15:28:50 +08:00

20 lines
371 B
C++

#include "stdafx.h"
//分解实体直到不能分解
void ExplodeEx(AcDbEntity* pEntity,AcDbVoidPtrArray &res)
{
AcDbVoidPtrArray buf;
if(pEntity->explode(buf)==Acad::eOk)
{
delete pEntity;
for(long i=0;i<buf.length();i++)
{
AcDbEntity * pNewEnt=(AcDbEntity*)(buf[i]);
ExplodeEx(pNewEnt,res);
}
}
else
res.append(pEntity);
}