‘您看这样行不行
 - Private Sub AcadDocument_BeginClose()
- If ThisDrawing.Saved Then
- If ThisDrawing.ModelSpace.Count > 0 Then
- MsgBox "saved"
- 'Do Something
- Else
- MsgBox "nothing in thisdrawing"
- 'Do Something
- End If
- Else
- MsgBox "save nothing"
- 'Do Something
- End If
- End Sub
|