Message 1 of 16

Not applicable
10-07-2016
07:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an AutoCAD OEM product named "BugCAD", and a standalone VB.NET application named BugWin. From BugWin, I need to be able to open BugCAD, and run a command named "Callform" that is already NETLOADed. The code below seems to be very close, but just can't quite do the job. It opens the program fine, and tries to run the command, but thinks it's a script file that it can't find.
This would be a very powerful feature for both programs to interact like this. Would appreciate any help!
Private Sub BugCADToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles BugCADToolStripMenuItem.Click ' New ProcessStartInfo created Dim p As New ProcessStartInfo p.FileName = "C:\Program Files\Autodesk\AutoCAD OEM 2014\oem\BugCAD\bugcad.exe" ' Use these arguments for the process p.Arguments = "/b command callform" ' Use a hidden window p.WindowStyle = ProcessWindowStyle.Normal ' Start the process Process.Start(p) End Sub
Solved! Go to Solution.