MRHooker2u
Joined: 08 Dec 2008
Posts: 1
|
Posted:
Mon Dec 08, 2008 5:20 pm Post subject:
netload command not recognized |
|
|
I am using two different VB.NET applications to work with AutoCAD. The first application,CADWorx Launch, is used to launch a drawing with a profile. I have tried two different methods to do so but I get the same results with either method. Both are illustrated below.
Method 1 uses the Shell command to launch AutoCAD with a profile parameter.
Call Shell( "C:\R2K8\acad.exe /P \\Acad3d\cadworx\Projects\1368320\Profiles\1368320_PIPE.arg", AppWinStyle.NormalFocus)
Method 2 uses Process.Start to launch a .bat file with the same command string that is used in the Shell command:
"C:\R2K8\acad.exe /P \\Acad3d\cadworx\Projects\1368320\Profiles\1368320_PIPE.arg"
Process.Start("C:\CADWorx_Lineinfo.bat")
Both these commands launch the same .arg file and either method used is the final command before the .net application terminates and releases control to AutoCAD.
Once a drawing is loaded I type in netload and then a command, "LineSelect", that executes code from a different VB.NET application that allows the designer to select a line and display the data associated with that line on a form in the LineSelect application. The problem I am having is that if the drawing is opened via the CADWorx Launch application, regardless of whether I use the Shell method or the Process.Start method, after typing Netload the "LineSelect" command is not recognized.
However, if I open the drawing by double clicking the C:\CADWorx_Lineinfo.bat directly from Windows Explore or double click the .arg file directly, then type Netload and execute the "LineSelect" command, the command is recognized and works as expected.
I have yet to figure it out what is interfering with the netload command when AutoCAD is opened via the CADWorx Launch application as opposed to opening it via the .bat file or the .arg file from Windows Explore directly. Any help would be appreciated. Thanks!
|
|