We plan to create a addin in AutoCAD as a client, it will connect to a server (database/application) through internet. We try to keep every business related on server so the command'd better be generated on the fly.
A workaround is use parameter. Can I use parameter in AutoCAD .NET command?
I tested something on the VB6 dll first. Thank to this newsgroup, I found a solution to create command with parameter like this:
Sub MyMacro()
Dim Param1 As String, Param2 As String
Param1 = ThisDrawing.Utility.GetString(False)
Param2 = ThisDrawing.Utility.GetString(False)
MsgBox "Param1:" & Param1 & ". Param2:" & Param2
End Sub
In my menu, I just add code like:
strCmd = "(command ""-VBARUN"" ""MyMacro"" ""a"" ""b"") "
Is this doable in .NET?
Thank you
Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023