I'm haveing trouble sending a command to acad from my vb.net app. I'm
trying to execute a script but the code hangs when passing in the filename
of the script to load.
This is my code:
'set filedia to 0
ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("filedia
", True, False, True)
ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("0
", True, False, True)
'load the script
ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("script
", True, False, True)
ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(""""
& Me.txtScript.Text & """" & "\n", True, False, True)
'ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("
\n", True, False, True)
'set filedia to 1
ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("filedia",True, False,True)ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("1 ", True, False, True)Please help...