In the drawing, you can check something like DrawingDocument.IsInventorDWG to determine if the drawing is an .idw or a DWG. Take a look and let me know if I understand you correctly.
Dim oDoc As Document = ThisApplication.ActiveDocument
Dim oDocPath As String = oDoc.FullFileName
If oDoc.SubType = "{BBF9FDF1-52DC-11D0-8C04-0800090BE8EC}"
Dim oDDoc As DrawingDocument = oDoc
Dim isInventroDwg As Boolean = oDDoc.IsInventorDWG
If isInventroDwg = True
MessageBox.Show("This is a DWG files.","Information",MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
MessageBox.Show("This isnt a DWG files.","Information",MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
End If
If oDocPath = String.Empty
MessageBox.Show("Your file has not been saved","Warning",MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
MessageBox.Show("You can continue your task","Information",MessageBoxButtons.OK, MessageBoxIcon.Information)
End If