I have this all in a custom company plugin, but that is removed and I'm just doing a netload to load the dll.
As far as instantiating the lispfunction, I'm just doing command line entry to eliminate anything else (lisptest "2")
Code:
<LispFunction("LispTest")>
Public Function LispTest(ByVal args As ResultBuffer) As Double
If Not args = Nothing Then
Dim value As Double
If Double.TryParse(args.AsArray()(0).Value.ToString(), value) Then
MsgBox("Arg Value = " & value)
Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage(vbLf & value & vbLf)
End If
Return value
End If
End Function
All other commandmethods are working fine in all documents, it's just this pesky lispfunction not working in all active drawings. I use it for a few buttons in the ribbon to carry argument.