Message 1 of 1
iLogic/VBA Open file dialog with options

Not applicable
01-29-2015
12:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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