Hi Rich,
As Per your code you are trying to save the drawing file with different name. However I guess the active document was in the name of "Drawing 1" which was not already saved in the desired path.
To use save option the drawing file should be saved at least once before executing the save command.
The Syntax to save document is just
ThisApplication.ActiveDocument.save
There should not be any parameter to be assigned.
I've modified your code slightly which might be helpful for you.
'Dim title As String = "converted to title case"
' Console.WriteLine(StrConv(title, VbStrConv.ProperCase))
DrawingName = iProperties.Value("custom","Drawing No.") & "_" & StrConv(iProperties.Value("custom","Desc. 1"), VbStrConv.ProperCase) & "_" & StrConv(iProperties.Value("custom","Desc. 2"), VbStrConv.ProperCase) & "_" & StrConv(iProperties.Value("custom","Navision PN"), VbStrConv.ProperCase)
DesiredPath = "C:\........specified location....."
NewFileName = DesiredPath & "\" & DrawingName & ".idw"
'check file name to see if it is used
'if it is, ask the user to overwrite
'if it's not, save the file
question = MessageBox.Show("Is this a good file name?: " & DrawingName & ".idw", "iLogic Question",MessageBoxButtons.YesNo,MessageBoxIcon.Question)
If question=vbYes Then
If System.IO.File.Exists(NewFileName) Then
question = MessageBox.Show("File exists, do you want to overwrite?", "iLogic Question",MessageBoxButtons.YesNo,MessageBoxIcon.Question)
If question = vbYes Then
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
oDrawDoc.Save 'Modified Line 1
Else If question =vbNo Then
MessageBox.Show("File was not overwritten", "iLogic Message")
End If
Else
ThisDoc.Document.SaveAs(Newfilename,True)
ThisApplication.Documents.Open(NewFileName,True)'Modified Line 2
End If
Else If question=vbNo Then
MessageBox.Show("Please update: Drawing #, Desc. 1, Desc. 2, & Navision PN", "iLogic Message")
End I