Error 1 'open' is not a member of 'Autodesk.AutoCAD.ApplicationServices.DocumentCollection'.
how can i solve this problem?
i am using autocad 2013
i have tried ur method it also do not work
Public Class test
<CommandMethod("OpenDrawing", CommandFlags.Session)> _
Public Sub OpenDrawing()
Dim acDocMgr As DocumentCollection = Application.DocumentManager
DocumentCollectionExtension.Open(acDocMgr, "C:\Users\michael.yeung\Desktop\Acad\1F_MHS.dwg", False)
End Sub
End Class
Hi,
Can you please try the attached sample project ?
It worked ok in AutoCAD 2013. You may need to change the path to the referenced assemblies.
You may also be interested in this blog post about extension methods :
http://adndevblog.typepad.com/autocad/2012/05/extension-methods-in-autocad-2013.html
The sample project works ok in AutoCAD 2013 in my system.
Not sure what else could be causing this error.
Maybe you can try this :