Imports Autodesk.AutoCAD.ApplicationServices Imports Autodesk.AutoCAD.EditorInput
Public Class DocumentTest
Public Sub Main()
Dim dm As DocumentCollection = Application.DocumentManager
Dim ActiveDoc As Document = dm.MdiActiveDocument
For Each doc As Document In dm
If doc <> ActiveDoc Then
DocumentExtension.CloseAndSave(doc, "C:\DocumentTest.dwg") ' ERROR
please help me~~
The DocumentExtension class provides extension methods.
You can have a look to these threads to know a little more about this:
Thanks for your reply.
I just want to know that “DocumentExtension.CloseAndSave(doc, “C:\DocumentTest.dwg”) is correct code.
And if correct, why the error has occurred?
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.