Inventor Open File Dialog Bug? VBA / VB.net

Inventor Open File Dialog Bug? VBA / VB.net

pball
Mentor Mentor
2,140 Views
2 Replies
Message 1 of 3

Inventor Open File Dialog Bug? VBA / VB.net

pball
Mentor
Mentor

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.

 

Check out my style edits for the Autodesk forums
pball's Autodesk Forum Style
0 Likes
2,141 Views
2 Replies
Replies (2)
Message 2 of 3

BrandonBG
Collaborator
Collaborator
0 Likes
Message 3 of 3

pball
Mentor
Mentor

That would be the same issue. Amazing my search didn't find that post. Guess I'll just file a bug report since other people are complaining about it also.

Check out my style edits for the Autodesk forums
pball's Autodesk Forum Style
0 Likes