netload command not recognized
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
netload command not recognized

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
MRHooker2u



Joined: 08 Dec 2008
Posts: 1

Posted: Mon Dec 08, 2008 5:20 pm    Post subject: netload command not recognized Reply with quote

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!

Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Access Forum - Microsoft Office Forum - Electronics

Contact Us Powered by phpBB