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?
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!