iLogic/VBA Open file dialog with options

iLogic/VBA Open file dialog with options

Anonymous
Not applicable
1,550 Views
0 Replies
Message 1 of 1

iLogic/VBA Open file dialog with options

Anonymous
Not applicable

Hi All,

 

I'm trying to create a open file dialog with iLogic to read in some parameters from a text file.

I've got the code working for the open file and reading the parameters, but I would like te be able to switch an option when opening the text file.

Kind of the same optionmenu when opening a .idw file and you can select Defer Updates, but then with a custom option (boolean)

 

Dim oFileDlg As Inventor.FileDialog = Nothing
InventorVb.Application.CreateFileDialog(oFileDlg)
oFileDlg.Filter = "Textfiles(*.txt)|*.txt"
oFileDlg.SuppressResolutionWarnings = True
oFileDlg.OptionsEnabled = True
'oFileDlg.OptionValues.Insert or Add or something???

oFileDlg.CancelError = True
On Error Resume Next
oFileDlg.ShowOpen()

 

The Options button becomes available after setting '.OptionsEnabled = True', but how do I add options?
I want to add a checkbox, for a Boolean variable.

 

Can anyone help with this? I'm using Inventor 2014 x64.

 

Thanks in advance

0 Likes
1,551 Views
0 Replies
Replies (0)