
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am working on an F# scripting editor similar to RevitPythonShell or pyRevit.
similar to what Matt did here.
Since it is a non modal WPF window I try to follow the ExternalEvent pattern to evaluate scripts. On the main addin class that has the IExternalApplication interface I also create some utility members to raise the external event. I created a static member to access the current instance of this addin class.
see addin: https://github.com/goswinr/Seff.Revit/blob/minimal/Addin.fs#L51
Once the addin is running I send a reference (#r @"D:\Git\Seff.Revit\bin\Debug\net472\Seff.Revit.dll") of the currently running addin to Fsharp Interactive.
The static members are visible with the correct signatures but upon using them I get a System.MissingMethodException.
This happens only to members that use the Revit namespace. Members unrelated to Revit work as expected.
Other members work fine:
Solved! Go to Solution.