Hi,
I'm trying to open a file in vb.net to read some of the xrefs within it, and I have narrowed down the fatal error that is being generated by the following code. I have tried both of the differences I have listed below and both produce a fatal error when the ReadDwgFile is envoked. Can someone tell me why that may be happening?
Dim myDB As New Autodesk.AutoCAD.DatabaseServices.Database
myDB.ReadDwgFile(dwgfile, FileOpenMode.OpenForReadAndWriteNoShare, False, "")
Or this:
Dim myDB As New Autodesk.AutoCAD.DatabaseServices.Database
myDB.ReadDwgFile(dwgfile, IO.FileShare.ReadWrite, True, "")
Thanks