- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Summary:
We are trying to create a VB.net form to integrate with iLogic rule.
Error code: 0X80131500
Environment:
Inventor 2024
Visual Studio 2019 Version 16.11.31 (updated 11/9/23)
Targeted Net 5.0
Details:
We can add in a Windows Form - but as soon as we add in the Inventor 2024 iLogic references the form will no longer load.
Unknown error.
After doing a rebuild and when we attempt to load the form we get the following error dialog
Can we no longer utilize Windows Forms with Inventor 2024?
If not, then can we attach WPF forms to the iLogic rules?
Thanks in advance for any and all assistance.
M.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
WinForms works well for me in Inv 2024.1
But the issue can be in target .NET version. You need to use .NET Framework 4.8 instead of .NET 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Wondered if that was the case. WIll need to submit a request to IT to install the .NET Framework 4.8.
They should be able to install it sometime next week. ![]()
Will report back once it's installed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If you have Inventor installed, you have installed .NET Framework 4.8 also. This si a mandatory component.
But you need to start (or modify existing) project in VS to use .NET Framework 4.8
Screen shot is from VS 2022 but in 2019 it is similar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We do not show the option for .NET Framework 4.8 - stops at .NET Framework 4.7.2.
There is a download option - so hopefully out overworked and underpaid IT department will be able to install it sometime next week.
Will try at home where the PC is locked down by an over zealous IT department ![]()
Thanks again for the assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
You can use any older version.
Here are two sample projects (C# and VB.NET) which works for me.
Launch rule
AddReference "C:\Path\To\bin\Debug\FormSampleCSharp.dll"
AddReference "C:\Path\To\bin\Debug\FormSampleVbNet.dll"
Dim form1CSharp As New FormSampleCSharp.Form1()
form1CSharp.PartNumber = iProperties.Value("Project", "Part Number")
Dim dialogResult1 = form1CSharp.ShowDialog()
iProperties.Value("Project", "Part Number") = form1CSharp.PartNumber
Dim form1VbNet As New FormSampleVbNet.Form1()
form1VbNet.PartNumber = iProperties.Value("Project", "Part Number")
Dim dialogResult2 = form1VbNet.ShowDialog()
iProperties.Value("Project", "Part Number") = form1VbNet.PartNumber
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Thank you again for your assistance.
We were able to remove multiple iLogic prompts into a single dialog.