Message 1 of 3
Opened DWG file closes the app instead of the DWG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dim oleCollection As New ArrayList
If oleCollection.Count > 0 Then
For Each OleDWGopen As String In oleCollection
Dim dwgOpen As Document = DocumentManager.Open(OleDWGopen, False)
Next
End If
I have code that opens a selected group of DWG files, binds any xrefs, searches for OLE objects and stores them in the oleCollection arraylist and then closes the drawings. After all of the drawings are closed I reopen all of the DWG files in the arraylist and tell the end user to break the OLE links. This part all works fine but when the end user closes the DWG it closes the whole AutoCAD application instead of just the drawing. Any ideas why this would happen would be appreciated. Thanks