I made an Add In in .Net, and the program that start with the Add In is Autocad. But I can´t connect.
In the class Connect.vb i put a break point in Public Sub OnConnection, but the compiler never pass for that. I know that some keys in the Windows Registry are necessary. Please Help..!!!!!!
For AutoCAD 2006:
releaseNum = R16.2
ACAD-ProductID:LocaleID = ACAD-4003:409
0x01 - Load the application upon detection of proxy object.
0x02 - Load the application upon AutoCAD startup.
0x04 - Load the application upon invocation of a command.
0x08 - Load the application upon request by the user or another application.
0x10 - Do not load the application.
0x20 - Load the application transparently
Usually it is 0x02, but depends on what you need
pathFileName = must include the full path and file name of the module that AutoCAD should load first. The loader module is subsequently responsible for loading any other modules that make up the application.
For example, my addin writes this in the registry (I am giving you the code in C#):