Has anyone noticed that the ReadDwgFile method seems to fail when there is an underscore in the drawing name? Underscores in the path are ok.
The following works without error.
Dim objBlockDefDB As Database = New Database
objBlockDefDB.ReadDwgFile("Z:\RAA_UTIL07\symbols\Regional\TBSHIELD.dwg", IO.FileShare.ReadWrite, False, "")
Dim strTempName As String = "TempBlockDef" & "-" & DateTime.Now.ToString
Dim objTempBlockDefId As ObjectId = objDB.Insert(strTempName, objBlockDefDB, True)
If I change the file name to a drawing named with an underscore I get Autodesk.AutoCAD.Runtime.Exception: ePermanentlyErased on the last line.
Regards - Nathan