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;
	}

你可能感兴趣的:(ObjectARX)