向命令行发送命令

        Dim doc As Autodesk.AutoCAD.ApplicationServices.Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument
        Dim LispString As String = System.Text.RegularExpressions.Regex.Replace(MyPath() & "tch_kernal_2007.arx", "\\", "\\").ToString()
        doc.SendStringToExecute("(arxload" & " " & """" & LispString & """" & ")" & vbCr, True, False, False)

posted @ 2020-08-30 12:58  rf8862  阅读(206)  评论(0编辑  收藏  举报