Message 1 of 3
Inventor Open File Dialog Bug? VBA / VB.net
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I think I found a bug with how the Inventor open file dialog works. The initial directory and file name properties are not working correctly. Run the code below and the open file dialog will not open to the given folder or display the given file name. Now cancel that dialog and use the File - Open dialog and notice that it opened to the folder with the file name given by the code.
Dim oFileDlg As Inventor.FileDialog = Nothing
Call ThisApplication.CreateFileDialog(oFileDlg)
oFileDlg.InitialDirectory = "c:\"
oFileDlg.FileName = "look at me.ipt"
Call oFileDlg.ShowOpen()
Using the VB system.windows.forms openfiledialog yields the correct behavior of opening to the given initial directory with given file name. Also when using the Inventor save file dialog it behaves correctly also. So it seems there is an issue with just the Inventor open file dialog.