bOILERbRAD
Mechanical
- Aug 11, 2008
- 17
Hey guys,
Can anyone tell me why this code is not saving my part?
pDirectory = "M:\Solidworks\Tooling\Inspect\" & tooltbx.Text & "\" & tooltbx.Text & ".sldprt"
If MsgBox("Save as " & pDirectory & "?", vbOKCancel, "Confirm Save") = vbOK Then
Part.Extension.SaveAs pDirectory, 0, 2, Nothing, longstatus, longwarnings
If MsgBox("Make a drawing?", vbOKCancel, "Create Drawing?") = vbCancel Then
End
End If
Else
Exit Sub
End If
Can anyone tell me why this code is not saving my part?
pDirectory = "M:\Solidworks\Tooling\Inspect\" & tooltbx.Text & "\" & tooltbx.Text & ".sldprt"
If MsgBox("Save as " & pDirectory & "?", vbOKCancel, "Confirm Save") = vbOK Then
Part.Extension.SaveAs pDirectory, 0, 2, Nothing, longstatus, longwarnings
If MsgBox("Make a drawing?", vbOKCancel, "Create Drawing?") = vbCancel Then
End
End If
Else
Exit Sub
End If