Why after iterating through all drawings with closing each document similar to code shown below, one drawing is still on the screen. How to iterate and close all drawings?
Dim docs As DocumentCollection
Dim doc As Document
docs = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager
For Each doc In docs
'do things,
'then
'doc.CloseAndDiscard() or
'doc.CloseAndSave(doc.Name)
Next