ObjectARX学习笔记(三十一)----如何遍历文档acDocManager,AcApDocumentIterator

AcApDocManager* pDocManager = acDocManager;
if (pDocManager == NULL)
return FALSE;

AcApDocumentIterator* iter = acDocManager->newAcApDocumentIterator();
if (iter != NULL)
{
AcApDocument* tmpDoc = NULL;
for (; !iter->done(); iter->step())
{
tmpDoc = iter->document();
if (tmpDoc != NULL)
{
//do sth;
}
}
delete iter;
iter = NULL;
}

 

posted @ 2020-03-01 22:51  中国膜结构网mjgou  阅读(414)  评论(0编辑  收藏  举报