- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
The main issue I am having is running an existing LISP routine from VB.net and retrieving the result of that LISP.
I am trying to move all of my Save LISP function into Dotnet. I need the (acet-edittime-total) value to write to Vault as part of a save routine.
This is loaded from the edittime.arx.
I can run it as a lisp from VB.net ok but it just writes the result to the command line.
I can't find a way to run a lisp function from inside Dotnet and get the result back.
I know I can create a LISP function in VB.net and run that and get results but this is not that scenario. I have to run an external lisp.
I have tried wrapping the ARX but I don't really get how that works and the documentation for Express Tools is pretty much non existant.
I hve tried this but it just returns 0 and without the my_cmd string the same result. Running the dumpbin on the edittime.arx only gives the acrxEntryPoint result for commands available.
Edittime_ARX("(acet-edittime-total)")
<DllImport("C:\Program Files\Autodesk\AutoCAD 2017\Express\edittime.arx", CallingConvention:=CallingConvention.Cdecl, CharSet:=CharSet.Unicode, EntryPoint:="acrxEntryPoint")>
Public Function Edittime_ARX(ByVal my_cmd As String) As Decimal
End FunctionI can get it using the COPYHIST and Clipboard.GetText() but to me that seems cumbersome. Another optiojn is to write it to a text file and get it from that but again that is cumbersome and potential for locked files etc causing it to fall over.
Solved! Go to Solution.