|
- // Close the other documents
- AcApDocumentIterator *Iter
- = acDocManager->newAcApDocumentIterator();
- while(!Iter->done())
- {
- if (Iter->document()!=acDocManager->curDocument())
- {
- acDocManager->closeDocument(Iter->document());
- }
- Iter->step();
- }
- delete Iter;
- // Now close the current document
- ::acDocManagerPtr()->appContextCloseDocument(acDocManager->curDocument());
复制代码 |
|