如何遍历文档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;
}
页:
[1]