Lab1 fails to execute

Lab1 fails to execute

Anonymous
Not applicable
490 Views
6 Replies
Message 1 of 7

Lab1 fails to execute

Anonymous
Not applicable
I am working with dotnat 2005 having autocad 2005 installed on it. My operating system is Windows 2003.
I implement the example available with samples names Lab1. In this example, i just call the method ..

_
Public Sub HelloWorld()
Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor
ed.WriteMessage("Hello World")
End Sub


There is No error in runing, Autocad opens when i run the application by F5. I use Netload command and browse dll from debug folder. But nothing happen when i type "HelloWorld" on the command line.........
Why this happen. is it the issue of Operating system, or ????
Please help me.
Thanks
0 Likes
491 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
Sorry, i am using version "Autocad 2007"
I miss spell it.....
Please help me
0 Likes
Message 3 of 7

Anonymous
Not applicable
From the Lab:

We will now add our command to Class1. To add a command that can be called in AutoCAD use the “CommandMethod” attribute. This attribute is provided by the Runtime namespace. Add the following attribute and Sub to Class1. Notice the use of the line continuation character “_”.

Public Class Class1
_
Public Sub HelloWorld()

End Sub
End Class
0 Likes
Message 4 of 7

Anonymous
Not applicable
Ignore that as the website is removing the commandmethod.

Regards - Nathan
0 Likes
Message 5 of 7

Anonymous
Not applicable
Netload is the command used in Autocad 2007 in order to load the .net program DLL.

Is there any way that when autocad starts, my particular .net dll loads at startup of autocad.
I made a context menu program in .net and when i load its dll using netload, the menuitem appears on right click. i want that As autocad run, it auto load its dll.


Help me please...
0 Likes
Message 6 of 7

Anonymous
Not applicable
Thanks, but my problem is resolved, but now have a new question..

Netload is the command used in Autocad 2007 in order to load the .net program DLL.

Is there any way that when autocad starts, my particular .net dll loads at startup of autocad.
I made a context menu program in .net and when i load its dll using netload, the menuitem appears on right click. i want that As autocad run, it auto load its dll.


Help me please...
0 Likes
Message 7 of 7

Anonymous
Not applicable
Hi,

I'm trying the LAB1 and not happen too... how you resolved this problem?

thanks

Jardel
0 Likes