- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an Add-in that uses WPF. The WPF has 3 Dropdown selections.
The Problem:
On some PCs, all selection values load and display correctly in the WPF, while on other PCs, the selection remains blank.
This is what the WPF selection looks like (without clicking on the dropdown):
The strange thing is if I remove the 3rd selection then it works properly on all PCs.
This is what the WPF looks like if I remove the 3rd selection (without clicking on the dropdown):
This is the relevant part of the code from the .xaml.cs (WPF Codebehind) class:
This is the relevant part of the code from the “IFCToRevitGetPipeAndDuctTypesIExternalEvent” class:
This is the relevant part of the code from the “RevitFilters” class:
I have identified where the problem begins:
In the class “IFCToRevitGetPipeAndDuctTypesIExternalEvent” (shown in the fourth screenshot), the Execute method is not being triggered. I inserted a MessageBox within this method, but it never appeared.
Attempts Made Without Success:
- Created a separate IExternalEvent specifically to populate item 3.
- Removed all other add-ins from the affected PCs.
- Created a second “_eventCompleted.Task” exclusively for item 3.
The issue persists inconsistently:
It works on some PCs running Windows 10 or 11.
It does not work on other PCs running the same versions of Windows.
Have you encountered a similar problem before and found a solution? This add-in is in high demand within the company, so any suggestions for resolving this issue would be greatly appreciated.
Please let me know if you need additional code or a more detailed explanation.
Solved! Go to Solution.