nice3point.revit.toolkit causes window forms to fail in Revit 2025

nice3point.revit.toolkit causes window forms to fail in Revit 2025

kevin_fielding
Advocate Advocate
662 Views
2 Replies
Message 1 of 3

nice3point.revit.toolkit causes window forms to fail in Revit 2025

kevin_fielding
Advocate
Advocate

Hi, 

 

I've recently explored using awesome nice3point.revit.toolkit to resolve my dll conflict problems in Revit 2025. This appears to fix the issue, however as my addins contain both WPF and WinForms for legacy tools, it appears that the toolkit is causing an issue with the latter. 

 

My addin loads, however when I look to open a winforms dialog I will receive something similar to the below when debugging in Visual Studio. 

System.MissingMethodException: 'Method not found: 'Void System.Windows.Forms.Control.set_Font(System.Drawing.Font)

Different forms will receive slightly different errors, but all are missing methods within System.Windows.Forms. The assemblies are present within my framework dependencies, and visible in designer mode. 

Has anyone else experienced this issue with the nice3point.revit.toolkit, although on my todo list, I hadn't planned on having to rewrite all my winforms windows in wpf quite so soon. 

Any thoughts would be welcome. Thanks

0 Likes
663 Views
2 Replies
Replies (2)
Message 2 of 3

ricaun
Advisor
Advisor

I'm not aware of this issue.

 

Probably is better to open a issue in the GitHub repository.

 

https://github.com/Nice3point/RevitToolkit/issues

 

If you create a sample to reproduce the issue usually helps.

 

 

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

0 Likes
Message 3 of 3

kevin_fielding
Advocate
Advocate

I've just built a new app from scratch to test with both win forms and WPF and both work fine, so I need to do some more debugging to reproduce the issue in this particular project. 

0 Likes