Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So my company has been using this code I made to automatically pull BOM information, it been working great for years and since we got the 2023 it is some what buggy. This is just a portion of the rule, no point of posting the entire rule. This error can be created when i run this isolated from the but it requires you to have a custom iproperty called "Project_ Excel_File_Name" already created.
If iProperties.Value("Custom", "Project_ Excel_File_Name") = "" Then MessageBox.Show("I dont have a project Excel BOM linked, please show me where it is", "Project BOM", MessageBoxButtons.OK) Dim oFileDlg1A As Inventor.FileDialog = Nothing InventorVb.Application.CreateFileDialog(oFileDlg1A) oFileDlg1A.InitialDirectory = oOrigRefName1A oFileDlg1A.CancelError = True On Error Resume Next oFileDlg1A.ShowOpen() If Err.Number <> 0 Then Return ElseIf oFileDlg1A.FileName <> "" Then selectedfile1A = oFileDlg1A.FileName End If MessageBox.Show("You selected: " & selectedfile1A, "iLogic") iProperties.Value("Custom", "Project_ Excel_File_Name") = selectedfile1A End IF
Previously, it would pop open a window and i can select a file but now the window only shows folders not any of the contained files of any file type
Is this a Inventor bug or is the code not operation the same in the new inventor?
Solved! Go to Solution.